piskel/misc/scripts/package-windows-executable.cmd

24 lines
599 B
Batchfile
Raw Normal View History

2014-06-22 02:05:02 +04:00
@ECHO off
2014-06-22 00:39:37 +04:00
2014-06-22 02:05:02 +04:00
SETLOCAL
2014-06-22 00:39:37 +04:00
2014-06-22 02:05:02 +04:00
PUSHD ..\..
set PISKEL_HOME=%cd%
POPD
2014-06-22 00:39:37 +04:00
2014-06-22 02:05:02 +04:00
set RESOURCE_HACKER_PATH="C:\Program Files (x86)\Resource Hacker"
2014-06-22 00:39:37 +04:00
2014-06-22 02:05:02 +04:00
set MISC_FOLDER=%PISKEL_HOME%\misc
set RELEASES_FOLDER=%PISKEL_HOME%\dest\desktop
set DEST_FOLDER=%RELEASES_FOLDER%\piskel\win32
2014-06-22 00:39:37 +04:00
2014-06-22 02:05:02 +04:00
ECHO "Updating Piskel icon -- Using Resource Hacker"
2014-08-14 03:50:33 +04:00
%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"
2014-06-22 02:05:02 +04:00
ECHO "DONE"
2014-06-22 00:39:37 +04:00
2014-06-22 02:05:02 +04:00
PAUSE
explorer "%DEST_FOLDER%\"
2014-06-22 00:39:37 +04:00
2014-06-22 02:05:02 +04:00
ENDLOCAL