waveterm/electron-builder.config.js

72 lines
1.8 KiB
JavaScript
Raw Permalink Normal View History

2024-03-02 01:21:18 +01:00
const pkg = require("./package.json");
/**
* @type {import('electron-builder').Configuration}
* @see https://www.electron.build/configuration/configuration
*/
const config = {
artifactName: "${productName}-${version}-${arch}.${ext}",
npmRebuild: false,
nodeGypRebuild: false,
electronCompile: false,
2024-03-02 03:08:02 +01:00
publish: null,
2024-03-02 01:21:18 +01:00
files: [
{
from: "./dist",
to: "./dist",
filter: ["**/*"],
},
{
from: "./public",
to: "./public",
filter: ["**/*"],
},
{
from: "./bin",
to: "./bin",
filter: ["**/*"],
},
{
from: ".",
to: ".",
filter: ["package.json"],
},
2024-03-02 02:58:59 +01:00
"!**/node_modules/**${/*}", // Ignore node_modules by default
{
from: "./node_modules",
to: "./node_modules",
filter: ["monaco-editor/min/**/*"], // This is the only module we want to include
},
2024-03-02 01:21:18 +01:00
],
directories: {
2024-03-02 03:08:02 +01:00
output: "make",
2024-03-02 01:21:18 +01:00
},
appId: pkg.build.appId,
productName: pkg.productName,
mac: {
target: {
target: "zip",
arch: "universal",
},
icon: "public/waveterm.icns",
category: "public.app-category.developer-tools",
minimumSystemVersion: "10.15.0",
asarUnpack: ["bin/**/*"],
},
linux: {
executableName: pkg.productName,
category: "TerminalEmulator",
icon: "public/waveterm.icns",
2024-03-02 02:58:59 +01:00
target: ["zip", "deb"],
asar: false,
2024-03-02 01:21:18 +01:00
desktop: {
Name: pkg.productName,
Comment: pkg.description,
Keywords: "developer;terminal;emulator;",
category: "Development;Utility;",
},
},
};
module.exports = config;