mirror of
https://git.quad4.io/RNS-Things/MeshChatX.git
synced 2026-04-25 19:42:13 +00:00
refactor(forge.config): format and cleanup
This commit is contained in:
@@ -6,16 +6,11 @@ function hasExecutable(name) {
|
||||
return which.sync(name, { nothrow: true }) !== null;
|
||||
}
|
||||
|
||||
const forgeSnapExplicit =
|
||||
process.env.FORGE_MAKE_SNAP === "1" || process.env.FORGE_MAKE_SNAP === "true";
|
||||
const forgeFlatpakExplicit =
|
||||
process.env.FORGE_MAKE_FLATPAK === "1" ||
|
||||
process.env.FORGE_MAKE_FLATPAK === "true";
|
||||
const forgeSnapExplicit = process.env.FORGE_MAKE_SNAP === "1" || process.env.FORGE_MAKE_SNAP === "true";
|
||||
const forgeFlatpakExplicit = process.env.FORGE_MAKE_FLATPAK === "1" || process.env.FORGE_MAKE_FLATPAK === "true";
|
||||
|
||||
const forgeSnapEnabled = hasExecutable("snapcraft") || forgeSnapExplicit;
|
||||
const forgeFlatpakEnabled =
|
||||
(hasExecutable("flatpak-builder") && hasExecutable("eu-strip")) ||
|
||||
forgeFlatpakExplicit;
|
||||
const forgeFlatpakEnabled = (hasExecutable("flatpak-builder") && hasExecutable("eu-strip")) || forgeFlatpakExplicit;
|
||||
|
||||
const platform = process.env.PLATFORM || process.platform;
|
||||
const arch = process.env.ARCH || process.arch;
|
||||
@@ -41,8 +36,8 @@ module.exports = {
|
||||
name: "Reticulum MeshChatX",
|
||||
appBundleId: "com.sudoivan.reticulummeshchatx",
|
||||
icon: "electron/build/icon",
|
||||
// osxSign: {}, // Uncomment and configure for macOS signing
|
||||
// osxNotarize: { ... }, // Uncomment and configure for macOS notarization
|
||||
// osxSign: {}, macOS signing
|
||||
// osxNotarize: { ... }, macOS notarization
|
||||
},
|
||||
rebuildConfig: {},
|
||||
makers: [
|
||||
@@ -74,8 +69,7 @@ module.exports = {
|
||||
enabled: forgeSnapEnabled,
|
||||
config: {
|
||||
summary: "Mesh networking chat client",
|
||||
description:
|
||||
"A simple mesh network communications app powered by the Reticulum Network Stack",
|
||||
description: "A simple mesh network communications app powered by the Reticulum Network Stack",
|
||||
confinement: "strict",
|
||||
grade: "devel",
|
||||
features: {
|
||||
|
||||
Reference in New Issue
Block a user