Skip to content

Commit

Permalink
Use a consistent name for the binary inside the stub archive.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Jun 6, 2024
1 parent c3c6441 commit 13d0367
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions .github/workflows/update-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,26 +50,15 @@ jobs:
cd stub
briefcase build macOS Xcode
echo "Gather compiled binaries"
mv "./build/console-stub/macos/xcode/build/Release/Console Stub.app/Contents/MacOS/Console Stub" Console-Stub
mv "./build/gui-stub/macos/xcode/build/Release/GUI Stub.app/Contents/MacOS/GUI Stub" GUI-Stub
echo "Build console stub artefact"
mv "./build/console-stub/macos/xcode/build/Release/Console Stub.app/Contents/MacOS/Console Stub" Stub
codesign --remove-signature Stub
zip Console-Stub-${{ env.PYTHON_TAG }}-${{ steps.build-vars.outputs.BUILD_NUMBER }}.zip Stub
echo "Strip signatures"
# Since the project is producing generic stub binary, we can't provide
# any meaningful signing credentials in the Xcode project. Remove the
# signature from the stub binaries.
codesign --remove-signature Console-Stub
codesign --remove-signature GUI-Stub
echo "Compress distribution artefacts"
zip Console-Stub-${{ env.PYTHON_TAG }}-${{ steps.build-vars.outputs.BUILD_NUMBER }}.zip Console-Stub
zip GUI-Stub-${{ env.PYTHON_TAG }}-${{ steps.build-vars.outputs.BUILD_NUMBER }}.zip GUI-Stub
- name: Upload Stub Artefact to Release
uses: actions/[email protected]
with:
name: stub-${{ env.PYTHON_TAG }}-${{ steps.build-vars.outputs.BUILD_NUMBER }}
path: stub/*-Stub
echo "Build GUI stub artefact"
mv "./build/gui-stub/macos/xcode/build/Release/GUI Stub.app/Contents/MacOS/GUI Stub" Stub
codesign --remove-signature Stub
zip Console-Stub-${{ env.PYTHON_TAG }}-${{ steps.build-vars.outputs.BUILD_NUMBER }}.zip Stub
- name: Upload Release Asset to S3
env:
Expand Down

0 comments on commit 13d0367

Please sign in to comment.