Skip to content

Let's use AI to Earn!

style: 打包尝试

yikaJasonMic356d4667e817
diff --git a/scripts/aa.plist b/scripts/aa.plist
index 9e764d1d..3fec2168 100644
--- a/scripts/aa.plist
+++ b/scripts/aa.plist
@@ -1 +1,34 @@
-<key>com.apple.security.cs.allow-jit</key> //electron20+必须有此项否则闪退 <true/> <key>com.apple.security.cs.allow-unsigned-executable-memory</key> //防闪退 <true/> <key>com.apple.security.cs.disable-library-validation</key> //防闪退 <true/> //此项以下开始为自定义的权限,根据你的应用情况按需添加,不能多不能少 <key>com.apple.security.files.user-selected.read-only</key> //如果electron有showOpenDialog则必须有此项 <true/> <key>com.apple.security.files.user-selected.read-write</key> //如果electron有showSaveDialog则必须有此项 <true/> <key>com.apple.security.files.downloads.read-write</key> <true/>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+ <dict>
+ <key>com.apple.security.cs.allow-unsigned-executable-memory</key>
+ <true/>
+ <key>com.apple.security.cs.allow-jit</key>
+ <true/>
+ <!-- 网络访问 -->
+ <key>com.apple.security.network.client</key>
+ <true/>
+
+ <!-- 作为服务器接收连接 -->
+ <key>com.apple.security.network.server</key>
+ <true/>
+
+ <!-- 文件访问 -->
+ <key>com.apple.security.files.user-selected.read-write</key>
+ <true/>
+
+ <!-- 读取下载文件夹 -->
+ <key>com.apple.security.files.downloads.read-write</key>
+ <true/>
+
+
+ <key>com.apple.security.cs.disable-library-validation</key>
+ <true/>
+
+
+ <!-- 读写图片文件夹 -->
+ <key>com.apple.security.files.pictures.read-write</key>
+ <true/>
+ </dict>
+</plist>
\ No newline at end of file
diff --git a/scripts/entitlements.mac.plist b/scripts/entitlements.mac.plist
index 3fec2168..9f7cf514 100644
--- a/scripts/entitlements.mac.plist
+++ b/scripts/entitlements.mac.plist
@@ -1,34 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
- <dict>
- <key>com.apple.security.cs.allow-unsigned-executable-memory</key>
- <true/>
- <key>com.apple.security.cs.allow-jit</key>
- <true/>
- <!-- 网络访问 -->
- <key>com.apple.security.network.client</key>
- <true/>
-
- <!-- 作为服务器接收连接 -->
- <key>com.apple.security.network.server</key>
- <true/>
-
- <!-- 文件访问 -->
- <key>com.apple.security.files.user-selected.read-write</key>
- <true/>
-
- <!-- 读取下载文件夹 -->
- <key>com.apple.security.files.downloads.read-write</key>
- <true/>
-
-
- <key>com.apple.security.cs.disable-library-validation</key>
- <true/>
-
-
- <!-- 读写图片文件夹 -->
- <key>com.apple.security.files.pictures.read-write</key>
- <true/>
- </dict>
-</plist>
\ No newline at end of file
+ <dict>
+ <key>com.apple.security.cs.allow-unsigned-executable-memory</key>
+ <true/>
+ </dict>
+</plist>
diff --git a/scripts/notarize.cjs b/scripts/notarize.cjs
index 8c482799..016f55c7 100644
--- a/scripts/notarize.cjs
+++ b/scripts/notarize.cjs
@@ -1,7 +1,7 @@
/*
* @Author: nevin
* @Date: 2025-04-17 19:22:11
- * @LastEditTime: 2025-04-18 01:27:38
+ * @LastEditTime: 2025-04-29 15:06:56
* @LastEditors: nevin
* @Description:
*/
@@ -9,14 +9,20 @@
const { notarize } = require('@electron/notarize');
exports.default = async function notarizing(context) {
- const appName = context.packager.appInfo.productFilename;
- const { electronPlatformName, appOutDir } = context;
+ // console.log('--2222---', context);
+
+ const { productFilename, version } = context.packager.appInfo;
+ const { electronPlatformName, outDir } = context;
if (electronPlatformName !== 'darwin') return;
- let appPath = `${appOutDir}/${appName}.app`;
+ let appPath = `${outDir}/${productFilename}-${version}-arm64.dmg`;
console.log('notarizing-------', appPath);
return await notarize({
-
+ appBundleId: 'cn.aitoearn.pc',
+ appPath,
+ appleId: '[email protected]',
+ appleIdPassword: 'ivqj-wemu-qnbi-whgr',
+ teamId: '26A3V27SYB',
});
};