Skip to content

Commit

Permalink
fix macos zip file (#1364)
Browse files Browse the repository at this point in the history
  • Loading branch information
pankaj443 authored Sep 1, 2023
1 parent a6f6441 commit b898956
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/executable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ jobs:
APPLE_DEV_CERT: ${{secrets.APPLE_DEV_CERT}}
APPLE_ID_USERNAME: ${{secrets.APPLE_ID_USERNAME}}
APPLE_ID_KEY: ${{secrets.APPLE_ID_KEY}}
- name: Create zip files
run: |
zip percy-linux.zip percy
mv percy-osx percy
zip percy-osx.zip percy
zip percy-win.zip percy.exe
- name: Verify executable
run: ./percy --version
- name: Upload assets
Expand Down
7 changes: 6 additions & 1 deletion scripts/executable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k percy ~/Li

codesign --force --verbose=4 -s "Developer ID Application: BrowserStack Inc (763K6K6H44)" --options runtime --entitlements scripts/files/entitlement.plist --keychain ~/Library/Keychains/percy.keychain percy-osx

zip percy-osx.zip percy-osx
# Create zip file for uploading as assets
zip percy-linux.zip percy
mv percy-osx percy
zip percy-osx.zip percy
zip percy-win.zip percy.exe

cat scripts/files/notarize_config.json.tmpl | sed -e "s/{{APPLE_ID_USERNAME}}/$APPLE_ID_USERNAME/" | sed -e "s/{{APPLE_ID_KEY}}/$APPLE_ID_KEY/" > notarize_config.json
gon -log-level=error -log-json notarize_config.json

Expand Down

0 comments on commit b898956

Please sign in to comment.