98 lines
2.5 KiB
JavaScript
98 lines
2.5 KiB
JavaScript
/*
|
|
Copyright 2024 API Testing Authors.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
const { FusesPlugin } = require('@electron-forge/plugin-fuses');
|
|
const { FuseV1Options, FuseVersion } = require('@electron/fuses');
|
|
const path = require('node:path');
|
|
|
|
module.exports = {
|
|
packagerConfig: {
|
|
icon: path.join(__dirname, 'api-testing.ico'),
|
|
asar: true
|
|
},
|
|
rebuildConfig: {},
|
|
makers: [
|
|
{
|
|
name: '@electron-forge/maker-squirrel',
|
|
config: {
|
|
icon: 'api-testing.ico'
|
|
},
|
|
},
|
|
{
|
|
name: '@electron-forge/maker-deb',
|
|
config: {
|
|
options: {
|
|
icon: 'api-testing.ico'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
name: '@electron-forge/maker-rpm',
|
|
config: {
|
|
icon: 'api-testing.ico'
|
|
},
|
|
},
|
|
{
|
|
name: '@electron-forge/maker-dmg',
|
|
config: {
|
|
icon: path.join(__dirname, 'api-testing.icns')
|
|
}
|
|
},
|
|
{
|
|
name: '@electron-forge/maker-wix',
|
|
config: {
|
|
language: 1033,
|
|
manufacturer: 'API Testing Authors',
|
|
icon: 'api-testing.ico',
|
|
ui: {
|
|
"enabled": true,
|
|
"chooseDirectory": true
|
|
}
|
|
}
|
|
}
|
|
],
|
|
plugins: [
|
|
{
|
|
name: '@electron-forge/plugin-auto-unpack-natives',
|
|
config: {},
|
|
},
|
|
// Fuses are used to enable/disable various Electron functionality
|
|
// at package time, before code signing the application
|
|
new FusesPlugin({
|
|
version: FuseVersion.V1,
|
|
[FuseV1Options.RunAsNode]: false,
|
|
[FuseV1Options.EnableCookieEncryption]: true,
|
|
[FuseV1Options.EnableNodeOptionsEnvironmentVariable]: false,
|
|
[FuseV1Options.EnableNodeCliInspectArguments]: false,
|
|
[FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: true,
|
|
[FuseV1Options.OnlyLoadAppFromAsar]: true,
|
|
}),
|
|
],
|
|
publishers: [
|
|
{
|
|
name: '@electron-forge/publisher-github',
|
|
config: {
|
|
repository: {
|
|
owner: 'linuxsuren',
|
|
name: 'api-testing'
|
|
},
|
|
prerelease: true,
|
|
force: true
|
|
}
|
|
}
|
|
]
|
|
};
|