Skip to content

Misc installer improvements #985

Misc installer improvements

Misc installer improvements #985

Workflow file for this run

name: RetroBar
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build
strategy:
matrix:
publishprofile: [ [x64, net6.0-windows], [x86, net6.0-windows], [ARM64, net6.0-windows], [x64-portable, net6.0-windows], [x86-portable, net6.0-windows], [ARM64-portable, net6.0-windows] ]
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install nbgv
uses: dotnet/nbgv@v0.4.2
- name: Publish app
run: dotnet publish -p:PublishProfile=$env:Profile -f $env:Framework -p:DebugType=None -p:DebugSymbols=false
env:
Profile: ${{ matrix.publishprofile[0] }}
Framework: ${{ matrix.publishprofile[1] }}
- name: Copy license
run: cp DistLicense.txt RetroBar\bin\Release\${{ matrix.publishprofile[1] }}\publish-${{ matrix.publishprofile[0] }}\License.txt
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: RetroBar ${{ matrix.publishprofile[0] == 'x86' && '32-bit' || matrix.publishprofile[0] == 'x64' && '64-bit' || matrix.publishprofile[0] == 'ARM64' && 'ARM64' || matrix.publishprofile[0] == 'x86-portable' && 'Portable 32-bit' || matrix.publishprofile[0] == 'x64-portable' && 'Portable 64-bit' || 'Portable ARM64' }}
path: RetroBar\bin\Release\${{ matrix.publishprofile[1] }}\publish-${{ matrix.publishprofile[0] }}\
installer:
name: Installer
needs: [ build ]
runs-on: windows-2022
env:
installer: installer.iss
targetFramework: net6.0-windows
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download build artifacts - ARM64
uses: actions/download-artifact@v4
with:
name: RetroBar ARM64
path: RetroBar\bin\Release\${{ env.targetFramework }}\publish-ARM64\
- name: Download build artifacts - x64
uses: actions/download-artifact@v4
with:
name: RetroBar 64-bit
path: RetroBar\bin\Release\${{ env.targetFramework }}\publish-x64\
- name: Download build artifacts - x86
uses: actions/download-artifact@v4
with:
name: RetroBar 32-bit
path: RetroBar\bin\Release\${{ env.targetFramework }}\publish-x86\
- name: Compile Inno Setup installer
run: ISCC.exe "${{ env.installer }}"
- name: Upload installer
uses: actions/upload-artifact@v4
with:
name: RetroBar Installer
path: bin\RetroBarInstaller.exe