mirror of
https://github.com/koho/frpmgr.git
synced 2025-10-20 16:03:47 +08:00
14 lines
586 B
Batchfile
14 lines
586 B
Batchfile
@echo off
|
|
setlocal enabledelayedexpansion
|
|
set BUILDDIR=%~dp0
|
|
set PATH=%BUILDDIR%.deps;%PATH%
|
|
echo [+] Rendering icons
|
|
for %%a in ("icon\*.svg") do convert -density 1000 -background none "%%~fa" -define icon:auto-resize="256,192,128,96,64,48,32,24,16" "%%~dpna.ico" || exit /b 1
|
|
echo [+] Building resources
|
|
rsrc -manifest frpmgr.exe.manifest -ico icon/app.ico -o rsrc.syso || exit /b 1
|
|
echo [+] Compiling release version
|
|
go build -ldflags="-H windowsgui" -o bin/frpmgr.exe frpmgr || exit /b 1
|
|
echo [+] Building installer
|
|
call installer/build.bat || exit /b 1
|
|
echo [+] Success.
|
|
exit /b 0 |