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

27 lines
733 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 VBOX_PATH="C:\Program Files (x86)\Enigma Virtual Box"
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 APP_BIN="%PISKEL_HOME%\dest\desktop\cache\win\0.9.2"
set MISC_FOLDER=%PISKEL_HOME%\misc
set RELEASES_FOLDER=%PISKEL_HOME%\dest\desktop\releases
2014-08-14 03:50:33 +04:00
set DEST_FOLDER=%RELEASES_FOLDER%\piskel\win\piskel
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