4 t=`mktemp -d -t change-icon-of-exe.XXXXXX`
5 cp "$1" "$t/darkplaces-icon.ico"
6 cp "$2" "$t/darkplaces.exe"
7 cat >"$t/darkplaces.rc" <<EOF
8 #include <windows.h> // include for version info constants
10 A ICON MOVEABLE PURE LOADONCALL DISCARDABLE "darkplaces-icon.ico"
14 PRODUCTVERSION 1,0,0,0
17 BLOCK "StringFileInfo"
21 VALUE "CompanyName", "Forest Hale Digital Services"
22 VALUE "FileVersion", "1.0"
23 VALUE "FileDescription", "DarkPlaces Game Engine"
24 VALUE "InternalName", "darkplaces.exe"
25 VALUE "LegalCopyright", "id Software, Forest Hale, and contributors"
26 VALUE "LegalTrademarks", ""
27 VALUE "OriginalFilename", "darkplaces.exe"
28 VALUE "ProductName", "DarkPlaces"
29 VALUE "ProductVersion", "1.0"
35 wine "c:/Program Files/ResEdit/ResEdit.exe" -convert darkplaces.rc darkplaces.exe
37 mv "$t/darkplaces.exe" "$2"