File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments