Skip to content

Commit

Permalink
Updated build script.
Browse files Browse the repository at this point in the history
  • Loading branch information
lordmulder committed Mar 29, 2018
1 parent 5dd5a6b commit 17f5246
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,5 +5,6 @@
/*.zip
/Contrib/StdUtils/ipch
/Contrib/StdUtils/obj
/Docs/StdUtils/StdUtils.html
/Plugins/*
/z_Final
Expand Up @@ -1275,7 +1275,7 @@ <h1><u>StdUtils - Swiss Army Knife for NSIS</u></h1>
<li>Added new functions <tt>${StdUtils.ProtectStr}</tt> and <tt>${StdUtils.UnprotectStr}</tt> to encrypt/decrypt strings using the <a href="https://msdn.microsoft.com/en-us/library/ms995355.aspx">DPAPI</a>.
<li>Added new function <tt>${StdUtils.StrToUtf8}</tt> and <tt>${StdUtils.StrFromUtf8}</tt> to convert a string to/from an UTF-8 byte sequence.
<li>Added new function <tt>${StdUtils.ValidDomainName}</tt> to validate a given domain name string.
<li>Various improvements to the pseudorandom number generator (<tt>${StdUtils.Rand*}</tt>) functions.
<li>Various "internal" improvements to the pseudorandom number generator (<tt>${StdUtils.Rand*}</tt>) functions.
</ul>
<li><b>Version 1.12, 2017-12-12</b>
<ul>
Expand Down
16 changes: 16 additions & 0 deletions Docs/StdUtils/minify.cmd
@@ -0,0 +1,16 @@
@echo off
set "HTML_COMPRESSOR_PATH=E:\Source\Prerequisites\HTMLCompressor\bin"

if not exist "%JAVA_HOME%\bin\java.exe" (
echo Java runtime not found, please check your JAVA_HOME!
pause & goto:eof
)

if not exist "%HTML_COMPRESSOR_PATH%\htmlcompressor-1.5.3.jar" (
echo HTML Compressor not found, please check your HTML_COMPRESSOR_PATH!
pause & goto:eof
)

"%JAVA_HOME%\bin\java.exe" -jar "%HTML_COMPRESSOR_PATH%\htmlcompressor-1.5.3.jar" --compress-css -o "%~dp0\StdUtils.html" "%~dp0\StdUtils.FULL.html"

REM pause
9 changes: 5 additions & 4 deletions make_pack.bat
Expand Up @@ -40,6 +40,7 @@ for %%c in (%CONFIG_NAMES%) do (
)
)
)
call "%~dp0\Docs\StdUtils\minify.cmd"
REM -------------------------------------------------------------------------
set "PACK_PATH=%TMP%\~%RANDOM%%RANDOM%.tmp"
mkdir "%PACK_PATH%"
Expand All @@ -54,10 +55,10 @@ for %%c in (%CONFIG_NAMES%) do (
mkdir "%PACK_PATH%\Plugins\%%c"
copy /Y "%~dp0\Plugins\Release_%%c\*.dll" "%PACK_PATH%\Plugins\%%c"
)
copy /Y "%~dp0\Include\*.nsh" "%PACK_PATH%\Include"
copy /Y "%~dp0\Examples\StdUtils\*.nsi" "%PACK_PATH%\Examples\StdUtils"
copy /Y "%~dp0\*.txt" "%PACK_PATH%"
copy /Y "%~dp0\Docs\StdUtils\*.html" "%PACK_PATH%\Docs\StdUtils"
copy /Y "%~dp0\Include\*.nsh" "%PACK_PATH%\Include"
copy /Y "%~dp0\Examples\StdUtils\*.nsi" "%PACK_PATH%\Examples\StdUtils"
copy /Y "%~dp0\Docs\StdUtils\StdUtils.html" "%PACK_PATH%\Docs\StdUtils"
copy /Y "%~dp0\*.txt" "%PACK_PATH%"
REM -------------------------------------------------------------------------
pushd "%~dp0"
git.exe archive --verbose --output "%PACK_PATH%\Contrib\StdUtils\StdUtils.%ISO_DATE%.Sources.tar" HEAD
Expand Down

0 comments on commit 17f5246

Please sign in to comment.