From 310fd1f2021184a862fc0f3207204373f175b2c8 Mon Sep 17 00:00:00 2001 From: Finessse Date: Sun, 28 Dec 2025 20:53:13 +0700 Subject: [PATCH] ci(release): add custom installer build to release workflow - Build installer UI - Copy UI files to cmd/installer - Build custom installer executable - Generate installer branding images - Include custom installer in release artifacts --- .github/workflows/release.yml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f8fa40b1..c68f4687 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,10 +42,33 @@ jobs: # Build tray app (includes embedded dashboard) go build -ldflags="-s -w -H=windowsgui" -o dist/ProxyPilot.exe ./cmd/cliproxytray + - name: Build Installer UI + run: | + cd installer-ui + npm ci + npm run build + + - name: Copy Installer UI to cmd/installer + run: | + # Ensure target directory exists + New-Item -ItemType Directory -Force -Path cmd/installer/ui | Out-Null + # Copy built UI files + Copy-Item -Path installer-ui/dist/* -Destination cmd/installer/ui/ -Recurse -Force + shell: pwsh + + - name: Build Custom Installer + run: | + go build -ldflags="-s -w -H=windowsgui" -o dist/ProxyPilot-Installer.exe ./cmd/installer + - name: Install Inno Setup run: | choco install innosetup -y + - name: Generate installer branding images + run: | + cd installer/assets + powershell -ExecutionPolicy Bypass -File generate-wizard-images.ps1 + - name: Get version id: version run: | @@ -57,7 +80,7 @@ jobs: echo "VERSION=$version" >> $env:GITHUB_OUTPUT } - - name: Build Installer + - name: Build Inno Setup Installer run: | & "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" /DAppVersion="${{ steps.version.outputs.VERSION }}" installer\proxypilot.iss @@ -67,6 +90,7 @@ jobs: name: windows-release path: | dist/ProxyPilot.exe + dist/ProxyPilot-Installer.exe dist/ProxyPilot-*-Setup.exe - name: Upload to Release @@ -75,5 +99,6 @@ jobs: with: files: | dist/ProxyPilot.exe + dist/ProxyPilot-Installer.exe dist/ProxyPilot-${{ steps.version.outputs.VERSION }}-Setup.exe config.example.yaml