mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 11:28:17 -04:00
Fixes for icons
This commit is contained in:
parent
09fe314fc0
commit
ce2a8fadeb
@ -23,6 +23,8 @@
|
|||||||
;
|
;
|
||||||
; PPGAME - directory containing prepagaged game, if any (ie, "C:\My Games\Airblade")
|
; PPGAME - directory containing prepagaged game, if any (ie, "C:\My Games\Airblade")
|
||||||
; PPMAIN - python program containing prepackaged game, if any (ie, "Airblade.py")
|
; PPMAIN - python program containing prepackaged game, if any (ie, "Airblade.py")
|
||||||
|
; PPICON - file containing icon of prepackaged game.
|
||||||
|
;
|
||||||
|
|
||||||
!include "MUI.nsh"
|
!include "MUI.nsh"
|
||||||
!include "WinMessages.nsh"
|
!include "WinMessages.nsh"
|
||||||
@ -108,7 +110,7 @@ Section "${SMDIRECTORY}" SecCore
|
|||||||
File /r "${PANDA}\bin\ppython.exe"
|
File /r "${PANDA}\bin\ppython.exe"
|
||||||
SetOutpath $INSTDIR\game
|
SetOutpath $INSTDIR\game
|
||||||
File /r "${PPGAME}\*"
|
File /r "${PPGAME}\*"
|
||||||
CreateShortCut "$SMPROGRAMS\${SMDIRECTORY}\Play ${NAME}.lnk" "$INSTDIR\bin\ppython.exe" "${PPMAIN}" "$INSTDIR\bin\ppython.exe" 0 SW_SHOWMINIMIZED "" "Play ${NAME}"
|
CreateShortCut "$SMPROGRAMS\${SMDIRECTORY}\Play ${NAME}.lnk" "$INSTDIR\bin\ppython.exe" "${PPMAIN}" "$INSTDIR\${PPICON}" 0 SW_SHOWMINIMIZED "" "Play ${NAME}"
|
||||||
|
|
||||||
!else
|
!else
|
||||||
|
|
||||||
|
@ -141,6 +141,11 @@ if (os.path.isfile(LICENSE)==0):
|
|||||||
if (os.path.isfile(BITMAP)==0):
|
if (os.path.isfile(BITMAP)==0):
|
||||||
BITMAP=os.path.join(NSIS,"Contrib","Graphics","Wizard","nsis.bmp")
|
BITMAP=os.path.join(NSIS,"Contrib","Graphics","Wizard","nsis.bmp")
|
||||||
|
|
||||||
|
if (os.path.isfile(ICON)==0):
|
||||||
|
PPICON="bin\\ppython.exe"
|
||||||
|
else:
|
||||||
|
PPICON="game\\icon.ico"
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
#
|
#
|
||||||
# Copy the game to a temporary directory, so we can modify it safely.
|
# Copy the game to a temporary directory, so we can modify it safely.
|
||||||
@ -247,6 +252,7 @@ CMD=CMD+'/DPANDA="'+PANDA+'" '
|
|||||||
CMD=CMD+'/DPSOURCE="'+PSOURCE+'" '
|
CMD=CMD+'/DPSOURCE="'+PSOURCE+'" '
|
||||||
CMD=CMD+'/DPPGAME="'+TMPDIR+'" '
|
CMD=CMD+'/DPPGAME="'+TMPDIR+'" '
|
||||||
CMD=CMD+'/DPPMAIN="'+MAIN+'" '
|
CMD=CMD+'/DPPMAIN="'+MAIN+'" '
|
||||||
|
CMD=CMD+'/DPPICON="'+PPICON+'" '
|
||||||
CMD=CMD+'"'+PSOURCE+'\\direct\\src\\directscripts\\packpanda.nsi"'
|
CMD=CMD+'"'+PSOURCE+'\\direct\\src\\directscripts\\packpanda.nsi"'
|
||||||
|
|
||||||
print ""
|
print ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user