Merge pull request #1748 from onionshare/add-version-in-executables

Adds version information to macos
This commit is contained in:
Micah Lee 2023-09-05 11:40:53 -07:00 committed by GitHub
commit 84e48d7aec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -159,7 +159,7 @@ def get_tor_macos(gpg, torkey, macos_url, macos_filename, expected_macos_sig):
os.path.join(dist_path, "geoip6"),
)
shutil.copyfile(
os.path.join(dmg_tor_path, "MacOS", "Tor", "tor.real"),
os.path.join(dmg_tor_path, "MacOS", "Tor", "tor"),
os.path.join(dist_path, "tor"),
)
os.chmod(os.path.join(dist_path, "tor"), 0o755)

View File

@ -146,6 +146,10 @@ setup(
"bdist_mac": {
"iconfile": os.path.join("onionshare", "resources", "onionshare.icns"),
"bundle_name": "OnionShare",
"plist_items": [
("CFBundleShortVersionString", version),
("CFBundleVersion", version),
],
},
},
executables=[