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 + + + +