Skip to content

Commit

Permalink
Update apple.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sarathrajsrinivasan authored Jul 12, 2024
1 parent c8e9438 commit 9d06775
Showing 1 changed file with 31 additions and 34 deletions.
65 changes: 31 additions & 34 deletions .github/workflows/apple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit 9d06775

Please sign in to comment.