osxbundle: remove old version retrieval fallback
This commit is contained in:
1 parent
6b5b4b74b1
commit
166f039edb
1 file changed
+3
-4
+3
-4
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user