Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(forge-desktop): move publisherName and the Linux desktop entry to where electron-builder 26 reads them so Forge packages again

nirholasba57f364a5f6
diff --git a/apps/forge-desktop/electron-builder.config.cjs b/apps/forge-desktop/electron-builder.config.cjs
index bb1bf2db1..d65472565 100644
--- a/apps/forge-desktop/electron-builder.config.cjs
+++ b/apps/forge-desktop/electron-builder.config.cjs
@@ -69,7 +69,7 @@ module.exports = {
win: {
icon: 'resources/icons/icon.png',
target: [{ target: 'nsis', arch: ['x64'] }],
- publisherName: 'three.ws',
+ signtoolOptions: { publisherName: 'three.ws' },
extraResources: pythonEmbed,
},
nsis: {
@@ -95,7 +95,7 @@ module.exports = {
vendor: 'three.ws',
synopsis: 'Image-to-3D generation and mesh workflows on your machine or the three.ws cloud',
description: 'Turn images and prompts into 3D models with local open-source generators or the three.ws Forge cloud, chain mesh processing in a node workflow editor, and publish the result to your three.ws account.',
- desktop: { StartupWMClass: 'three.ws Forge' },
+ desktop: { entry: { StartupWMClass: 'three.ws Forge' } },
},
deb: {
packageName: 'three-ws-forge',
diff --git a/tests/forge-desktop-builder-config.test.js b/tests/forge-desktop-builder-config.test.js
new file mode 100644
index 000000000..60ff1ef12
--- /dev/null
+++ b/tests/forge-desktop-builder-config.test.js
@@ -0,0 +1,20 @@
+import { createRequire } from 'node:module';
+import { describe, expect, it } from 'vitest';
+
+const require = createRequire(import.meta.url);
+const config = require('../apps/forge-desktop/electron-builder.config.cjs');
+
+// electron-builder 26 rejects the whole config ("does not match the API schema")
+// when these two settings sit where 25 accepted them, which fails every Forge
+// build on Cloud Build and on a Mac before it packages anything.
+describe('Forge electron-builder config (electron-builder 26 schema)', () => {
+ it('sets the Windows publisher under signtoolOptions, not on win', () => {
+ expect(config.win.publisherName).toBeUndefined();
+ expect(config.win.signtoolOptions.publisherName).toBe('three.ws');
+ });
+
+ it('declares the Linux desktop entry fields under desktop.entry', () => {
+ expect(config.linux.desktop.StartupWMClass).toBeUndefined();
+ expect(config.linux.desktop.entry.StartupWMClass).toBe('three.ws Forge');
+ });
+});