Created
October 16, 2014 13:45
-
-
Save Furzel/c9102200aa54b4ab9716 to your computer and use it in GitHub Desktop.
Auto build nw application on nw with custom icon
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
@echo off | |
REM %1 is either staging or prod | |
REM Copy the config files and resources | |
copy %1\package.json . | |
copy %1\config.json . | |
copy ..\res\img\favicon.png . | |
copy ..\res\img\logo.png . | |
REM Zip everything into a node webkit package | |
7z a -tzip %1\App.nw package.json front.html favicon.png logo.png config.json | |
del package.json config.json | |
REM Add nodewebkit binary at the end of our application to embed it | |
copy /b nw.exe+%1\Front.nw ..\build\%1\App.exe | |
REM Set appliction icon | |
ResHacker.exe -addoverwrite "build\%1\App.exe", "build\%1\App.exe", "res\img\favicon.ico", ICONGROUP, IDR_MAINFRAME, 1033 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment