Skip to content
Snippets Groups Projects
Commit 5ed9e99a authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

Fix bundling osx app

parent 6639ab7a
No related branches found
No related tags found
No related merge requests found
...@@ -43,18 +43,20 @@ def main(): ...@@ -43,18 +43,20 @@ def main():
os.chdir(DISTPATH) os.chdir(DISTPATH)
filename = 'agkyra-%s-%s' % (version, osarg) filename = 'agkyra-%s-%s' % (version, osarg)
if osarg.startswith("linux"): if osarg.startswith('osx'):
arch_type = 'gztar'
base_dir = 'agkyra'
elif osarg.startswith('osx'):
arch_type = 'zip'
base_dir = 'agkyra.app' base_dir = 'agkyra.app'
elif osarg.startswith('win'): arch_name = "%s.zip" % filename
arch_type = 'zip' os.system("zip -ry %s %s" % (arch_name, base_dir))
base_dir = 'agkyra' else:
if osarg.startswith("linux"):
arch_name = shutil.make_archive( arch_type = 'gztar'
filename, arch_type, root_dir='.', base_dir=base_dir) base_dir = 'agkyra'
elif osarg.startswith('win'):
arch_type = 'zip'
base_dir = 'agkyra'
arch_name = shutil.make_archive(
filename, arch_type, root_dir='.', base_dir=base_dir)
print "Wrote %s" % os.path.join(DISTPATH, arch_name) print "Wrote %s" % os.path.join(DISTPATH, arch_name)
if __name__ == "__main__": if __name__ == "__main__":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment