ci: attempt to create installer
This commit is contained in:
@@ -16,6 +16,8 @@ jobs:
|
|||||||
# cross-platform coverage.
|
# cross-platform coverage.
|
||||||
# See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix
|
# See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
env:
|
||||||
|
PKGNAME: Olive-${GITHUB_SHA::8}-Windows-x86_64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@@ -88,13 +90,18 @@ jobs:
|
|||||||
shell: cmd
|
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
|
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
|
- name: Deploy Portable
|
||||||
working-directory: ${{runner.workspace}}/build
|
working-directory: ${{runner.workspace}}/build
|
||||||
shell: cmd
|
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
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Olive-Windows-x86_64.zip
|
name: Windows (x86_64)
|
||||||
path: ${{runner.workspace}}/build/Olive-Windows-x86_64.zip
|
path: ${{runner.workspace}}/build/${PKGNAME}.*
|
||||||
|
|||||||
Reference in New Issue
Block a user