mirror of
https://github.com/RoyalnetworkTR/Royalnetwork-Launcher.git
synced 2026-09-25 01:10:09 +03:00
51 lines
1.4 KiB
JavaScript
51 lines
1.4 KiB
JavaScript
const builder = require('electron-builder')
|
||
const { preductname } = require('./package.json')
|
||
|
||
|
||
builder.build({
|
||
config: {
|
||
generateUpdatesFilesForAllChannels: true,
|
||
appId: preductname,
|
||
productName: preductname,
|
||
artifactName: "${productName}-${os}-${arch}.${ext}",
|
||
files: ["src/**/*", "package.json", "LICENSE.md"],
|
||
directories: { "output": "dist" },
|
||
compression: 'maximum',
|
||
asar: true,
|
||
win: {
|
||
icon: "./src/assets/images/icon.ico",
|
||
target: [{
|
||
target: "nsis",
|
||
arch: ["x64"]
|
||
}],
|
||
},
|
||
nsis: {
|
||
oneClick: true,
|
||
allowToChangeInstallationDirectory: false,
|
||
createDesktopShortcut: true,
|
||
runAfterFinish: true
|
||
},
|
||
mac: {
|
||
icon: "./src/assets/images/icon.icns",
|
||
category: "public.app-category.games",
|
||
target: [{
|
||
target: "dmg",
|
||
arch: ["x64", "arm64"]
|
||
}]
|
||
},
|
||
linux: {
|
||
icon: "./src/assets/images/icon.png",
|
||
target: [{
|
||
target: "AppImage",
|
||
arch: ["x64"]
|
||
}, {
|
||
target: "tar.gz",
|
||
arch: ["x64"]
|
||
}]
|
||
}
|
||
}
|
||
}).then(() => {
|
||
console.log('Yapı bitti')
|
||
}).catch(err => {
|
||
console.error('Error during build!', err)
|
||
}) |