mirror of
https://github.com/arsenetar/dupeguru.git
synced 2024-10-31 22:05:58 +00:00
Simplified the dev cocoa build process.
--HG-- branch : objp
This commit is contained in:
parent
01f1e5e46e
commit
f636333938
22
build.py
22
build.py
@ -39,16 +39,13 @@ def build_cocoa(edition, dev):
|
|||||||
from pluginbuilder import build_plugin
|
from pluginbuilder import build_plugin
|
||||||
build_cocoa_proxy_module()
|
build_cocoa_proxy_module()
|
||||||
print("Building dg_cocoa.plugin")
|
print("Building dg_cocoa.plugin")
|
||||||
if dev:
|
specific_packages = {
|
||||||
tocopy = ['cocoa/inter', 'cocoalib/cocoa']
|
'se': ['core_se'],
|
||||||
else:
|
'me': ['core_me'],
|
||||||
specific_packages = {
|
'pe': ['core_pe'],
|
||||||
'se': ['core_se'],
|
}[edition]
|
||||||
'me': ['core_me'],
|
tocopy = ['core', 'hscommon', 'cocoa/inter', 'cocoalib/cocoa'] + specific_packages
|
||||||
'pe': ['core_pe'],
|
copy_packages(tocopy, 'build', create_links=dev)
|
||||||
}[edition]
|
|
||||||
tocopy = ['core', 'hscommon', 'cocoa/inter', 'cocoalib/cocoa'] + specific_packages
|
|
||||||
copy_packages(tocopy, 'build')
|
|
||||||
cocoa_project_path = 'cocoa/{0}'.format(edition)
|
cocoa_project_path = 'cocoa/{0}'.format(edition)
|
||||||
shutil.copy(op.join(cocoa_project_path, 'dg_cocoa.py'), 'build')
|
shutil.copy(op.join(cocoa_project_path, 'dg_cocoa.py'), 'build')
|
||||||
os.chdir('build')
|
os.chdir('build')
|
||||||
@ -59,11 +56,6 @@ def build_cocoa(edition, dev):
|
|||||||
if op.exists(pluginpath):
|
if op.exists(pluginpath):
|
||||||
shutil.rmtree(pluginpath)
|
shutil.rmtree(pluginpath)
|
||||||
shutil.move('build/dist/dg_cocoa.plugin', pluginpath)
|
shutil.move('build/dist/dg_cocoa.plugin', pluginpath)
|
||||||
if dev:
|
|
||||||
# In alias mode, the tweakings we do to the pythonpath aren't counted in. We have to
|
|
||||||
# manually put a .pth in the plugin
|
|
||||||
pthpath = op.join(pluginpath, 'Contents/Resources/dev.pth')
|
|
||||||
open(pthpath, 'w').write(op.abspath('.'))
|
|
||||||
os.chdir(cocoa_project_path)
|
os.chdir(cocoa_project_path)
|
||||||
print('Generating Info.plist')
|
print('Generating Info.plist')
|
||||||
app_version = get_module_version('core_{}'.format(edition))
|
app_version = get_module_version('core_{}'.format(edition))
|
||||||
|
Loading…
Reference in New Issue
Block a user