Merge pull request #4739 from h3poteto/feat/mas

Add mas build configuration
This commit is contained in:
AkiraFukushima 2023-12-31 23:28:30 +09:00 committed by GitHub
commit 274aa76dec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 41 additions and 2 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ dist
tsconfig.tsbuildinfo
.yarn/*
!.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",