Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try fixing code signing and notarization again #23

Merged
merged 4 commits into from
Feb 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: |
[ $(echo ${{ github.ref }} | cut -d / -f 2) = "tags" ] && echo "configuration=Release" >> $GITHUB_OUTPUT || echo "configuration=Debug" >> $GITHUB_OUTPUT
- name: Install the Apple certificate and provisioning profile
if: startsWith(github.ref, 'refs/tags/')
if: ${{ steps.get_configuration.outputs.configuration == 'Release' }}
env:
BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
P12_PASSWORD: ${{ secrets.P12_PASSWORD }}
Expand All @@ -53,16 +53,19 @@ jobs:
xcrun notarytool store-credentials "notarytool-profile" --apple-id "${{ secrets.APPLE_ID }}" --team-id "96QY9UPB32" --password "${{ secrets.APPLE_ID_APP_SPECIFIC_PASSWORD }}"
- name: build
run: xcodebuild clean build -configuration ${{ steps.get_configuration.outputs.configuration }}
- name: Stage Artifact
- name: Notarize
if: ${{ steps.get_configuration.outputs.configuration == 'Release' }}
run: |
cd build/${{ steps.get_configuration.outputs.configuration }} && \
zip -r Polyhedra.saver.zip Polyhedra.saver && \
shasum -a 256 Polyhedra.saver.zip
- name: Sign zip
if: startsWith(github.ref, 'refs/tags/')
xcrun notarytool submit Polyhedra.saver.zip --keychain-profile "notarytool-profile" --verbose --wait && \
xcrun stapler staple --verbose Polyhedra.saver
- name: Create ZIP
run: |
cd build/${{ steps.get_configuration.outputs.configuration }} && \
xcrun notarytool submit Polyhedra.saver.zip --keychain-profile "notarytool-profile" --verbose --wait
rm -f Polyhedra.saver.zip && \
zip -r Polyhedra.saver.zip Polyhedra.saver && \
shasum -a 256 Polyhedra.saver.zip
- name: Get hash
run: |
shasum -a 256 build/${{ steps.get_configuration.outputs.configuration }}/Polyhedra.saver.zip
Expand Down
2 changes: 2 additions & 0 deletions Polyhedra.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 0;
DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES;
INFOPLIST_FILE = Polyhedra/Info.plist;
INSTALL_PATH = "$(HOME)/Library/Screen Savers";
LD_RUNPATH_SEARCH_PATHS = (
Expand Down Expand Up @@ -364,6 +365,7 @@
CURRENT_PROJECT_VERSION = 0;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=macosx*]" = 96QY9UPB32;
ENABLE_HARDENED_RUNTIME = YES;
INFOPLIST_FILE = Polyhedra/Info.plist;
INSTALL_PATH = "$(HOME)/Library/Screen Savers";
LD_RUNPATH_SEARCH_PATHS = (
Expand Down