Files
capcut-mate/desktop-client/scripts/electron-builder.config.js
2026-08-24 22:42:08 +08:00

78 lines
1.7 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* Electron Builder Configuration
*/
module.exports = {
appId: "com.gogoshine.capcut-mate",
productName: "剪映小助手",
directories: {
output: "dist"
},
afterPack: require("./afterPackWinIcon"),
files: [
"**/*",
// "!node_modules",
"!web",
"!dist",
"!electron-builder.config.js",
"!.gitignore",
"!.github",
"!README.md",
"!.vscode",
"!DS_Store",
],
win: {
icon: "assets/icons/logo.ico",
target: "nsis",
artifactName: "capcut-mate-windows-x64-installer.exe",
// 跳过 winCodeSign本机解压会因符号链接权限失败exe 图标由 afterPack 写入
signingHashAlgorithms: [],
signAndEditExecutable: false,
signDlls: false
},
nsis: {
oneClick: false,
allowToChangeInstallationDirectory: true,
installerIcon: "assets/icons/logo.ico",
uninstallerIcon: "assets/icons/logo.ico",
shortcutName: "剪映小助手",
},
mac: {
icon: "assets/icons/logo.icns",
target: [
{
target: "dmg",
arch: "arm64"
},
{
target: "dmg",
arch: "x64"
}
],
artifactName: "capcut-mate-macos-${arch}-installer.dmg",
category: "public.app-category.productivity",
hardenedRuntime: true,
gatekeeperAssess: false,
entitlements: "assets/entitlements.mac.plist",
entitlementsInherit: "assets/entitlements.mac.plist"
},
dmg: {
background: null,
window: {
width: 540,
height: 380
},
contents: [
{
x: 130,
y: 150,
type: "file"
},
{
x: 410,
y: 150,
type: "link",
path: "/Applications"
}
]
}
};