Windows: Creating an installer with a custom data directory path

This commit is contained in:
Zoe Roux
2021-08-22 17:20:23 +02:00
parent f661457617
commit daedd60f3d
10 changed files with 74 additions and 18 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: Analysis
on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]
jobs:
analysis:
+25 -4
View File
@@ -1,5 +1,5 @@
name: Build
on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]
jobs:
build:
@@ -43,13 +43,16 @@ jobs:
if: matrix.artifact == 'windows'
uses: ilammy/msvc-dev-cmd@v1
- name: Build the app
shell: bash
env:
INCLUDE: ${{env.INCLUDE}};C:\Program Files\FFmpeg\include
LIB: ${{env.LIB}};C:\Program Files\FFmpeg\lib
LIBPATH: ${{env.LIBPATH}};C:\Program Files\FFmpeg\lib
CFLAGS: -I/usr/local/include
LDFLAGS: -L/usr/local/lib
run: dotnet publish -r ${{matrix.runtime}} -c Release -o dist Kyoo
run: |
project=$([ "${{runner.os}}" == "Windows" ] && echo Kyoo.WindowsHost || echo Kyoo)
dotnet publish -r ${{matrix.runtime}} -c Release -o dist $project
- name: Compression output
shell: bash
run: |
@@ -71,7 +74,7 @@ jobs:
*.tar.gz
release:
name: Create debian, rpm & arch releases
name: Create windows, debian, rpm & arch releases
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/master'
@@ -80,12 +83,26 @@ jobs:
version: v0.0.1 #${{ github.ref }}
steps:
- uses: actions/checkout@v1
- uses: actions/download-artifact@v2
- name: Download linux build
uses: actions/download-artifact@v2
with:
name: kyoo_linux
path: artifact
- name: Unzip the published files.
run: mkdir dist && tar -C dist -xzf artifact/kyoo_linux.tar.gz
- name: Download windows build
uses: actions/download-artifact@v2
with:
name: kyoo_windows
path: artifact
- name: Unzip windows files
run: mkdir dist_win && 7z e artifact/kyoo_windows.zip -o dist_win
- name: Install Inno Setup
run: |
curl -L https://jrsoftware.org/download.php/is.exe > innosetup.exe
./innosetup.exe /VERYSILENT /SUPPRESSMSGBOXES /Log=log.txt || (cat log.txt && exit 1)
- name: Create windows installer
run: iscc -Dkyoo=$(realpath dist_win) -O./ -Fkyoo-windows deployment/kyoo-windows.iss
- name: Create the package structure
run: |
sudo mkdir -p pkg/usr/lib/
@@ -119,6 +136,10 @@ jobs:
with:
pkgdir: deployment
namcapDisable: true
- uses: actions/upload-artifact@v2
with:
name: kyoo_windows
path: ./*.exe
- uses: actions/upload-artifact@v2
with:
name: kyoo_rpm
+1 -2
View File
@@ -1,6 +1,5 @@
name: Docker
on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]
jobs:
build: