Skip to content

Commit d6c5843

Browse files
committed
try fix actions
1 parent fb43176 commit d6c5843

File tree

4 files changed

+84
-183
lines changed

4 files changed

+84
-183
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-lock.json

Lines changed: 67 additions & 176 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 3 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": [
@@ -67,6 +74,7 @@
6774
}
6875
},
6976
"devDependencies": {
77+
"@electron/notarize": "^3.0.1",
7078
"concurrently": "^9.1.2",
7179
"cross-env": "^7.0.3",
7280
"electron": "^35.1.0",

scripts/notarize.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
const { notarize } = require("electron-notarize");
1+
// scripts/notarize.js
2+
import { notarize } from "@electron/notarize";
23

34
exports.default = async function notarizing(context) {
45
const { electronPlatformName, appOutDir } = context;
56
if (electronPlatformName !== "darwin") return;
6-
7+
const appPath = `${appOutDir}/Jaaz.app`;
8+
console.log("appPath", appPath);
79
return await notarize({
8-
appBundleId: "com.jaaz.app",
9-
appPath: `${appOutDir}/Jaaz.app`, // Replace with your actual .app name
10+
appPath,
1011
appleId: process.env.APPLE_ID,
1112
appleIdPassword: process.env.APPLE_APP_PASSWORD,
1213
teamId: process.env.TEAM_ID,

0 commit comments

Comments
 (0)