Skip to content

Commit f9c9c6c

Browse files
author
sreeder
committed
update make.py file
1 parent 43919bb commit f9c9c6c

File tree

2 files changed

+3
-23
lines changed

2 files changed

+3
-23
lines changed

make.py

+2-22
Original file line numberDiff line numberDiff line change
@@ -153,35 +153,15 @@ def run_pyinstaller(console=False):
153153
os.system(command)
154154
else:
155155
## Non Console Version
156-
command = """pyinstaller
157-
--clean
158-
--distpath=%s
159-
--workpath=%s
160-
--specpath=%s
161-
--noupx
162-
--icon=%s
163-
--version-file=%s
164-
--onefile
165-
--noconsole
166-
--noconfirm %s""" % (WIN_DIR, WORK_DIR, WIN_DIR, WIN_ICON_FILE, VERSION_FILE, APP_FILE)
156+
command = """pyinstaller --clean --distpath=%s --workpath=%s --specpath=%s --noupx --icon=%s --version-file=%s --onefile --noconsole --noconfirm %s""" % (WIN_DIR, WORK_DIR, WIN_DIR, WIN_ICON_FILE, VERSION_FILE, APP_FILE)
167157
os.system(command)
168158
except Exception as e:
169159
print (e)
170160
return False
171161

172162
def mac_pyinstaller():
173163
try:
174-
os.system('pyinstaller '
175-
'--clean '
176-
'--distpath=%s ' % MAC_DIST_DIR +
177-
'--workpath=%s ' % MAC_WORK_DIR +
178-
'--specpath=%s ' % MAC_DIR +
179-
'--upx-dir=%s ' % BASE_DIR +
180-
'--icon=%s ' % MAC_ICON_FILE +
181-
'--version-file=%s ' % VERSION_FILE +
182-
'--windowed '#'--onefile '
183-
'--noconfirm ' + APP_FILE)
184-
164+
os.system("""pyinstaller --clean --distpath=%s --workpath=%s --specpath=%s --upx-dir=%s --icon=%s --version-file=%s --windowed --onefile --noconfirm """ % (MAC_DIST_DIR, MAC_WORK_DIR, MAC_DIR,BASE_DIR, MAC_ICON_FILE, VERSION_FILE, APP_FILE)
185165
#copy "libwx_osx_cocoau-3.0.0.0.0.dylib"
186166
os.system("cp /anaconda/envs/odmtools/lib/libwx_osx_cocoau-3.0.0.0.0.dylib %s" % os.path.join(APP_DIR, "Contents/MacOS/"))
187167

setup/Windows/odmtools_console.iss

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#define MyAppName "ODMTools"
55

66
#define MyAppVersion "1.2.9_Beta"
7-
#define MyAppExeLongName "ODMTools_1.2._Beta_win32_x86_64_console.exe"
7+
#define MyAppExeLongName "ODMTools_1.2.9_Beta_win32_x86_64_console.exe"
88
#define MyAppPublisher "ODM2"
99
#define MyAppURL "https://github.com/ODM2/ODMToolsPython"
1010
#define MyAppExeName "ODMTools.exe"

0 commit comments

Comments
 (0)