forked from supertuxkart/stk-code
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge https://github.com/supertuxkart/stk-code 1.4 (412f30d) into com…
…mand-manager-prototype
- Loading branch information
Showing
58 changed files
with
1,804 additions
and
812 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,8 +131,19 @@ jobs: | |
echo "${{ env.release_pre }}" | ||
- name: Download binaries | ||
uses: actions/download-artifact@v2 | ||
- name: Run dylibbundler and archive | ||
- name: Mask developer name | ||
run: | | ||
echo "::add-mask::${{ secrets.MAC_DEVELOPER_NAME }}" | ||
- name: Import certificates | ||
if: ${{ env.release_tag != '' }} | ||
uses: apple-actions/import-codesign-certs@v1 | ||
with: | ||
p12-file-base64: ${{ secrets.MAC_DEVELOPER_ID_P12_FILE }} | ||
p12-password: ${{ secrets.MAC_DEVELOPER_ID_P12_PASSWORD }} | ||
- name: Run dylibbundler and sign STK | ||
if: ${{ env.release_tag != '' }} | ||
env: | ||
developer_id: "Developer ID Application: ${{ secrets.MAC_DEVELOPER_NAME }} (${{ secrets.MAC_DEVELOPER_TEAM }})" | ||
run: | | ||
wget https://github.com/supertuxkart/dependencies/releases/download/preview/dependencies-macosx.tar.xz | ||
tar xf dependencies-macosx.tar.xz | ||
|
@@ -148,10 +159,20 @@ jobs: | |
rm stk-assets-full.zip | ||
cd ../../../../.. | ||
mv ./macosx-arm64/supertuxkart.app SuperTuxKart.app | ||
# Use Ad Hoc certificate for now, use Apple developer certificate after STK is on App Store later | ||
codesign --force -s - SuperTuxKart.app/Contents/libs/*.dylib | ||
codesign --force --deep -s - SuperTuxKart.app | ||
zip -r SuperTuxKart-${{ env.release_tag }}-mac.zip SuperTuxKart.app | ||
codesign --force --sign "$developer_id" SuperTuxKart.app/Contents/libs/*.dylib | ||
codesign --force --options=runtime --deep --sign "$developer_id" SuperTuxKart.app | ||
- name: "Notarize release build" | ||
if: ${{ env.release_tag != '' && github.ref != 'refs/heads/master' }} | ||
run: | | ||
ditto -c -k --sequesterRsrc --keepParent SuperTuxKart.app tmp.zip | ||
xcrun notarytool submit tmp.zip --apple-id ${{ secrets.STK_NOTARIZATION_USERNAME }} \ | ||
--password ${{ secrets.STK_NOTARIZATION_PASSWORD }} \ | ||
--team-id ${{ secrets.MAC_DEVELOPER_TEAM }} --wait | ||
xcrun stapler staple SuperTuxKart.app | ||
- name: Archive | ||
if: ${{ env.release_tag != '' }} | ||
run: | | ||
ditto -c -k --sequesterRsrc --keepParent SuperTuxKart.app SuperTuxKart-${{ env.release_tag }}-mac.zip | ||
- name: Create release | ||
if: ${{ env.release_tag != '' }} | ||
uses: ncipollo/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
# | ||
# (C) 2016-2017 Dawid Gan, under the GPLv3 | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.