Skip to content

Instantly share code, notes, and snippets.

@Furzel
Created October 16, 2014 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Furzel/c9102200aa54b4ab9716 to your computer and use it in GitHub Desktop.
Save Furzel/c9102200aa54b4ab9716 to your computer and use it in GitHub Desktop.
Auto build nw application on nw with custom icon
@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