Skip to content

Commit

Permalink
Windows - Take 12
Browse files Browse the repository at this point in the history
  • Loading branch information
mjonuschat committed Feb 18, 2024
1 parent 77f61a0 commit cd7d480
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/build_prusa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,23 +109,21 @@ jobs:
if: inputs.os == 'windows-latest'
uses: microsoft/setup-msbuild@v1.1

- name: Install nsis
if: inputs.os == 'windows-latest'
run: |
dir "C:/Program Files (x86)/Windows Kits/10/Include"
choco install nsis
- name: Build slicer Win
if: inputs.os == 'windows-latest'
working-directory: ${{ github.workspace }}
run: .\build_win.bat -d=.\deps\build\PrusaSlicer_dep -c=Release -s=app -r=none
# run: .\build_win.bat -d=.\deps\build\PrusaSlicer_dep -c=Release -s=app -r=none
run: |
mkdir ${{ github.workspace }}/build/src/Release
cd ${{ github.workspace }}/build/src/Release
echo "Hello World" >prusa.exe
- name: Pack app
if: inputs.os == 'windows-latest'
working-directory: ${{ github.workspace }}/build/src/Release
shell: cmd
run: |
'"C:/Program Files/7-Zip/7z.exe" a -tzip {{ github.workspace }}\build\PrusaSlicer-${{ env.ver }}+win64-${{ env.date }}.zip resources *.exe *.dll'
dir
7z a -tzip {{ github.workspace }}\build\PrusaSlicer-${{ env.ver }}+win64-${{ env.date }}.zip resources *.exe *.dll
- name: Upload artifacts Win zip
if: inputs.os == 'windows-latest'
Expand Down

0 comments on commit cd7d480

Please sign in to comment.