Skip to content

Commit b327232

Browse files
committed
try fix actions
1 parent fb43176 commit b327232

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# .github/workflows/build.yml
12
name: Build and Package Desktop App
23

34
on:

package.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,20 @@
4545
"mac": {
4646
"category": "public.app-category.utilities",
4747
"icon": "assets/icons/unicorn.icns",
48-
"target": "dmg",
48+
"target": [
49+
"dmg",
50+
"zip"
51+
],
52+
"gatekeeperAssess": false,
4953
"hardenedRuntime": true,
5054
"entitlements": "entitlements.mac.plist",
5155
"entitlementsInherit": "entitlements.mac.plist",
52-
"gatekeeperAssess": false
56+
"asarUnpack": [
57+
"**/*.{json,gz,txt,dat}"
58+
],
59+
"notarize": false
5360
},
54-
"afterSign": "./scripts/notarize.js",
61+
"afterSign": "scripts/notarize.js",
5562
"win": {
5663
"icon": "assets/icons/unicorn.ico",
5764
"target": [
@@ -70,7 +77,8 @@
7077
"concurrently": "^9.1.2",
7178
"cross-env": "^7.0.3",
7279
"electron": "^35.1.0",
73-
"electron-builder": "^24.0.0"
80+
"electron-builder": "^24.0.0",
81+
"electron-notarize": "^1.2.2"
7482
},
7583
"dependencies": {
7684
"playwright": "^1.52.0",

scripts/notarize.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1+
// scripts/notarize.js
12
const { notarize } = require("electron-notarize");
23

34
exports.default = async function notarizing(context) {
45
const { electronPlatformName, appOutDir } = context;
56
if (electronPlatformName !== "darwin") return;
67

78
return await notarize({
9+
tool: "notarytool",
810
appBundleId: "com.jaaz.app",
9-
appPath: `${appOutDir}/Jaaz.app`, // Replace with your actual .app name
11+
appPath: `${appOutDir}/Jaaz.app`,
1012
appleId: process.env.APPLE_ID,
1113
appleIdPassword: process.env.APPLE_APP_PASSWORD,
1214
teamId: process.env.TEAM_ID,

0 commit comments

Comments
 (0)