Embed app icon and polish Windows build
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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%
|
||||
|
||||
Reference in New Issue
Block a user