Add mas build configuration

This commit is contained in:
AkiraFukushima 2023-12-31 23:19:36 +09:00
parent 9477c09854
commit ab3a7e844d
4 changed files with 41 additions and 2 deletions

3
.gitignore vendored
View File

@ -5,4 +5,5 @@ app
dist
tsconfig.tsbuildinfo
.yarn/*
!.yarn/releases
!.yarn/releases
profile/*

37
electron-builder.mas.yml Normal file
View File

@ -0,0 +1,37 @@
appId: social.whalebird.app
productName: Whalebird
copyright: Copyright © 2018 Akira Fukushima
artifactName: "${productName}-${version}-${os}-${arch}.${ext}"
buildVersion: "169"
directories:
output: dist
buildResources: resources
files:
- from: .
filter:
- package.json
- app
mas:
type: distribution
entitlements: "plist/parent.plist"
entitlementsInherit: "plist/child.plist"
entitlementsLoginHelper: "plist/loginhelper.plist"
hardenedRuntime: false
gatekeeperAssess: false
extendInfo:
ITSAppUsesNonExemptEncryption: "false"
provisioningProfile: "profile/socialwhalebirdapp_MAS.provisionprofile"
mac:
icon: resources/icons/icon.icns
target:
- target: mas
arch:
- universal
category: "public.app-category.social-networking"
hardenedRuntime: true
gatekeeperAssess: false
darkModeSupport: false
notarize: false
singleArchFiles: "*"
asarUnpack: "node_modules/**/*.node"
publish: null

View File

@ -1,6 +1,6 @@
appId: social.whalebird.app
productName: Whalebird
copyright: Copyright © 2023 Akira Fukushima
copyright: Copyright © 2018 Akira Fukushima
artifactName: "${productName}-${version}-${os}-${arch}.${ext}"
directories:
output: dist

View File

@ -8,6 +8,7 @@
"scripts": {
"dev": "nextron",
"build": "nextron build",
"build:mas": "nextron build --config ./electron-builder.mas.yml",
"postinstall": "electron-builder install-app-deps",
"typecheck": "tsc -p renderer --noEmit && tsc -p main --noEmit",
"lint": "eslint renderer --ext ts,tsx",