ci: attempt to create installer

This commit is contained in:
itsmattkc
2020-09-15 15:29:49 +10:00
committed by GitHub
parent 3d759ec606
commit 8c7d79fddf
+10 -3
View File
@@ -16,6 +16,8 @@ jobs:
# cross-platform coverage.
# See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix
runs-on: windows-latest
env:
PKGNAME: Olive-${GITHUB_SHA::8}-Windows-x86_64
steps:
- uses: actions/checkout@v2
@@ -88,13 +90,18 @@ jobs:
shell: cmd
run: mkdir olive-editor && copy app\olive-editor.exe olive-editor && windeployqt olive-editor\olive-editor.exe && copy %GITHUB_WORKSPACE%\bin\*.dll olive-editor
- name: Deploy Installer
working-directory: ${{runner.workspace}}/build
shell: cmd
run: copy %GITHUB_WORKSPACE%\app\packaging\windows\nsis\* . && "C:/Program Files (x86)/NSIS/makensis.exe" -V4 -DX64 "-XOutFile %PKGNAME%.exe" olive.nsi
- name: Deploy Portable
working-directory: ${{runner.workspace}}/build
shell: cmd
run: type NUL > olive-editor\portable && 7z a Olive-Windows-x86_64.zip olive-editor
run: type NUL > olive-editor\portable && 7z a %PKGNAME%.zip olive-editor
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: Olive-Windows-x86_64.zip
path: ${{runner.workspace}}/build/Olive-Windows-x86_64.zip
name: Windows (x86_64)
path: ${{runner.workspace}}/build/${PKGNAME}.*