3232 uses : actions/setup-go@v6
3333 with :
3434 go-version : ' 1.25'
35+ cache-dependency-path : |
36+ src-go/go.sum
37+ src-service/go.sum
3538
3639 - name : Install Backend Dependencies
3740 shell : pwsh
6366 -ldflags "-s -w -X github.com/legiz-ru/prizrak-box/api.Version=$env:VERSION" `
6467 -o px.exe
6568
69+ - name : Build px-service for ${{ matrix.arch }}
70+ shell : pwsh
71+ env :
72+ CGO_ENABLED : 0
73+ GOARCH : ${{ matrix.arch }}
74+ run : |
75+ cd src-service
76+ go mod download
77+ go build -ldflags "-s -w" -o px-service.exe .
78+
6679 - name : Sync VERSION to package.json
6780 run : node build/sync-version.js
6881
@@ -101,22 +114,13 @@ jobs:
101114 exit 1
102115 }
103116
104- # --- Squirrel.Windows Assets (FIXED LOGIC ) ---
117+ # --- Squirrel.Windows Assets (NUPKG and RELEASES only ) ---
105118 $squirrelDir = "out\make\squirrel.windows\$electronArch"
106-
107- # 1. Find the actual Setup.exe installer file
108- $installerFile = Get-ChildItem -Path $squirrelDir -Filter "*Setup.exe" | Select-Object -First 1
109- if ($installerFile) {
110- Copy-Item -Path $installerFile.FullName -Destination "windows-${arch}-Setup.exe"
111- } else {
112- Write-Error "Squirrel.Windows installer (*Setup.exe) file not found in $squirrelDir. Ensure the Squirrel maker ran successfully."
113- exit 1
114- }
115-
116- # 2. Copy RELEASES file (required for Squirrel auto-update)
119+
120+ # 1. Copy RELEASES file (required for Squirrel auto-update)
117121 Copy-Item -Path "$squirrelDir\RELEASES" -Destination "RELEASES" -Force
118-
119- # 3 . Find the full nupkg file
122+
123+ # 2 . Find the full nupkg file
120124 $nupkgFile = Get-ChildItem -Path $squirrelDir -Filter "*-full.nupkg" | Select-Object -First 1
121125 if ($nupkgFile) {
122126 Copy-Item -Path $nupkgFile.FullName -Destination "windows-${arch}-full.nupkg"
@@ -132,7 +136,6 @@ jobs:
132136 path : |
133137 windows-${{ matrix.arch }}.zip
134138 windows-${{ matrix.arch }}.msi
135- windows-${{ matrix.arch }}-Setup.exe
136139 RELEASES
137140 windows-${{ matrix.arch }}-full.nupkg
138141
@@ -165,6 +168,9 @@ jobs:
165168 uses : actions/setup-go@v6
166169 with :
167170 go-version : ' 1.25'
171+ cache-dependency-path : |
172+ src-go/go.sum
173+ src-service/go.sum
168174
169175 - name : Install Backend Dependencies
170176 run : |
@@ -193,6 +199,15 @@ jobs:
193199 -ldflags "-s -w -X github.com/legiz-ru/prizrak-box/api.Version=${{ env.VERSION }}" \
194200 -o px
195201
202+ - name : Build px-service for ${{ matrix.arch }}
203+ env :
204+ CGO_ENABLED : 0
205+ GOARCH : ${{ matrix.arch }}
206+ run : |
207+ cd src-service
208+ go mod download
209+ go build -ldflags "-s -w" -o px-service .
210+
196211 - name : Sync VERSION to package.json
197212 run : node build/sync-version.js
198213
@@ -262,6 +277,9 @@ jobs:
262277 uses : actions/setup-go@v6
263278 with :
264279 go-version : ' 1.25'
280+ cache-dependency-path : |
281+ src-go/go.sum
282+ src-service/go.sum
265283
266284 - name : Install Backend Dependencies
267285 run : |
@@ -319,6 +337,15 @@ jobs:
319337 -ldflags "-s -w -X github.com/legiz-ru/prizrak-box/api.Version=${{ env.VERSION }}" \
320338 -o px
321339
340+ - name : Build px-service for ${{ matrix.arch }}
341+ env :
342+ CGO_ENABLED : 0
343+ GOARCH : ${{ matrix.arch }}
344+ run : |
345+ cd src-service
346+ go mod download
347+ go build -ldflags "-s -w" -o px-service .
348+
322349 - name : Sync VERSION to package.json
323350 run : node build/sync-version.js
324351
@@ -570,10 +597,8 @@ jobs:
570597 `### Downloads`,
571598 `* [Windows (amd64, Portable)](https://github.com/${owner}/${repo}/releases/download/${tag}/windows-amd64.zip)`,
572599 `* [Windows (amd64, MSI Installer)](https://github.com/${owner}/${repo}/releases/download/${tag}/windows-amd64.msi)`,
573- `* [Windows (amd64, Setup)](https://github.com/${owner}/${repo}/releases/download/${tag}/windows-amd64-Setup.exe)`,
574600 `* [Windows (arm64, Portable)](https://github.com/${owner}/${repo}/releases/download/${tag}/windows-arm64.zip)`,
575601 `* [Windows (arm64, MSI Installer)](https://github.com/${owner}/${repo}/releases/download/${tag}/windows-arm64.msi)`,
576- `* [Windows (arm64, Setup)](https://github.com/${owner}/${repo}/releases/download/${tag}/windows-arm64-Setup.exe)`,
577602 `* [Linux (amd64, deb)](https://github.com/${owner}/${repo}/releases/download/${tag}/linux-amd64.deb)`,
578603 `* [Linux (amd64, rpm)](https://github.com/${owner}/${repo}/releases/download/${tag}/linux-amd64.rpm)`,
579604 `* [Linux (arm64, deb)](https://github.com/${owner}/${repo}/releases/download/${tag}/linux-arm64.deb)`,
0 commit comments