-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite build-installer.bat with a recipe.
- Loading branch information
Showing
4 changed files
with
68 additions
and
95 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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.\ .\ installer\sakura-*.iss | ||
sakura\ | ||
!BLD!\sakura.exe | ||
!BLD!\sakura_lang*.dll | ||
installer\sinst_src\sakura.exe.ini | ||
installer\sinst_src\sakura.exe.manifest.x | ||
installer\sinst_src\sakura.exe.manifest.v | ||
installer\externals\bregonig\bron412.zip\bregonig.dll | ||
installer\externals\bregonig\bron412.zip\!platform!\bregonig.dll | ||
installer\externals\universal-ctags\ctags-2018-09-16_e522743d-!platform:Win32=x86!.zip\ctags.exe | ||
help\sakura\sakura.chm | ||
help\plugin\plugin.chm | ||
help\macro\macro.chm | ||
sakura\keyword\ | ||
installer\sinst_src\keyword\*.* | ||
sakura\license\ | ||
LICENSE | ||
sakura\license\bregonig\ | ||
installer\externals\bregonig\bron412.zip\*.txt | ||
sakura\license\ctags\ | ||
installer\externals\universal-ctags\ctags-2018-09-16_e522743d-!platform:Win32=x86!.zip\license\*.* | ||
instmaterials\ | ||
installer\instmaterials\*.* |
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,64 +0,0 @@ | ||
@echo off | ||
|
||
SETLOCAL | ||
|
||
set UNZIP_CMD=%~dp0..\tools\zip\unzip.bat | ||
|
||
@echo ======================= | ||
@echo postBuild | ||
@echo ======================= | ||
|
||
: ---- arguments ---- : | ||
: "Win32" or "x64" | ||
set PLATFORM=%1 | ||
@echo PLATFORM=%PLATFORM% | ||
|
||
: "Debug" or "Release" | ||
set CONFIGURATION=%2 | ||
@echo CONFIGURATION=%CONFIGURATION% | ||
|
||
set DEST_DIR=..\%PLATFORM%\%CONFIGURATION% | ||
|
||
: ---- bron412 ---- : | ||
set INSTALLER_RESOURCES_BRON=%~dp0..\installer\temp\bron | ||
set BRON_ZIP=%~dp0..\installer\externals\bregonig\bron412.zip | ||
set DLL_BREGONIG_NAME=bregonig.dll | ||
if "%platform%" == "x64" ( | ||
set INSTALLER_RESOURCES_BRON_DLL=%INSTALLER_RESOURCES_BRON%\x64 | ||
) else ( | ||
set INSTALLER_RESOURCES_BRON_DLL=%INSTALLER_RESOURCES_BRON% | ||
) | ||
|
||
if not exist "%INSTALLER_RESOURCES_BRON_DLL%\%DLL_BREGONIG_NAME%" ( | ||
@echo extract %BRON_ZIP% | ||
call %UNZIP_CMD% %BRON_ZIP% %INSTALLER_RESOURCES_BRON% || (echo error && exit /b 1) | ||
) | ||
if not exist "%DEST_DIR%\%DLL_BREGONIG_NAME%" ( | ||
@echo %DLL_BREGONIG_NAME% to destination directory. | ||
copy /Y /B %INSTALLER_RESOURCES_BRON_DLL%\%DLL_BREGONIG_NAME% %DEST_DIR%\ | ||
) | ||
|
||
: ---- ctags.exe ---- : | ||
set INSTALLER_RESOURCES_CTAGS=%~dp0..\installer\temp\ctags | ||
set INSTALLER_RESOURCES_CTAGS_EXE=%INSTALLER_RESOURCES_CTAGS% | ||
if "%PLATFORM%" == "Win32" ( | ||
set CTAGS_PREFIX=x86 | ||
) else if "%PLATFORM%" == "x64" ( | ||
set CTAGS_PREFIX=x64 | ||
) else ( | ||
@echo unknown PLATFORM %PLATFORM% | ||
exit /b 1 | ||
) | ||
set CTAGS_ZIP=%~dp0..\installer\externals\universal-ctags\ctags-2018-09-16_e522743d-%CTAGS_PREFIX%.zip | ||
set EXE_CTAGS_NAME=ctags.exe | ||
|
||
if not exist "%INSTALLER_RESOURCES_CTAGS_DLL%\%EXE_CTAGS_NAME%" ( | ||
@echo extract %CTAGS_ZIP% | ||
call %UNZIP_CMD% %CTAGS_ZIP% %INSTALLER_RESOURCES_CTAGS% || (echo error && exit /b 1) | ||
) | ||
if not exist "%DEST_DIR%\%EXE_CTAGS_NAME%" ( | ||
@echo %EXE_CTAGS_NAME% to destination directory. | ||
copy /Y /B %INSTALLER_RESOURCES_CTAGS_EXE%\%EXE_CTAGS_NAME% %DEST_DIR%\ | ||
) | ||
|
||
ENDLOCAL | ||
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