Skip to content

Commit b32ffb8

Browse files
Update release.yml
1 parent 2eb6548 commit b32ffb8

1 file changed

Lines changed: 24 additions & 18 deletions

File tree

.github/workflows/release.yml

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ jobs:
3030
printf '\n%s\n' "$delim"
3131
} >> "$GITHUB_OUTPUT"
3232
33-
34-
3533
create-release:
3634
needs: generate-release-notes
3735
runs-on: ubuntu-latest
@@ -114,21 +112,24 @@ jobs:
114112
pip install -r requirements.txt
115113
116114
- name: Cleanup before PyInstaller
115+
shell: bash
117116
run: |
118117
rm -rf build dist *.spec
119118
pip cache purge || true
120119
121120
- name: Build app
122-
run: |
123-
python -m PyInstaller --noconfirm --clean --windowed \
124-
--name "SoccerNetProAnalyzer" \
125-
--add-data "style:style" \
126-
--add-data "ui:ui" \
127-
--add-data "controllers:controllers" \
128-
--add-data "image:image" `
129-
"main.py"
121+
shell: bash
122+
run: >
123+
python -m PyInstaller --noconfirm --clean --windowed
124+
--name "SoccerNetProAnalyzer"
125+
--add-data "style:style"
126+
--add-data "ui:ui"
127+
--add-data "controllers:controllers"
128+
--add-data "image:image"
129+
"main.py"
130130
131131
- name: Zip macOS app
132+
shell: bash
132133
run: |
133134
ditto -c -k --sequesterRsrc --keepParent "dist/SoccerNetProAnalyzer.app" "dist/SoccerNetProAnalyzer-mac.zip"
134135
@@ -152,6 +153,7 @@ jobs:
152153
python-version: "3.9"
153154
154155
- name: Install system deps (Qt/OpenCV runtime)
156+
shell: bash
155157
run: |
156158
sudo apt-get update
157159
sudo apt-get install -y libgl1 libglib2.0-0 libxcb-cursor0
@@ -162,25 +164,29 @@ jobs:
162164
pip install -r requirements.txt
163165
164166
- name: Cleanup before PyInstaller
167+
shell: bash
165168
run: |
166169
rm -rf build dist *.spec
167170
pip cache purge || true
168171
169172
- name: Build binary
170-
run: |
171-
python -m PyInstaller --noconfirm --clean --windowed --onefile \
172-
--name "SoccerNetProAnalyzer" \
173-
--add-data "style:style" \
174-
--add-data "ui:ui" \
175-
--add-data "controllers:controllers" \
176-
--add-data "image:image" `
177-
"main.py"
173+
shell: bash
174+
run: >
175+
python -m PyInstaller --noconfirm --clean --windowed --onefile
176+
--name "SoccerNetProAnalyzer"
177+
--add-data "style:style"
178+
--add-data "ui:ui"
179+
--add-data "controllers:controllers"
180+
--add-data "image:image"
181+
"main.py"
178182
179183
- name: Rename binary
184+
shell: bash
180185
run: |
181186
mv -f dist/SoccerNetProAnalyzer dist/SoccerNetProAnalyzer-linux
182187
183188
- name: Zip Linux binary
189+
shell: bash
184190
run: |
185191
cd dist
186192
zip -r SoccerNetProAnalyzer-linux.zip SoccerNetProAnalyzer-linux

0 commit comments

Comments
 (0)