osxbundle: remove old version retrieval fallback

This commit is contained in:
der richter 2024-02-17 22:38:24 +01:00
parent 6b5b4b74b1
commit 166f039edb
1 changed files with 3 additions and 4 deletions

View File

@ -42,17 +42,14 @@ def sign_bundle(binary_name):
sh('codesign --force --deep -s - ' + bundle_path(binary_name))
def bundle_version():
version = 'UNKNOWN'
if os.path.exists('VERSION'):
x = open('VERSION')
version = x.read()
x.close()
else:
version = sh("./version.sh").strip()
return version
def main():
version = bundle_version().rstrip()
usage = "usage: %prog [options] arg"
parser = OptionParser(usage)
parser.add_option("-s", "--skip-deps", action="store_false", dest="deps",
@ -66,6 +63,8 @@ def main():
else:
binary_name = args[0]
version = bundle_version().rstrip()
print("Creating Mac OS X application bundle (version: %s)..." % version)
print("> copying bundle skeleton")
copy_bundle(binary_name)