Commit 26d19eca authored by carlosperate's avatar carlosperate

Capitalise Mac OS X app package name.

This is the OS X convention.
parent e1a22316
......@@ -41,7 +41,7 @@ spec_coll_name = "server"
if platform.system() == "Darwin":
# On MacOS the Electron app contents are dumped into the project root
# directory and the entire folder is contained in a
# 'ardublockly.app/Contents' folder.
# 'Ardublockly.app/Contents' folder.
exec_folder = ""
else:
# In Windows and Linux the Electron files are located in this folder
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDisplayName</key>
<string>{{productName}} Helper EH</string>
<key>CFBundleExecutable</key>
<string>{{productName}} Helper EH</string>
<key>CFBundleIdentifier</key>
<string>{{identifier}}.helper.EH</string>
<key>CFBundleName</key>
<string>{{productName}} Helper EH</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>DTSDKName</key>
<string>macosx</string>
<key>LSUIElement</key>
<true/>
<key>NSSupportsAutomaticGraphicsSwitching</key>
<true/>
</dict>
</plist>
......@@ -62,10 +62,10 @@ def set_tag(tag):
global copy_dir_name
global copied_project_dir
copy_dir_name = "ardublockly_%s" % tag
# On OSX everything goes inside a folder structure ardublockly.app/Contents/
# On OSX everything goes inside a folder structure Ardublockly.app/Contents/
if platform.system() == "Darwin":
copy_dir_name = os.path.join(
copy_dir_name, 'ardublockly.app', 'Contents')
copy_dir_name, 'Ardublockly.app', 'Contents')
print(script_tab + 'Packing for Mac OS X, final folder structure: %s' %
copy_dir_name)
copied_project_dir = os.path.join(os.path.dirname(project_root_dir),
......@@ -220,8 +220,8 @@ def zip_ardublockly_copy(name_append):
os.makedirs(zip_file_dir)
app_folder = copied_project_dir
# In OS X the copied_project_dir is ardublockly_tag/Contents/ and we need
# to zip the .app folder
# In OS X copied_project_dir is ardublockly_tag/Ardublockly.app/Contents/
# and we need to zip the .app folder
if platform.system() == "Darwin":
app_folder = os.path.dirname(os.path.dirname(app_folder))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment