mirror of
https://github.com/YILS-LIN/short-video-factory.git
synced 2025-11-25 03:15:03 +08:00
46 lines
1.3 KiB
Plaintext
46 lines
1.3 KiB
Plaintext
// @see - https://www.electron.build/configuration/configuration
|
|
{
|
|
$schema: 'https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json',
|
|
productName: '短视频工厂',
|
|
appId: 'com.yils.short-video-factory',
|
|
asar: true,
|
|
directories: {
|
|
output: 'release/${version}',
|
|
},
|
|
files: ['dist', 'dist-electron', 'dist-native', 'locales'],
|
|
npmRebuild: false, // disable rebuild node_modules 使用包内自带预构建二进制,而不重新构建
|
|
beforePack: './scripts/before-pack.js',
|
|
mac: {
|
|
target: [
|
|
{
|
|
target: 'dmg',
|
|
arch: ['universal'],
|
|
},
|
|
],
|
|
artifactName: '${name}-${version}-mac-${arch}-installer.${ext}',
|
|
icon: './public/icon.png',
|
|
},
|
|
win: {
|
|
target: [
|
|
{
|
|
target: 'nsis',
|
|
},
|
|
],
|
|
artifactName: '${name}-${version}-win-${arch}-setup.${ext}',
|
|
icon: './public/icon.png',
|
|
},
|
|
nsis: {
|
|
language: '0x0804',
|
|
oneClick: false,
|
|
perMachine: false,
|
|
allowToChangeInstallationDirectory: true,
|
|
deleteAppDataOnUninstall: false,
|
|
},
|
|
linux: {
|
|
target: ['AppImage'],
|
|
artifactName: '${name}-${version}-linux-${arch}.${ext}',
|
|
icon: './public/icon.png',
|
|
},
|
|
publish: null, // disable auto publish 防止重复发版
|
|
}
|