Skip to content

Commit 02ee8ae

Browse files
author
ginan-release-bot
committed
Weekly snapshot
1 parent 7892d34 commit 02ee8ae

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,27 +160,38 @@ jobs:
160160
os: ubuntu-latest
161161
binary-artifact: ginan-linux-x64
162162
gui-artifact: ginan-gui-linux-x64
163+
ui-sed-cmd: sed -i '24s/.*/from scripts.GinanUI.app.resources import ginan_logo_rc/' app/views/main_window_ui.py
163164
pyinstaller-args: --windowed
164165
extra-steps: ""
165166

166167
- name: macOS ARM64
167168
os: macos-15
168169
binary-artifact: ginan-macos-arm64
169170
gui-artifact: ginan-gui-macos-arm64
171+
ui-sed-cmd: sed -i '' '24s/.*/from scripts.GinanUI.app.resources import ginan_logo_rc/' app/views/main_window_ui.py
170172
pyinstaller-args: --onedir --clean --target-arch arm64 --noconfirm
171173
extra-steps: macos
172174

173175
- name: macOS x64
174176
os: macos-15-intel
175177
binary-artifact: ginan-macos-x64
176178
gui-artifact: ginan-gui-macos-x64
179+
ui-sed-cmd: sed -i '' '24s/.*/from scripts.GinanUI.app.resources import ginan_logo_rc/' app/views/main_window_ui.py
177180
pyinstaller-args: --onedir --clean --noconfirm
178181
extra-steps: macos
179182

180183
- name: Windows x64
181184
os: windows-latest
182185
binary-artifact: ginan-windows-x64
183186
gui-artifact: ginan-gui-windows-x64
187+
ui-sed-cmd: |
188+
(Get-Content app/views/main_window_ui.py) | ForEach-Object {
189+
if ($_.ReadCount -eq 24) {
190+
"from scripts.GinanUI.app.resources import ginan_logo_rc"
191+
} else {
192+
$_
193+
}
194+
} | Set-Content app/views/main_window_ui.py
184195
pyinstaller-args: --windowed
185196
pyinstaller-separator: ";"
186197
extra-steps: ""
@@ -215,13 +226,15 @@ jobs:
215226
working-directory: scripts/GinanUI
216227
run: |
217228
pyside6-uic app/views/main_window.ui -o app/views/main_window_ui.py
229+
${{ matrix.ui-sed-cmd }}
218230
219231
- name: Convert UI files to Python (Windows)
220232
if: runner.os == 'Windows'
221233
working-directory: scripts/GinanUI
222234
shell: pwsh
223235
run: |
224236
pyside6-uic app/views/main_window.ui -o app/views/main_window_ui.py
237+
${{ matrix.ui-sed-cmd }}
225238
226239
- name: Make binaries executable (Unix)
227240
if: runner.os != 'Windows'

0 commit comments

Comments
 (0)