summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornavanchauhan <navanchauhan@gmail.com>2023-08-17 18:52:33 -0600
committernavanchauhan <navanchauhan@gmail.com>2023-08-17 18:52:33 -0600
commit0cfc97a91f0b1e6ee38bf01a63d01a362729d1f6 (patch)
tree048e45fdfeb318b073a679de68f419a4f38b36a0
parentc8e66f2d51f4dfbddf24520160f756072c7aece7 (diff)
strip using UPX
-rw-r--r--.github/workflows/macos-ci.yaml13
1 files changed, 7 insertions, 6 deletions
diff --git a/.github/workflows/macos-ci.yaml b/.github/workflows/macos-ci.yaml
index 9339de5..9a54a25 100644
--- a/.github/workflows/macos-ci.yaml
+++ b/.github/workflows/macos-ci.yaml
@@ -25,10 +25,6 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: "3.9"
- - name: Package for macOS
- run: |
- pip install -r requirements.txt
- pyinstaller --add-data "assets:assets" --onefile --noconfirm --collect-data sv_ttk --icon assets/logo.jpeg --osx-bundle-identifier com.navanchauhan.gcpyramid --target-arch x86_64 --strip --windowed --name GCPyramid main.py
- name: Codesign executable
env:
MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }}
@@ -40,8 +36,13 @@ jobs:
security unlock-keychain -p 41random@123 build.keychain
security import certificate.p12 -k build.keychain -P $MACOS_CERTIFICATE_PWD -T /usr/bin/codesign
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k 41random@123 build.keychain
- /usr/bin/codesign --force --deep -s 6BS49F3GLW ./dist/GCPyramid.app -v
- /usr/bin/codesign --force --deep -s 6BS49F3GLW ./dist/GCPyramid -v
+ - name: Install upx
+ run: |
+ brew install upx
+ - name: Package for macOS
+ run: |
+ pip install -r requirements.txt
+ pyinstaller --add-data "assets:assets" --onefile --noconfirm --collect-data sv_ttk --icon assets/logo.jpeg --osx-bundle-identifier com.navanchauhan.gcpyramid --target-arch x86_64 --strip --windowed --codesign-identity 6BS49F3GLW --upx-dir /usr/local/bin/ --name GCPyramid main.py
- uses: actions/upload-artifact@v3
with:
name: pyramid-scheme