4
0
mirror of https://github.com/AltarikMC/Launcher synced 2024-11-24 06:39:50 +01:00
Launcher/config.forge.cjs

54 lines
1.2 KiB
JavaScript
Raw Permalink Normal View History

2024-01-23 19:16:32 +01:00
const path = require('path')
const pkg = require('./package.json')
module.exports = {
2024-01-23 19:16:32 +01:00
packagerConfig: {
packageName: 'altarik-launcher',
name: 'Altarik Launcher',
productName: 'altarik-launcher',
icon: path.resolve(__dirname, 'icon.ico'),
asar: true,
ignore: [
/^\/src/,
/(.eslintrc.json)|(.gitignore)|(electron.vite.config.ts)|(forge.config.cjs)|(tsconfig.*)/
]
},
plugins: [
{
name: '@electron-forge/plugin-auto-unpack-natives',
config: {}
}
],
makers: [
{
name: '@electron-forge/maker-squirrel',
platforms: ['darwin', 'win32'],
config: {
name: pkg.name,
iconUrl: path.resolve(__dirname, 'icon.ico'),
// loadingGif: path.resolve(__dirname, 'src/assets/loading.gif'),
setupIcon: path.resolve(__dirname, 'icon.ico'),
setupExe: `${pkg.name}-${pkg.version}-win32-x64.exe`
}
},
2024-01-23 19:16:32 +01:00
{
name: '@electron-forge/maker-zip',
platforms: ['linux']
}
],
publishers: [
{
name: '@electron-forge/publisher-github',
config: {
repository: {
owner: 'AltarikMC',
name: 'Launcher'
},
2024-01-23 19:16:32 +01:00
preRelease: false,
draft: true,
tagPrefix: ''
}
}
]
}