build.bat: added upx minify for caesiumclt.exe
This commit is contained in:
@@ -85,19 +85,6 @@ if errorlevel 1 (
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
rem =========================
|
||||
rem Optional UPX
|
||||
rem =========================
|
||||
|
||||
if defined MINIFY (
|
||||
if exist "%UPX_DIR%\upx.exe" (
|
||||
echo [INFO] Running UPX compression...
|
||||
"%UPX_DIR%\upx.exe" --best --force "%BUILD_DIR%\pptx-image-compress.exe"
|
||||
) else (
|
||||
echo [WARN] UPX not found at %UPX_DIR%
|
||||
)
|
||||
)
|
||||
|
||||
rem =========================
|
||||
rem Copy templates
|
||||
rem =========================
|
||||
@@ -111,6 +98,21 @@ rem Copy caesiumclt.exe
|
||||
rem =========================
|
||||
copy "%SELF_DIR%bin\caesiumclt.exe" "%BUILD_DIR%\caesiumclt.exe"
|
||||
|
||||
|
||||
rem =========================
|
||||
rem Optional UPX
|
||||
rem =========================
|
||||
|
||||
if defined MINIFY (
|
||||
if exist "%UPX_DIR%\upx.exe" (
|
||||
echo [INFO] Running UPX compression...
|
||||
"%UPX_DIR%\upx.exe" --best --force "%BUILD_DIR%\pptx-image-compress.exe"
|
||||
"%UPX_DIR%\upx.exe" --best --force "%BUILD_DIR%\caesiumclt.exe"
|
||||
) else (
|
||||
echo [WARN] UPX not found at %UPX_DIR%
|
||||
)
|
||||
)
|
||||
|
||||
rem =========================
|
||||
rem Done
|
||||
rem =========================
|
||||
|
||||
Reference in New Issue
Block a user