From db6ef9253430596ef7c9ee55cc1c5398be1d8b42 Mon Sep 17 00:00:00 2001 From: Josh Yelon Date: Fri, 29 Apr 2005 17:39:34 +0000 Subject: [PATCH] Added links to sample programs. Not finished yet. --- doc/makepanda/panda.nsi | 47 +++++++++++++++++++++++++---------------- 1 file changed, 29 insertions(+), 18 deletions(-) diff --git a/doc/makepanda/panda.nsi b/doc/makepanda/panda.nsi index 9dd0ecf236..831ae1ae9e 100755 --- a/doc/makepanda/panda.nsi +++ b/doc/makepanda/panda.nsi @@ -107,6 +107,16 @@ Section "${SMDIRECTORY}" SecCore SetOutPath $INSTDIR\python\lib File /nonfatal /r ${PSOURCE}\thirdparty\win-extras\* + DetailPrint "Extracting models ..." + SetDetailsPrint textonly + SetOutPath $INSTDIR\models + File /r /x CVS ${PANDA}\models\* + + DetailPrint "Extracting samples ..." + SetDetailsPrint textonly + SetOutPath $INSTDIR\samples + File /r /x CVS ${PSOURCE}\samples\* + 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/" @@ -114,28 +124,29 @@ Section "${SMDIRECTORY}" SecCore 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 -!ifndef PPGAME -Section "Sample Worlds" SecSamples - SectionIn 1 2 3 - - DetailPrint "Extracting models ..." - SetDetailsPrint textonly - SetOutPath $INSTDIR\models - File /r /x CVS ${PANDA}\models\* - - DetailPrint "Extracting samples ..." - SetDetailsPrint textonly - SetOutPath $INSTDIR\samples - File /r /x CVS ${PSOURCE}\samples\* - - SetDetailsPrint both -SectionEnd -!endif - Section -post