5050 - name : Install Python dependencies
5151 run : pip install pyinstaller pynput Pillow requests pystray
5252
53+ - name : Get version
54+ id : version
55+ shell : pwsh
56+ run : |
57+ $content = Get-Content src/utils/version.py -Raw
58+ $v = [regex]::Match($content, 'version\s*=\s*"([\d.]+)"').Groups[1].Value
59+ echo "VALUE=$v" >> $env:GITHUB_OUTPUT
60+
5361 - name : Download UPX
5462 shell : pwsh
5563 run : |
6371 run : >
6472 pyinstaller --noconfirm --onefile --windowed
6573 --icon "src/assets/logo.ico"
66- --name "PyMacroRecord-portable"
74+ --name "PyMacroRecord-${{ steps.version.outputs.VALUE }}- portable"
6775 --contents-directory "."
6876 --upx-dir upx
6977 --add-data "src/assets;assets/"
8896 --add-data "src/windows;windows/"
8997 "src/main.py"
9098
91- - name : Get version
92- id : version
93- shell : pwsh
94- run : |
95- $content = Get-Content src/utils/version.py -Raw
96- $v = [regex]::Match($content, 'version\s*=\s*"([\d.]+)"').Groups[1].Value
97- echo "VALUE=$v" >> $env:GITHUB_OUTPUT
98-
9999 - name : Build setup installer (Inno Setup)
100100 shell : pwsh
101101 run : |
@@ -111,8 +111,8 @@ jobs:
111111 with :
112112 name : windows-artifacts
113113 path : |
114- dist/PyMacroRecord-portable.exe
115- setup_output/PyMacroRecord_*_Setup .exe
114+ dist/PyMacroRecord-*- portable.exe
115+ setup_output/PyMacroRecord-*-setup .exe
116116
117117 release :
118118 needs : [build-linux, build-windows]
@@ -136,6 +136,6 @@ jobs:
136136 uses : softprops/action-gh-release@v2
137137 with :
138138 generate_release_notes : true
139- draft : ${{ github.event_name == 'workflow_dispatch' && inputs.draft }}
139+ draft : true
140140 tag_name : ${{ github.ref_name != '' && github.ref_name || 'v0.0.0-test' }}
141141 files : release-files/**
0 commit comments