-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
20 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
@echo off | ||
set GIN_MODE=release | ||
go build -o bin/svcctl.exe svcctl | ||
call installer/build.cmd | ||
call installer/build.cmd 1.0.2 | ||
cd .. |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
@echo off | ||
set SVCCTL_VERSION=1.0.1 | ||
set SVCCTL_VERSION=%1 | ||
set BUILDDIR=%~dp0 | ||
cd /d %BUILDDIR% || exit /b 1 | ||
if not exist %BUILDDIR%\build MD %BUILDDIR%\build | ||
call VsDevCmd.bat | ||
if "%WIX%"=="" ( | ||
echo ERROR: WIX was not found. | ||
exit /b 1 | ||
) | ||
if not exist build md build | ||
call vcvarsall.bat amd64 | ||
set SDK_PLATFORM=VS2017 | ||
cl /Zc:wchar_t /D "_UNICODE" /D "UNICODE" /nologo /O2 /W3 /GL /DNDEBUG /MD "-I%WIX%sdk\%SDK_PLATFORM%\inc" actions.cpp /Fo.\build\ /link /LTCG /NOLOGO "/LIBPATH:%WIX%sdk\%SDK_PLATFORM%\lib\x86" msi.lib wcautil.lib dutil.lib kernel32.lib user32.lib advapi32.lib Version.lib shell32.lib /DLL /DEF:"actions.def" /IMPLIB:.\build\actions.lib /OUT:.\build\actions.dll || exit /b 1 | ||
cl /Zc:wchar_t /D "_UNICODE" /D "UNICODE" /nologo /O2 /W3 /GL /DNDEBUG /MD "-I%WIX%sdk\%SDK_PLATFORM%\inc" actions.cpp /Fo.\build\ /link /LTCG /NOLOGO "/LIBPATH:%WIX%sdk\%SDK_PLATFORM%\lib\x64" msi.lib wcautil.lib dutil.lib kernel32.lib user32.lib advapi32.lib Version.lib shell32.lib /DLL /DEF:"actions.def" /IMPLIB:.\build\actions.lib /OUT:.\build\actions.dll || exit /b 1 | ||
set WIX_CANDLE_FLAGS=-nologo -dSVCCTL_VERSION=%SVCCTL_VERSION% | ||
set WIX_LIGHT_FLAGS=-nologo -spdb -ext "%WIX%bin\\WixUtilExtension.dll" -ext "%WIX%bin\\WixUIExtension.dll" -cultures:zh-CN | ||
"%WIX%bin\candle" %WIX_CANDLE_FLAGS% -out build\ -arch x86 svcctl.wxs | ||
"%WIX%bin\candle" %WIX_CANDLE_FLAGS% -out build\ -arch x64 svcctl.wxs | ||
"%WIX%bin\light" %WIX_LIGHT_FLAGS% -out "..\\bin\\svcctl-%SVCCTL_VERSION%.msi" "build\\svcctl.wixobj" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters