mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Fixes for icons
This commit is contained in:
parent
09fe314fc0
commit
ce2a8fadeb
@ -21,8 +21,10 @@
|
||||
; PSOURCE - location of the panda source-tree if available, OR location of panda install tree.
|
||||
; PYEXTRAS - directory containing python extras, if any.
|
||||
;
|
||||
; 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")
|
||||
; PPICON - file containing icon of prepackaged game.
|
||||
;
|
||||
|
||||
!include "MUI.nsh"
|
||||
!include "WinMessages.nsh"
|
||||
@ -108,7 +110,7 @@ Section "${SMDIRECTORY}" SecCore
|
||||
File /r "${PANDA}\bin\ppython.exe"
|
||||
SetOutpath $INSTDIR\game
|
||||
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
|
||||
|
||||
|
@ -141,6 +141,11 @@ if (os.path.isfile(LICENSE)==0):
|
||||
if (os.path.isfile(BITMAP)==0):
|
||||
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.
|
||||
@ -247,6 +252,7 @@ CMD=CMD+'/DPANDA="'+PANDA+'" '
|
||||
CMD=CMD+'/DPSOURCE="'+PSOURCE+'" '
|
||||
CMD=CMD+'/DPPGAME="'+TMPDIR+'" '
|
||||
CMD=CMD+'/DPPMAIN="'+MAIN+'" '
|
||||
CMD=CMD+'/DPPICON="'+PPICON+'" '
|
||||
CMD=CMD+'"'+PSOURCE+'\\direct\\src\\directscripts\\packpanda.nsi"'
|
||||
|
||||
print ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user