piskel/misc/scripts/package-windows-executable.cmd
2015-04-29 04:00:46 +02:00

24 lines
No EOL
599 B
Batchfile

@ECHO off
SETLOCAL
PUSHD ..\..
set PISKEL_HOME=%cd%
POPD
set RESOURCE_HACKER_PATH="C:\Program Files (x86)\Resource Hacker"
set MISC_FOLDER=%PISKEL_HOME%\misc
set RELEASES_FOLDER=%PISKEL_HOME%\dest\desktop
set DEST_FOLDER=%RELEASES_FOLDER%\piskel\win32
ECHO "Updating Piskel icon -- Using Resource Hacker"
%RESOURCE_HACKER_PATH%\ResHacker -addoverwrite "%DEST_FOLDER%\piskel.exe", "%DEST_FOLDER%\piskel-logo.exe", "%MISC_FOLDER%\desktop\logo.ico", ICONGROUP, IDR_MAINFRAME, 1033
DEL "%DEST_FOLDER%\piskel.exe"
ECHO "DONE"
PAUSE
explorer "%DEST_FOLDER%\"
ENDLOCAL