Include commandline interface too in standalone Windows package.
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 13 Feb 2005 18:15:18 +0000 (18:15 +0000)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 13 Feb 2005 18:15:18 +0000 (18:15 +0000)
build-windows-py2exe-installer.py
packaging/windows/kofoto.iss.template

index 5bf8969..8afd2bb 100755 (executable)
@@ -17,13 +17,16 @@ options = {
         },
     }
 
-shutil.copy("src/gkofoto/start-installed.py", "kofoto.py")
-windows = ["kofoto.py"]
+shutil.copy("src/cmdline/kofoto", "kofoto.py")
+shutil.copy("src/gkofoto/start-installed.py", "gkofoto.py")
+console = ["kofoto.py"]
+windows = ["gkofoto.py"]
 sys.argv = [sys.argv[0], "py2exe"]
 
-setup.run(options=options, windows=windows)
+setup.run(options=options, console=console, windows=windows)
 
 os.unlink("kofoto.py")
+os.unlink("gkofoto.py")
 shutil.rmtree(glob.glob("dist/tcl")[0])
 os.remove(glob.glob("dist/tcl*.dll")[0])
 os.remove(glob.glob("dist/tk*.dll")[0])
index 504bf1d..fde8400 100644 (file)
@@ -21,10 +21,10 @@ Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescrip
 Source: "%distdir%\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs
 
 [Icons]
-Name: "{group}\Kofoto"; Filename: "{app}\kofoto.exe"
-Name: "{userdesktop}\Kofoto"; Filename: "{app}\kofoto.exe"; Tasks: desktopicon
-Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\Kofoto"; Filename: "{app}\kofoto.exe"; Tasks: quicklaunchicon
+Name: "{group}\Kofoto"; Filename: "{app}\gkofoto.exe"
+Name: "{userdesktop}\Kofoto"; Filename: "{app}\gkofoto.exe"; Tasks: desktopicon
+Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\Kofoto"; Filename: "{app}\gkofoto.exe"; Tasks: quicklaunchicon
 
 [Run]
-Filename: "{app}\kofoto.exe"; Description: "{cm:LaunchProgram,Kofoto}"; Flags: nowait postinstall skipifsilent
+Filename: "{app}\gkofoto.exe"; Description: "{cm:LaunchProgram,Kofoto}"; Flags: nowait postinstall skipifsilent