mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 14:41:39 +00:00
Added an install destination in Cocoa projects because the built product location changed with XCode 4.2 and it became complicated, in build/package scripts, to locate it.
This commit is contained in:
9
build.py
9
build.py
@@ -78,12 +78,11 @@ def build_cocoa(edition, dev):
|
||||
os.system('xcodebuild {0}'.format(args))
|
||||
os.chdir('../..')
|
||||
print("Creating the run.py file")
|
||||
subfolder = 'dev' if dev else 'release'
|
||||
app_path = {
|
||||
'se': 'cocoa/se/build/{0}/dupeGuru.app',
|
||||
'me': 'cocoa/me/build/{0}/dupeGuru\\ ME.app',
|
||||
'pe': 'cocoa/pe/build/{0}/dupeGuru\\ PE.app',
|
||||
}[edition].format(subfolder)
|
||||
'se': 'cocoa/se/dupeGuru.app',
|
||||
'me': 'cocoa/me/dupeGuru\\ ME.app',
|
||||
'pe': 'cocoa/pe/dupeGuru\\ PE.app',
|
||||
}[edition]
|
||||
tmpl = open('run_template_cocoa.py', 'rt').read()
|
||||
run_contents = tmpl.replace('{{app_path}}', app_path)
|
||||
open('run.py', 'wt').write(run_contents)
|
||||
|
||||
Reference in New Issue
Block a user