File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build Open Server Panel
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ release_version :
7+ description : ' Release version (e.g. v1.2.3)'
8+ required : true
9+ type : string
10+
11+ jobs :
12+ build :
13+ runs-on : windows-2022
14+
15+ steps :
16+ - name : Checkout repo with LFS
17+ uses : actions/checkout@v4
18+ with :
19+ lfs : true
20+
21+ - name : Ensure LFS files are pulled
22+ run : |
23+ git lfs install
24+ git lfs pull
25+
26+ - name : Remove old Inno Setup (if exists)
27+ run : |
28+ if (Test-Path "C:\Program Files (x86)\Inno Setup 6") {
29+ Remove-Item "C:\Program Files (x86)\Inno Setup 6" -Recurse -Force
30+ }
31+
32+ - name : Download and install Inno Setup 6
33+ run : |
34+ Invoke-WebRequest -Uri "https://jrsoftware.org/download.php/is.exe" -OutFile "innosetup.exe"
35+ Start-Process .\innosetup.exe -ArgumentList "/VERYSILENT", "/SUPPRESSMSGBOXES", "/NORESTART" -Wait
36+
37+ - name : Run generators (genall.ps1 and gendb.bat)
38+ shell : pwsh
39+ run : |
40+ Set-Location generate
41+ # Выполнить PowerShell-скрипт
42+ .\genall.ps1
43+ # Выполнить батник (через cmd)
44+ cmd /c gendb.bat
45+ Set-Location ..
46+
47+ - name : Compile installer (OpenServerPanel.iss)
48+ shell : pwsh
49+ run : |
50+ $iscc = "C:\Program Files (x86)\Inno Setup 6\ISCC.exe"
51+ if (-not (Test-Path $iscc)) {
52+ Write-Error "Inno Setup ISCC.exe not found at $iscc"
53+ exit 1
54+ }
55+ & $iscc "OpenServerPanel.iss"
You can’t perform that action at this time.
0 commit comments