Skip to content

Commit cd9a654

Browse files
Added upx compress. Removed double zipping.
1 parent e509b6a commit cd9a654

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/linux-pyinstaller.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,18 +86,23 @@ jobs:
8686
--add-binary="pytranscriber.sqlite:." \
8787
--add-data="pytranscriber/gui/*.qm:pytranscriber/gui/" \
8888
--add-data="$ASSETS_PATH:whisper/assets"
89-
89+
90+
- name: Compress binary with UPX
91+
run: |
92+
sudo apt install -y upx
93+
upx --best --lzma dist/pyTranscriber-${VERSION}
94+
9095
- name: Zip the binary with version number
9196
run: |
9297
cd dist
9398
mv main "pyTranscriber-${VERSION}"
94-
zip -r "pyTranscriber-linux-${VERSION}.zip" "pyTranscriber-${VERSION}"
99+
zip -9 "pyTranscriber-linux-${VERSION}.zip" "pyTranscriber-${VERSION}"
95100
96101
- name: Upload built executable
97102
uses: actions/upload-artifact@v4
98103
with:
99104
name: pyTranscriber-linux-${{ env.VERSION }}
100-
path: ./dist/pyTranscriber-linux-${{ env.VERSION }}.zip # Caminho ajustado para Linux
105+
path: ./dist/pyTranscriber-linux-${{ env.VERSION }} # Caminho ajustado para Linux
101106

102107
download:
103108
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)