forked from boschsensortec/COINES_SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 1003 Bytes
/
windows_installer.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: COINES Installer - Windows
on:
push:
branches:
- '*'
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Download Inno Setup Installer
run: |
# Download Inno Setup executable directly
Invoke-WebRequest -Uri https://jrsoftware.org/isdl.php?file=innosetup-6.2.0.exe -OutFile InnoSetup.exe
# Ensure the file is downloaded correctly
if (!(Test-Path .\InnoSetup.exe)) { exit 1 }
- name: Install Inno Setup
run: |
# Install Inno Setup silently
Start-Process -FilePath .\InnoSetup.exe -ArgumentList "/VERYSILENT" -NoNewWindow -Wait
# Cleanup
Remove-Item .\InnoSetup.exe -Force
- name: Run COINES Installer
run: |
cd _installer_/Installer_Scripts/Windows
# Run ISCC to compile the installer
"C:\Program Files (x86)\Inno Setup 6\ISCC.exe" "COINES_SDK_PRM.iss"