Skip to content

Commit

Permalink
Allow for setting a variant name of MAP-Client in macOS installers an…
Browse files Browse the repository at this point in the history
…d app building.
  • Loading branch information
hsorby committed May 27, 2021
1 parent 3864d56 commit 1a7311b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
13 changes: 7 additions & 6 deletions res/macos/create_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,21 @@
version=0.15.0
variant=-mapping-tools

app_name=MAP-Client$variant-$version
dmg_name=$app_name.dmg
app_name=MAP-Client$variant
app_name_with_version=MAP-Client$variant-$version
dmg_name=$app_name_with_version.dmg
test -f $dmg_name && rm $dmg_name
# --volicon "application_icon.icns" \
create-dmg \
--volname $app_name \
--volname "$app_name_with_version" \
--volicon "MAP-Client.icns" \
--background "map-client-dmg-background.png" \
--window-pos 200 120 \
--window-size 800 400 \
--icon-size 100 \
--icon "MAP-Client.app" 200 190 \
--hide-extension "MAP-Client.app" \
--icon "$app_name.app" 200 190 \
--hide-extension "$app_name.app" \
--app-drop-link 600 185 \
$dmg_name \
"$dmg_name" \
"../pyinstaller/dist/"

3 changes: 2 additions & 1 deletion res/pyinstaller/create_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
import PySide2 as RefMod
import PyInstaller.__main__

variant = '-mapping-tools'

here = os.path.dirname(__file__)
hooks_dir = os.path.join('..', 'res', 'pyinstaller', 'hooks')

run_command = [
'../../src/mapclient/application.py',
'-n', 'MAP-Client',
'-n', f'MAP-Client{variant}',
'--debug', 'noarchive',
'--windowed',
'--noconfirm',
Expand Down

0 comments on commit 1a7311b

Please sign in to comment.