From c75d5dedd0073daca5618fc691c127400490a4f8 Mon Sep 17 00:00:00 2001 From: Lorenzo Zottar Date: Wed, 20 Jul 2016 18:52:19 +0200 Subject: [PATCH] Modified Info.plist generation to enable folder drop onto dock icon (#307) * Added CFBundleDocumentTypes to package Info.plist generation * More precise CFBundleDocumentTypes in Info.plist --- scripts/package.sh | 2 +- static/Info.plist | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 static/Info.plist diff --git a/scripts/package.sh b/scripts/package.sh index 17733ad3..d8caa53c 100755 --- a/scripts/package.sh +++ b/scripts/package.sh @@ -23,7 +23,7 @@ cp -r app/assets build/ cp app/index.html build/ cp -r app/dist build/ mkdir dist -electron-packager ./ --platform=darwin --out=dist --arch=x64 --app-bundle-id="co.zeit.hyperterm" --app-version="$VERSION" --osx-sign.identity="$HYPERTERM_OSX_SIGNING_IDENTITY" --icon=static/icon.icns --prune --ignore=app/ +electron-packager ./ --platform=darwin --out=dist --arch=x64 --app-bundle-id="co.zeit.hyperterm" --app-version="$VERSION" --extend-info=static/Info.plist --osx-sign.identity="$HYPERTERM_OSX_SIGNING_IDENTITY" --icon=static/icon.icns --prune --ignore=app/ cd dist/HyperTerm-darwin-x64/ zip -r -q -y ../hyperterm-macos-x64-$VERSION.zip . cd - diff --git a/static/Info.plist b/static/Info.plist new file mode 100644 index 00000000..4d91015b --- /dev/null +++ b/static/Info.plist @@ -0,0 +1,34 @@ + + + CFBundleDocumentTypes + + + CFBundleTypeName + Folders + CFBundleTypeRole + Viewer + LSItemContentTypes + + public.folder + com.apple.bundle + com.apple.package + com.apple.resolvable + + LSHandlerRank + Alternate + + + CFBundleTypeName + UnixExecutables + CFBundleTypeRole + Shell + LSItemContentTypes + + public.unix-executable + + LSHandlerRank + Alternate + + + +