changeset 353:91474309de1a

Win32 installer: * Added instructions * Shortcuts for clients * Added SDK as an own component * Ignores *.svn, *.o and *.pyc files
author cheesesucker@33b003aa-7bff-0310-803a-e67f0ece8222
date Sun, 20 Sep 2009 14:18:59 +0000
parents 71428e21edef
children dfd48d49c044
files build/win32/installer/README.txt build/win32/installer/fife.iss
diffstat 2 files changed, 42 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/build/win32/installer/README.txt	Sun Sep 20 14:18:59 2009 +0000
@@ -0,0 +1,15 @@
+To create the installer you must have Inno Setup Compiler >= 5.3 installed.
+
+Then follow this procedure:
+1. Check out a clean copy of fife trunk into the same directory as the installer.
+2. Rename the directory from "trunk" to "fife"
+3. Install the Win32 SDK
+4. Build FIFE
+5. Compile the installer (right click fife.iss -> Compile)
+
+You should now have a working installer called FIFE {VERSION}.
+
+Now that you have the working copy set up, all you have to do to create a new installer is:
+1. Update the fife directory (svn update)
+2. Recompile FIFE
+3. Compile the installer
--- a/build/win32/installer/fife.iss	Sun Sep 20 11:45:27 2009 +0000
+++ b/build/win32/installer/fife.iss	Sun Sep 20 14:18:59 2009 +0000
@@ -1,8 +1,7 @@
 ; TODO:
 ;   * Check that ActivePython 2.5 is installed?
-;   * Run oalinst.exe?
-;   * Install shortcuts to the clients
-;   * Write instructions on how to use this script
+;   * Run oalinst.exe if openal DLL is not installed?
+;   * Test that the installer works as non-admin on xp, vista and win7
 
 [Setup]
 ; NOTE: The value of AppId uniquely identifies this application.
@@ -19,9 +18,13 @@
 DefaultGroupName=FIFE
 AllowNoIcons=yes
 LicenseFile=license.rtf
-OutputBaseFilename=setup
 Compression=lzma
 SolidCompression=yes
+OutputBaseFilename=FIFE 2009.1
+OutputDir=.
+DisableReadyPage=yes
+; This will require some testing. We can't install to Program files if the user is not an admin.
+; PrivilegesRequired=none
 
 [Types]
 Name: "full"; Description: "Full installation"
@@ -30,7 +33,8 @@
 
 [Components]
 Name: "main"; Description: "Main Files"; Types: full compact custom; Flags: fixed
-Name: "source"; Description: "Source code"; Types: full
+Name: "source"; Description: "Source code"; Types: full compact
+Name: "source\sdk"; Description: "Source Developer Kit"; Types: full
 Name: "clients"; Description: "Clients"; Types: full
 Name: "clients\editor"; Description: "Editor"; Types: full compact
 Name: "clients\rio_de_hola"; Description: "Rio de hola techdemo"; Types: full
@@ -41,25 +45,33 @@
 
 [Files]
 ; Main
-Source: "fife\*"; DestDir: "{app}"; Excludes: ".svn,\clients,\ext,\build,\utils,\engine\core"; Flags: ignoreversion recursesubdirs createallsubdirs
-Source: "fife\doc\README"; DestDir: "{app}\doc\"; DestName:"Readme.txt"
+Source: "fife\*"; DestDir: "{app}"; Excludes: ".svn,*.o,*.pyc,\clients,\ext,\build,\utils,\engine\core"; Flags: ignoreversion recursesubdirs createallsubdirs
+Source: "fife\doc\README"; DestDir: "{app}\doc\"; DestName:"Readme.txt"; Flags: isreadme
 Source: "fife\doc\AUTHORS"; DestDir: "{app}\doc\"; DestName:"Authors.txt"
 Source: "fife\doc\COPYING"; DestDir: "{app}\doc\"; DestName:"Copying.txt"
 
 ; Source
-Source: "fife\engine\core\*"; DestDir: "{app}\engine\core"; Excludes: ".svn"; Components: source; Flags: ignoreversion recursesubdirs createallsubdirs
-;Source: "fife\build\*"; DestDir: "{app}\build"; Excludes: ".svn"; Components: source; Flags: ignoreversion recursesubdirs createallsubdirs
-Source: "fife\utils\*"; DestDir: "{app}\utils"; Excludes: ".svn"; Components: source; Flags: ignoreversion recursesubdirs createallsubdirs
+Source: "fife\engine\core\*"; DestDir: "{app}\engine\core"; Excludes: ".svn,*.o,*.pyc"; Components: source; Flags: ignoreversion recursesubdirs createallsubdirs
+Source: "fife\build\*"; DestDir: "{app}\build"; Excludes: ".svn,*.o,*.pyc,\win32\applications,\win32\binaries,\win32\includes,\win32\static_libs"; Components: source; Flags: ignoreversion recursesubdirs createallsubdirs
+Source: "fife\utils\*"; DestDir: "{app}\utils"; Excludes: ".svn,*.o,*.pyc"; Components: source; Flags: ignoreversion recursesubdirs createallsubdirs
 ; We can probably drop this in the windows installer, saving some space
-;Source: "fife\ext\*"; DestDir: "{app}\ext"; Excludes: ".svn"; Components: source; Flags: ignoreversion recursesubdirs createallsubdirs
+;Source: "fife\ext\*"; DestDir: "{app}\ext"; Excludes: ".svn,*.o,*.pyc"; Components: source; Flags: ignoreversion recursesubdirs createallsubdirs
+
+; SDK
+Source: "fife\build\win32\applications\*"; DestDir: "{app}\build\win32\applications"; Excludes: ".svn,*.o,*.pyc"; Components: source\sdk; Flags: ignoreversion recursesubdirs createallsubdirs
+Source: "fife\build\win32\binaries\*"; DestDir: "{app}\build\win32\binaries"; Excludes: ".svn,*.o,*.pyc"; Components: source\sdk; Flags: ignoreversion recursesubdirs createallsubdirs
+Source: "fife\build\win32\includes\*"; DestDir: "{app}\build\win32\includes"; Excludes: ".svn,*.o,*.pyc"; Components: source\sdk; Flags: ignoreversion recursesubdirs createallsubdirs
+Source: "fife\build\win32\static_libs\*"; DestDir: "{app}\build\win32\static_libs"; Excludes: ".svn,*.o,*.pyc"; Components: source\sdk; Flags: ignoreversion recursesubdirs createallsubdirs
 
 ; Clients
-Source: "fife\clients\editor\*"; DestDir: "{app}\clients\editor"; Excludes: ".svn"; Components: clients\editor; Flags: ignoreversion recursesubdirs createallsubdirs
-;Source: "fife\clients\rio_de_hola\*" DestDir: "{app}\clients\rio_de_hola"; Excludes: ".svn"; Components: clients\rio_de_hola; Flags: ignoreversion recursesubdirs createallsubdirs
-Source: "fife\clients\pychan_demo\*"; DestDir: "{app}\clients\rio_de_hola"; Excludes: ".svn"; Components: clients\pychan_demo; Flags: ignoreversion recursesubdirs createallsubdirs
+Source: "fife\clients\editor\*"; DestDir: "{app}\clients\editor"; Excludes: ".svn,*.o,*.pyc"; Components: clients\editor; Flags: ignoreversion recursesubdirs createallsubdirs
+Source: "fife\clients\rio_de_hola\*"; DestDir: "{app}\clients\rio_de_hola"; Excludes: ".svn,*.o,*.pyc"; Components: clients\rio_de_hola; Flags: ignoreversion recursesubdirs createallsubdirs
+Source: "fife\clients\pychan_demo\*"; DestDir: "{app}\clients\rio_de_hola"; Excludes: ".svn,*.o,*.pyc"; Components: clients\pychan_demo; Flags: ignoreversion recursesubdirs createallsubdirs
 
 [Icons]
 Name: "{group}\{cm:ProgramOnTheWeb,FIFE}"; Filename: "http://www.fifengine.de/"
 Name: "{group}\{cm:UninstallProgram,FIFE}"; Filename: "{uninstallexe}"
+Name: "{group}\FIFEdit"; Filename: "{app}\clients\editor\run.py"; WorkingDir: "{app}\clients\editor"; Comment: "FIFE Editor"; Components: "clients\editor"
+Name: "{group}\Rio de hola"; Filename: "{app}\clients\rio_de_hola\run.py"; WorkingDir: "{app}\clients\rio_de_hola"; Comment: "Techdemo"; Components: "clients\rio_de_hola"
+Name: "{group}\Pychan demo"; Filename: "{app}\clients\pychan_demo\pychan_test.py"; WorkingDir: "{app}\clients\pychan_demo"; Comment: "FIFE GUI demo"; Components: "clients\pychan_demo"
 
-