Skip to content

Commit ae04cf0

Browse files
committed
feat: Package assets in CI
1 parent d3c1186 commit ae04cf0

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/build-postcompiler.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,17 @@ jobs:
3535
run: |
3636
python -m pip install -U setuptools pip wheel
3737
python -m pip install -r requirements.txt
38+
- name: Build assets
39+
run: |
40+
mkdir build
41+
mkdir build/bin
42+
mkdir build/bin/win64
43+
mkdir build/hammer
44+
robocopy hammer/scripts build/hammer/scripts /S /PURGE
45+
python src/hammeraddons/build_fgd_assets.py -i patch_postcompiler.fgd -o build/hammer -a hammer
46+
3847
- name: Freeze application
39-
run: python -m PyInstaller --distpath ../build/ -y ../postcompiler.spec
48+
run: python -m PyInstaller --distpath ../build/bin/win64 -y ../postcompiler.spec
4049
working-directory: ./src/
4150
- name: Zip hammeraddons_${{ matrix.artifact-name }}
4251
uses: thedoctor0/zip-release@master

0 commit comments

Comments
 (0)