2026-09-14 17:58:14 +00:00
|
|
|
import {readFileSync} from "node:fs"
|
|
|
|
|
|
|
|
|
|
const {name, version, author} = JSON.parse(
|
|
|
|
|
readFileSync(new URL("../package.json", import.meta.url), "utf8"),
|
|
|
|
|
)
|
|
|
|
|
const {appId, appName} = JSON.parse(
|
|
|
|
|
readFileSync(new URL("generated/capacitor.config.json", import.meta.url), "utf8"),
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
/** @type {import('electron-builder').Configuration} */
|
|
|
|
|
export default {
|
|
|
|
|
appId,
|
|
|
|
|
productName: appName,
|
|
|
|
|
executableName: name,
|
|
|
|
|
buildVersion: version,
|
|
|
|
|
extraMetadata: {
|
|
|
|
|
name,
|
|
|
|
|
version,
|
|
|
|
|
author,
|
|
|
|
|
productName: appName,
|
|
|
|
|
description: appName,
|
|
|
|
|
desktopName: `${appId}.desktop`,
|
|
|
|
|
},
|
|
|
|
|
artifactName: "${productName}-${version}-${os}-${arch}.${ext}",
|
|
|
|
|
directories: {output: "dist", buildResources: "generated"},
|
|
|
|
|
icon: "generated/icon.png",
|
|
|
|
|
files: [
|
|
|
|
|
"build/main.js",
|
|
|
|
|
"app/**/*",
|
|
|
|
|
"generated/**/*",
|
|
|
|
|
"package.json",
|
|
|
|
|
{from: "vendor/node_modules", to: "node_modules"},
|
|
|
|
|
],
|
|
|
|
|
allowMissingDependencies: false,
|
2026-09-22 19:26:35 +00:00
|
|
|
publish: {
|
|
|
|
|
provider: "generic",
|
|
|
|
|
url: "https://gitea.coracle.social/coracle/flotilla/releases/download/latest/",
|
|
|
|
|
},
|
2026-09-14 17:58:14 +00:00
|
|
|
toolsets: {appimage: "1.0.3"},
|
|
|
|
|
linux: {
|
|
|
|
|
target: [{target: "AppImage", arch: ["x64"]}],
|
|
|
|
|
category: "Network",
|
|
|
|
|
syncDesktopName: true,
|
|
|
|
|
},
|
|
|
|
|
win: {target: [{target: "nsis", arch: ["x64"]}], signExecutable: false},
|
|
|
|
|
mac: {
|
2026-09-22 19:26:35 +00:00
|
|
|
target: [
|
|
|
|
|
{target: "dmg", arch: ["x64", "arm64"]},
|
|
|
|
|
{target: "zip", arch: ["x64", "arm64"]},
|
|
|
|
|
],
|
2026-09-14 17:58:14 +00:00
|
|
|
category: "public.app-category.social-networking",
|
|
|
|
|
notarize: false,
|
|
|
|
|
},
|
|
|
|
|
dmg: {sign: false},
|
|
|
|
|
}
|