From ab3a7e844d1bcc80c9440912e704312610e5f2af Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Sun, 31 Dec 2023 23:19:36 +0900
Subject: [PATCH] Add mas build configuration
---
.gitignore | 3 ++-
electron-builder.mas.yml | 37 +++++++++++++++++++++++++++++++++++++
electron-builder.yml | 2 +-
package.json | 1 +
4 files changed, 41 insertions(+), 2 deletions(-)
create mode 100644 electron-builder.mas.yml
diff --git a/.gitignore b/.gitignore
index 354212d1..c6cf1729 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,4 +5,5 @@ app
dist
tsconfig.tsbuildinfo
.yarn/*
-!.yarn/releases
\ No newline at end of file
+!.yarn/releases
+profile/*
\ No newline at end of file
diff --git a/electron-builder.mas.yml b/electron-builder.mas.yml
new file mode 100644
index 00000000..70a69a6e
--- /dev/null
+++ b/electron-builder.mas.yml
@@ -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
diff --git a/electron-builder.yml b/electron-builder.yml
index b196881b..a300ef21 100644
--- a/electron-builder.yml
+++ b/electron-builder.yml
@@ -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
diff --git a/package.json b/package.json
index 1d20ea57..c280e33b 100644
--- a/package.json
+++ b/package.json
@@ -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",