You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailchat/desktop/forge.config.js

46 lines
1.1 KiB
JavaScript

const {
utils: { fromBuildIdentifier },
} = require('@electron-forge/core');
const path = require('path');
// Reference: https://www.electronforge.io/configuration
module.exports = {
// packagerConfig: { ... },
// electronRebuildConfig: { ... },
// makers: [ ... ],
// publishers: [ ... ],
// plugins: [ ... ],
// hooks: { ... },
buildIdentifier: process.env.IS_BETA ? 'beta' : 'prod',
// https://electron.github.io/electron-packager/main/interfaces/electronpackager.options.html
packagerConfig: {
appBundleId: fromBuildIdentifier({
beta: 'com.tailchat.desktop',
prod: 'com.tailchat.beta.desktop',
}),
icon: path.resolve(__dirname, './build/icon'),
asar: true,
},
makers: [
{
name: '@electron-forge/maker-squirrel',
config: {
name: 'desktop',
},
},
{
name: '@electron-forge/maker-zip',
platforms: ['darwin', 'win32'],
},
{
name: '@electron-forge/maker-deb',
config: {},
},
{
name: '@electron-forge/maker-rpm',
config: {},
},
],
};