mirror of
https://github.com/Hommy-master/capcut-mate.git
synced 2026-09-03 06:25:40 +08:00
78 lines
1.7 KiB
JavaScript
78 lines
1.7 KiB
JavaScript
/**
|
||
* 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"
|
||
}
|
||
]
|
||
}
|
||
}; |