forked from supertuxkart/stk-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c8e9438
commit 9d06775
Showing
1 changed file
with
31 additions
and
34 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 |
---|---|---|
|
@@ -102,10 +102,6 @@ jobs: | |
needs: build | ||
runs-on: macos-latest | ||
steps: | ||
- name: Update gcc | ||
run : | | ||
brew list --versions gcc | ||
brew install [email protected] | ||
- name: Configure packaging name for git master branch | ||
if: ${{ github.ref == 'refs/heads/master' }} | ||
run: | | ||
|
@@ -158,6 +154,7 @@ jobs: | |
echo "2" | ||
chmod 755 ./macosx-arm64/supertuxkart.app/Contents/MacOS/supertuxkart | ||
echo "3" | ||
install_name_tool -change libcurl.4.dylib @rpath/libcurl.4.dylib ./macosx-arm64/supertuxkart.app/Contents/MacOS/supertuxkart | ||
dylibbundler -od -b -x ./macosx-arm64/supertuxkart.app/Contents/MacOS/supertuxkart -d ./macosx-arm64/supertuxkart.app/Contents/libs/ -p @executable_path/../libs/ -s ./dependencies-macosx/lib -ns | ||
echo "4" | ||
# We use SDL_Vulkan_LoadLibrary for 10.9 compatibility, so otool -L supertuxkart has no libMoltenVK.dylib | ||
|
@@ -167,33 +164,33 @@ jobs: | |
echo "6" | ||
wget https://github.com/supertuxkart/stk-assets-mobile/releases/download/git/stk-assets-full.zip | ||
echo "7" | ||
unzip stk-assets-full.zip | ||
echo "8" | ||
rm stk-assets-full.zip | ||
cd ../../../../.. | ||
mv ./macosx-arm64/supertuxkart.app 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] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
artifacts: "SuperTuxKart*.zip" | ||
tag: ${{ env.release_name }} | ||
omitBodyDuringUpdate: true | ||
omitNameDuringUpdate: true | ||
allowUpdates: true | ||
prerelease: ${{ env.release_pre }} | ||
# unzip stk-assets-full.zip | ||
# echo "8" | ||
# rm stk-assets-full.zip | ||
# cd ../../../../.. | ||
# mv ./macosx-arm64/supertuxkart.app 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] | ||
# with: | ||
# token: ${{ secrets.GITHUB_TOKEN }} | ||
# artifacts: "SuperTuxKart*.zip" | ||
# tag: ${{ env.release_name }} | ||
# omitBodyDuringUpdate: true | ||
# omitNameDuringUpdate: true | ||
# allowUpdates: true | ||
# prerelease: ${{ env.release_pre }} |