mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-04 23:45:04 -04:00
Add DMG creation to macOS package script
This commit is contained in:
parent
e1346db7f7
commit
f93341c86c
2 changed files with 41 additions and 5 deletions
|
@ -86,7 +86,43 @@ def main():
|
|||
)
|
||||
print(f"○ Signed app bundle: {app_path}")
|
||||
|
||||
print("○ TODO: Make a DMG package")
|
||||
if not os.path.exists("/usr/local/bin/create-dmg"):
|
||||
print("○ Error: create-dmg is not installed")
|
||||
return
|
||||
|
||||
print("○ Creating DMG")
|
||||
dmg_path = os.path.join(desktop_dir, "macOS", "OnionShare.dmg")
|
||||
run(
|
||||
[
|
||||
"create-dmg",
|
||||
"--volname",
|
||||
"OnionShare",
|
||||
"--volicon",
|
||||
os.path.join(
|
||||
desktop_dir, "src", "onionshare", "resources", "onionshare.icns"
|
||||
),
|
||||
"--window-size",
|
||||
"400",
|
||||
"200",
|
||||
"--icon-size",
|
||||
"100",
|
||||
"--icon",
|
||||
"OnionShare.app",
|
||||
"100",
|
||||
"70",
|
||||
"--hide-extension",
|
||||
"OnionShare.app",
|
||||
"--app-drop-link",
|
||||
"300",
|
||||
"70",
|
||||
dmg_path,
|
||||
app_path,
|
||||
"--identity",
|
||||
identity_name_application,
|
||||
]
|
||||
)
|
||||
|
||||
print(f"○ Finished building DMG: {dmg_path}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue