Skip to content

Commit 0f38e0e

Browse files
committed
Fixed missing images in build actions and Nuitka's output file name.
1 parent 1a90f98 commit 0f38e0e

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/build_executable.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches:
66
- master
7+
paths:
8+
- "src/**"
9+
- ".github/workflows/build_executable.yml"
710
jobs:
811
build-windows:
912
name: Build for Windows
@@ -23,7 +26,7 @@ jobs:
2326
- name: Run PyInstaller for BDSP_ColorVariation_JSONParser
2427
run: |
2528
set PYTHONOPTIMIZE=2
26-
pyinstaller --onefile --name="BDSP_ColorVariation_JSONParser" --console --icon=src\BDSP_ColorVariation_JSONParser\images\json_parser.tga src\BDSP_ColorVariation_JSONParser\json_parser.py
29+
pyinstaller --onefile --name="BDSP_ColorVariation_JSONParser" --console --icon=src\BDSP_ColorVariation_JSONParser\images\json_parser.tga src\BDSP_ColorVariation_JSONParser\json_parser.py --add-data="src\BDSP_ColorVariation_JSONParser\images:images"
2730
- name: Move Executable from dist to root directory
2831
run: |
2932
move dist\BDSP_ColorVariation_JSONParser.exe .

.github/workflows/build_executable_nuitka.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches:
66
- master
7+
paths:
8+
- "src/**"
9+
- ".github/workflows/build_executable_nuitka.yml"
710
jobs:
811
build-windows:
912
name: Build for Windows
@@ -26,9 +29,12 @@ jobs:
2629
with:
2730
nuitka-version: main
2831
script-name: src/BDSP_ColorVariation_JSONParser/json_parser.py
32+
output-file: BDSP_ColorVariation_JSONParser
2933
mode: app
3034
enable-plugins: tk-inter
3135
windows-icon-from-ico: "src/BDSP_ColorVariation_JSONParser/images/json_parser.tga"
36+
include-data-dir: |
37+
src/BDSP_ColorVariation_JSONParser/images=images
3238
- name: Move Executable from build to root directory
3339
run: |
3440
move build\BDSP_ColorVariation_JSONParser.exe .

0 commit comments

Comments
 (0)