File tree Expand file tree Collapse file tree 3 files changed +16
-11
lines changed
Expand file tree Collapse file tree 3 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -214,8 +214,11 @@ def move_to_dist(filename):
214214 print (e )
215215
216216
217- def run_inno ():
218- os .system (INNO_EXECUTABLE + " " + INNO_SCRIPT )
217+ def run_inno (script = None ):
218+ if script is not None :
219+ os .system (INNO_EXECUTABLE + " " + script )
220+ else :
221+ os .system (INNO_EXECUTABLE + " " + INNO_SCRIPT )
219222
220223def run_no_installer ():
221224 # Need to finish, Not functional
@@ -237,11 +240,13 @@ def main():
237240
238241 print "Creating Windows Executable..."
239242 if run_pyinstaller ():
240- run_inno ()
243+ scriptpath = os .path .join (WIN_DIR , "odmtools_no_console.iss" )
244+ run_inno (script = scriptpath )
241245
242246 print "Creating Windows Executable Console..."
243247 if run_pyinstaller (console = True ):
244- run_inno ()
248+ scriptpath = os .path .join (WIN_DIR , "odmtools_console.iss" )
249+ run_inno (scriptpath )
245250
246251 print "Create No Installer "
247252
Original file line number Diff line number Diff line change 55#define MyAppVersion " 1.2.2_Beta"
66#define MyAppPublisher " ODM2"
77#define MyAppURL " https://github.com/ODM2/ODMToolsPython"
8- #define MyAppExeName " ODMTools_{#MyAppVersion}_win32_x86_64_console .exe"
8+ #define MyAppExeName " ODMTools_1.2.2_Beta_win32_x86_64_console .exe"
99#define MyAppDir " D:\DEV\ODMToolsPython"
1010
1111[Setup]
@@ -37,8 +37,8 @@ Name: "english"; MessagesFile: "compiler:Default.isl"
3737Name : " desktopicon" ; Description : " {cm:CreateDesktopIcon}" ; GroupDescription: " {cm:AdditionalIcons}" ; Flags : unchecked
3838
3939[Files]
40- Source : " {#MyAppDir}\setup\Dist\{#MyAppName}_{#MyAppVersion}_win32_x86_64_console\{#MyAppExeName} " ; DestDir : " {app} " ; Flags : ignoreversion
41- Source : " {#MyAppDir}\setup\Dist\{#MyAppName}_{#MyAppVersion}_win32_x86_64_console \*" ; DestDir : " {app} " ; Flags : ignoreversion recursesubdirs createallsubdirs
40+ Source : " {#MyAppDir}\setup\Windows\ODMTools\ODMTools.exe " ; DestDir : " {app} " ; Flags : ignoreversion
41+ Source : " {#MyAppDir}\setup\Windows\ODMTools \*" ; DestDir : " {app} " ; Flags : ignoreversion recursesubdirs createallsubdirs
4242; NOTE: Don't use "Flags: ignoreversion" on any shared system files
4343
4444[Icons]
Original file line number Diff line number Diff line change 55#define MyAppVersion " 1.2.2_Beta"
66#define MyAppPublisher " ODM2"
77#define MyAppURL " https://github.com/ODM2/ODMToolsPython"
8- #define MyAppExeName " {#MyAppName}_{#MyAppVersion}_win32_x86_64 .exe"
8+ #define MyAppExeName " ODMTools_1.2.2_Beta_win32_x86_64 .exe"
99#define MyAppDir " D:\DEV\ODMToolsPython"
1010
1111[Setup]
@@ -37,12 +37,12 @@ Name: "english"; MessagesFile: "compiler:Default.isl"
3737Name : " desktopicon" ; Description : " {cm:CreateDesktopIcon}" ; GroupDescription: " {cm:AdditionalIcons}" ; Flags : unchecked
3838
3939[Files]
40- Source : " {#MyAppDir}\setup\Dist\{#MyAppName}_{#MyAppVersion}_win32_x86_64 \{#MyAppExeName}" ; DestDir : " {app} " ; Flags : ignoreversion
41- Source : " {#MyAppDir}\setup\Dist\{#MyAppName}_{#MyAppVersion}_win32_x86_64 \*" ; DestDir : " {app} " ; Flags : ignoreversion recursesubdirs createallsubdirs
40+ Source : " {#MyAppDir}\setup\Windows\ODMTools \{#MyAppExeName}" ; DestDir : " {app} " ; Flags : ignoreversion
41+ Source : " {#MyAppDir}\setup\Windows\ODMTools \*" ; DestDir : " {app} " ; Flags : ignoreversion recursesubdirs createallsubdirs
4242; NOTE: Don't use "Flags: ignoreversion" on any shared system files
4343
4444[Icons]
45- Name : " {group} \{#MyAppName}" ; Filename : " {app} \{#MyAppExeName}"
45+ Name : " {group} \{#MyAppName}" ; Filename : " {app} \{#MyAppExeName}"
4646Name : " {group} \{cm:UninstallProgram,{#MyAppName}}" ; Filename : " {uninstallexe} "
4747Name : " {commondesktop}\{#MyAppName}" ; Filename : " {app} \{#MyAppExeName}" ; Tasks: desktopicon
4848
You can’t perform that action at this time.
0 commit comments