Added links to sample programs. Not finished yet.

This commit is contained in:
Josh Yelon 2005-04-29 17:39:34 +00:00
parent b1a9ec1f09
commit db6ef92534

View File

@ -107,21 +107,6 @@ Section "${SMDIRECTORY}" SecCore
SetOutPath $INSTDIR\python\lib SetOutPath $INSTDIR\python\lib
File /nonfatal /r ${PSOURCE}\thirdparty\win-extras\* File /nonfatal /r ${PSOURCE}\thirdparty\win-extras\*
SetOutPath $INSTDIR
WriteINIStr $INSTDIR\Website.url "InternetShortcut" "URL" "http://panda3d.etc.cmu.edu/"
WriteINIStr $INSTDIR\Manual.url "InternetShortcut" "URL" "http://panda3d.etc.cmu.edu/manual/"
CreateShortCut "$SMPROGRAMS\${SMDIRECTORY}\Panda Manual.lnk" "$INSTDIR\Manual.url" "" "$INSTDIR\bin\ppython.exe" 0 "" "" "Panda Manual"
CreateShortCut "$SMPROGRAMS\${SMDIRECTORY}\Panda Website.lnk" "$INSTDIR\Website.url" "" "$INSTDIR\bin\ppython.exe" 0 "" "" "Panda Website"
SetOutPath $INSTDIR\samples\RubiksCube
CreateShortCut "$SMPROGRAMS\${SMDIRECTORY}\Panda Test - Rubiks Cube.lnk" "$INSTDIR\bin\ppython.exe" "rubiksCube.py" "$INSTDIR\bin\ppython.exe" 0 SW_SHOWMINIMIZED "" "Panda Test"
!endif
SectionEnd
!ifndef PPGAME
Section "Sample Worlds" SecSamples
SectionIn 1 2 3
DetailPrint "Extracting models ..." DetailPrint "Extracting models ..."
SetDetailsPrint textonly SetDetailsPrint textonly
SetOutPath $INSTDIR\models SetOutPath $INSTDIR\models
@ -132,9 +117,35 @@ Section "Sample Worlds" SecSamples
SetOutPath $INSTDIR\samples SetOutPath $INSTDIR\samples
File /r /x CVS ${PSOURCE}\samples\* File /r /x CVS ${PSOURCE}\samples\*
SetDetailsPrint both SetOutPath $INSTDIR
WriteINIStr $INSTDIR\Website.url "InternetShortcut" "URL" "http://panda3d.etc.cmu.edu/"
WriteINIStr $INSTDIR\Manual.url "InternetShortcut" "URL" "http://panda3d.etc.cmu.edu/manual/"
CreateShortCut "$SMPROGRAMS\${SMDIRECTORY}\Panda Manual.lnk" "$INSTDIR\Manual.url" "" "$INSTDIR\bin\ppython.exe" 0 "" "" "Panda Manual"
CreateShortCut "$SMPROGRAMS\${SMDIRECTORY}\Panda Website.lnk" "$INSTDIR\Website.url" "" "$INSTDIR\bin\ppython.exe" 0 "" "" "Panda Website"
SetOutPath $INSTDIR\samples\RubiksCube
CreateShortCut "$SMPROGRAMS\${SMDIRECTORY}\Panda Test - Rubiks Cube.lnk" "$INSTDIR\bin\ppython.exe" "rubiksCube.py" "$INSTDIR\bin\ppython.exe" 0 SW_SHOWMINIMIZED "" "Panda Test"
CreateDirectory "$SMPROGRAMS\${SMDIRECTORY}\Tutorials"
FindFirst $0 $1 $INSTDIR\samples\*
loop:
DetailPrint "Sample: $1"
StrCmp $1 "" done
StrCmp $1 "." next
StrCmp $1 ".." next
CreateDirectory "$SMPROGRAMS\${SMDIRECTORY}\Tutorials\$1"
SetOutPath $INSTDIR\samples\$1
CreateShortCut "$SMPROGRAMS\${SMDIRECTORY}\Tutorials\$1\Introduction.lnk" "$INSTDIR\samples\$1\Intro.html"
CreateShortCut "$SMPROGRAMS\${SMDIRECTORY}\Tutorials\$1\Run Tutorial.lnk" "$INSTDIR\bin\ppython.exe" "$1.py" "$INSTDIR\bin\ppython.exe" 0 SW_SHOWMINIMIZED "" "Tutorial: $1"
CreateShortCut "$SMPROGRAMS\${SMDIRECTORY}\Tutorials\$1\Browse Tutorial.lnk" "$INSTDIR\samples\$1"
next:
FindNext $0 $1
Goto loop
done:
!endif
SectionEnd SectionEnd
!endif
Section -post Section -post