Skip to content

Commit

Permalink
style: consistent naming of secret/envvar
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare authored Jan 5, 2022
1 parent 7da56c4 commit 4b493b8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ jobs:
env:
APPLE_EMAIL: ${{ secrets.APPLE_EMAIL }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
APPLE_PERSONAL_ID: ${{ secrets.APPLE_TEAMID }} # APPLE_PERSONAL_ID == APPLE_TEAM_ID for personal accounts
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAMID }}
APPLE_PERSONALID: ${{ secrets.APPLE_TEAMID }} # APPLE_PERSONAL_ID == APPLE_TEAM_ID for personal accounts
APPLE_TEAMID: ${{ secrets.APPLE_TEAMID }}

- name: Upload packages
uses: actions/upload-artifact@v2-preview
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ dist/ActivityWatch.app: aw-qt/media/logo/logo.icns
dist/ActivityWatch.dmg: dist/ActivityWatch.app
pip install dmgbuild
dmgbuild -s scripts/package/dmgbuild-settings.py -D app=dist/ActivityWatch.app "ActivityWatch" dist/ActivityWatch.dmg
codesign --verbose -s ${APPLE_PERSONAL_ID} dist/ActivityWatch.dmg
codesign --verbose -s ${APPLE_PERSONALID} dist/ActivityWatch.dmg

dist/notarize:
./scripts/notarize.sh
Expand Down
4 changes: 2 additions & 2 deletions aw.spec
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ current_release = subprocess.run(
print("bundling activitywatch version " + current_release)

entitlements_file = Path(".") / "scripts" / "package" / "entitlements.plist"
codesign_identity = os.environ.get("APPLE_PERSONAL_ID")
assert codesign_identity, "Environment variable APPLE_PERSONAL_ID not set"
codesign_identity = os.environ.get("APPLE_PERSONALID")
assert codesign_identity, "Environment variable APPLE_PERSONALID not set"

aw_core_path = Path(os.path.dirname(aw_core.__file__))
restx_path = Path(os.path.dirname(flask_restx.__file__))
Expand Down
4 changes: 2 additions & 2 deletions scripts/notarize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

applemail=$APPLE_EMAIL # Email address used for Apple ID
password=$APPLE_PASSWORD # See apps-specific password https://support.apple.com/en-us/HT204397
teamid=$APPLE_TEAM_ID # Team idenitifer (if single developer, then set to developer identifier)
keychain_profile="activitywatch-$APPLE_PERSONAL_ID" # name of the keychain profile to use
teamid=$APPLE_TEAMID # Team idenitifer (if single developer, then set to developer identifier)
keychain_profile="activitywatch-$APPLE_PERSONALID" # name of the keychain profile to use
bundleid=net.activitywatch.ActivityWatch # Match aw.spec
app=dist/ActivityWatch.app
dmg=dist/ActivityWatch.dmg
Expand Down

0 comments on commit 4b493b8

Please sign in to comment.