Skip to content

Commit 784f07e

Browse files
committed
Fixing windows builder.
1 parent f2922d4 commit 784f07e

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/build-windows.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,17 @@ jobs:
2727
with:
2828
python-version: '3.10'
2929

30+
# --- THIS STEP WAS MISSING ---
3031
- name: Install Dependencies
3132
run: pip install pyinstaller Pillow numpy scipy platformdirs tqdm
33+
# --- END MISSING STEP ---
3234

3335
- name: Update Version in Files
3436
shell: bash
3537
run: find . -type f -name "*.py" -exec sed -i "s/<unreleased>/${{ inputs.version_string }}/g" {} +
3638

37-
- name: Build Windows Binary
39+
# --- THIS STEP IS NOW CORRECTED AND MORE ROBUST ---
40+
- name: Build and Package Windows Binary
3841
shell: cmd
3942
run: |
4043
py -m PyInstaller --noconsole --onedir --clean ^
@@ -43,9 +46,9 @@ jobs:
4346
--add-data "tilerandomizer.py;." ^
4447
--add-data "superfilerandomizer.py;." ^
4548
msxtileforge.py
46-
copy README.md LICENSE dist\msxtileforge\
47-
cd dist
48-
7z a msxtileforge_windows.zip msxtileforge
49+
copy README.md LICENSE dist\msxtileforge
50+
7z a dist/msxtileforge_windows.zip ./dist/msxtileforge/*
51+
# --- END CORRECTION ---
4952

5053
- name: Upload Windows Artifact
5154
id: upload

0 commit comments

Comments
 (0)