Embed app icon and polish Windows build

This commit is contained in:
mixeme
2026-06-14 23:53:08 +03:00
parent a9d1d9529e
commit 59718e21b4
9 changed files with 24 additions and 28 deletions
-2
View File
@@ -8,7 +8,5 @@ container_id="$(docker create pysentry-linux-builder)"
mkdir -p "$(dirname "$output")"
docker cp "${container_id}:/out/pysentry" "$output"
docker rm "$container_id" >/dev/null
rm -rf "$(dirname "$output")/assets"
cp -R assets "$(dirname "$output")/assets"
echo "Built $output"
-2
View File
@@ -9,7 +9,5 @@ export GOOS=linux
export GOARCH=amd64
go build -trimpath -ldflags "-s -w" -o "$output" ./cmd/pysentry
rm -rf "$(dirname "$output")/assets"
cp -R assets "$(dirname "$output")/assets"
echo "Built $output"
+1 -3
View File
@@ -21,9 +21,7 @@ if %ERRORLEVEL%==0 (
windres.exe -O coff -o cmd\pysentry\rsrc_windows_amd64.syso packaging\windows\pysentry.rc
)
"%GOEXE%" build -trimpath -ldflags "-s -w" -o "%OUTPUT%" .\cmd\pysentry
"%GOEXE%" build -trimpath -ldflags "-s -w -H=windowsgui" -o "%OUTPUT%" .\cmd\pysentry
if errorlevel 1 exit /b 1
xcopy /E /I /Y assets "%OUTDIR%assets" >nul
echo Built %OUTPUT%