chore: prepare mac os build

This commit is contained in:
Johannes Millan 2019-10-05 17:43:37 +02:00
parent 9da97d7fff
commit 09b353e0a7
6 changed files with 79 additions and 51 deletions

4
.gitignore vendored
View file

@ -46,3 +46,7 @@ src/app/**/*.js.map
build/hub
electron/**/*.js
electron/**/*.js.map
# mac os deployment
embedded.provisionprofile
build/all-certs.p12

View file

View file

@ -0,0 +1,10 @@
<?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>com.apple.security.files.user-selected.read-only</key>
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
</dict>
</plist>

View file

@ -0,0 +1,14 @@
<?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>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.application-groups</key>
<string>XXXXX.your.bundle.id</string>
<key>com.apple.security.files.user-selected.read-only</key>
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
</dict>
</plist>

51
electron-builder.yaml Normal file
View file

@ -0,0 +1,51 @@
appId: superProductivity
files:
- electron/**/*
- "!electron/**/*.ts"
- "!electron/**/*.js.map"
- dist/**/*
directories:
output: "./app-builds"
win:
target:
- nsis
- portable
publish:
- github
appx:
applicationId: SuperProductivity
displayName: Super Productivity
publisherDisplayName: johannesjo
publisher: CN=___-___
identityName: ___johannesjo.SuperProductivity
linux:
category: Utility
target:
- AppImage
- snap
- deb
publish:
- github
snap:
grade: stable
stagePackages:
- default
-
mac:
category: public.app-category.productivity
entitlements: build/entitlements.mac.plist
icon: build/icon.icns
publish:
- github
target:
- pkg
- dmg
- zip
- mas
mas:
type: distribution
category: public.app-category.productivity
entitlements: build/entitlements.mas.plist
icon: build/icon.icns

View file

@ -65,57 +65,6 @@
"owner": "johannesjo"
}
],
"build": {
"appId": "superProductivity",
"files": [
"electron/**/*",
"!electron/**/*.ts",
"!electron/**/*.js.map",
"dist/**/*"
],
"directories": {
"output": "./app-builds"
},
"mac": {
"category": "productivity",
"publish": [
"github"
]
},
"win": {
"target": [
"nsis",
"portable"
],
"publish": [
"github"
]
},
"appx": {
"applicationId": "SuperProductivity",
"displayName": "Super Productivity",
"publisherDisplayName": "johannesjo",
"publisher": "CN=___-___",
"identityName": "___johannesjo.SuperProductivity"
},
"linux": {
"category": "Utility",
"target": [
"AppImage",
"snap",
"deb"
],
"publish": [
"github"
]
},
"snap": {
"grade": "stable",
"stagePackages": [
"default"
]
}
},
"dependencies": {
"electron-dl": "^1.13.0",
"electron-localshortcut": "^3.1.0",