125 lines
4.4 KiB
YAML
125 lines
4.4 KiB
YAML
# electron-builder configuration for 3D Gen Studio desktop builds.
|
|
# Produces installers for Windows, macOS and Linux.
|
|
#
|
|
# Prereq: run `npm run build` (vite build → dist/) BEFORE packaging — the
|
|
# backend serves dist/ and the packaged app loads it. `npm run dist` does both.
|
|
#
|
|
# Native modules (sqlite3): electron-builder rebuilds them against Electron's
|
|
# ABI automatically (npmRebuild). CI runners have the required build tools; on a
|
|
# local machine you need platform build tools (VS Build Tools on Windows,
|
|
# Xcode CLT on macOS, build-essential/python3 on Linux).
|
|
|
|
appId: com.3dgenstudio.app
|
|
productName: 3D Gen Studio
|
|
copyright: Copyright © 2026 3D Gen Studio
|
|
|
|
# Consistent, predictable output filenames across every platform and target.
|
|
# ${os} = mac | linux | windows, ${arch} = x64 | arm64, ${ext} = the target's
|
|
# file extension. This overrides electron-builder's per-target defaults (which
|
|
# were producing version-less .exe names and an "app_…_amd64.deb"). Windows'
|
|
# two .exe targets get their own names below so they don't collide.
|
|
artifactName: 3DGenStudio-${version}-${os}-${arch}.${ext}
|
|
|
|
directories:
|
|
output: release
|
|
buildResources: build
|
|
|
|
# asar:false keeps files on disk unpacked so the Express backend can require
|
|
# its modules and serve dist/ with plain fs paths (no asar path shims).
|
|
asar: false
|
|
|
|
# Explicit include list — the repo has large dirs (.kilo, data/, docs/,
|
|
# designs/, python-server/.venv) we must NOT ship. node_modules production
|
|
# deps are always included by electron-builder automatically.
|
|
files:
|
|
- server.js
|
|
- storage.js
|
|
- wikiStorage.js
|
|
# MCP automation server (POST /mcp on the backend + stdio bridge).
|
|
- mcp/**/*
|
|
- version.json
|
|
- package.json
|
|
- dist/**/*
|
|
- electron/**/*
|
|
# App icon shown on the splash/setup windows (electron/splash.html loads it
|
|
# from disk, so it must ship even though dist/ has its own copy).
|
|
- public/favicon.png
|
|
- comfyui_workflows/**/*
|
|
- setup/**/*
|
|
- tools/**/*
|
|
- wiki/**/*
|
|
# Bundled reference animation library (mesh2motion, MIT) served at /resources:
|
|
# skinned animation GLBs, mp4 clip previews, and the clean skeleton-only rig
|
|
# GLBs used by the Auto Rig → Animations bone-mapping 3D views.
|
|
- resources/animations/**/*
|
|
- resources/animpreviews/**/*
|
|
- resources/rigs/**/*
|
|
- python-server/**/*
|
|
- "!python-server/.venv/**"
|
|
- "!python-server/**/__pycache__/**"
|
|
- "!python-server/*.log"
|
|
# Rigging service (opt-in). Ship the source; the venv + multi-GB model
|
|
# checkpoints are provisioned into the per-user data dir on opt-in, never shipped.
|
|
- thirdparty/skintokens/**/*
|
|
- "!thirdparty/skintokens/.venv/**"
|
|
- "!thirdparty/skintokens/**/__pycache__/**"
|
|
- "!thirdparty/skintokens/experiments/**"
|
|
- "!thirdparty/skintokens/models/**"
|
|
- "!thirdparty/skintokens/tmp_ckpt/**"
|
|
- "!thirdparty/skintokens/tmp_gradio/**"
|
|
- "!thirdparty/skintokens/*.log"
|
|
- "!**/*.map"
|
|
|
|
win:
|
|
icon: public/3dgenstudio.ico
|
|
target:
|
|
- target: nsis
|
|
arch: [x64]
|
|
- target: portable
|
|
arch: [x64]
|
|
|
|
nsis:
|
|
# Distinct from the portable .exe so the two Windows outputs don't collide.
|
|
artifactName: 3DGenStudio-Setup-${version}-${arch}.${ext}
|
|
oneClick: false
|
|
perMachine: false
|
|
allowToChangeInstallationDirectory: true
|
|
createDesktopShortcut: true
|
|
createStartMenuShortcut: true
|
|
|
|
portable:
|
|
artifactName: 3DGenStudio-Portable-${version}-${arch}.${ext}
|
|
|
|
mac:
|
|
# TODO: add build/icon.icns for a branded icon (falls back to default now).
|
|
category: public.app-category.graphics-design
|
|
target:
|
|
- target: dmg
|
|
arch: [x64, arm64]
|
|
- target: zip
|
|
arch: [x64, arm64]
|
|
# Signing/notarization: set CSC_LINK + CSC_KEY_PASSWORD (Developer ID cert)
|
|
# and APPLE_ID / APPLE_APP_SPECIFIC_PASSWORD / APPLE_TEAM_ID env vars in CI.
|
|
# Without them the .dmg is unsigned and macOS shows a Gatekeeper warning.
|
|
hardenedRuntime: true
|
|
gatekeeperAssess: false
|
|
|
|
linux:
|
|
# A .deb package REQUIRES a maintainer (name + email) — without it the fpm
|
|
# target fails. Change this to your preferred contact.
|
|
maintainer: Bruno Fargnoli <info@3dgenstudio.com>
|
|
synopsis: AI-powered 3D mesh production studio
|
|
# TODO: add build/icon.png (512x512) for a branded icon.
|
|
category: Graphics
|
|
target:
|
|
- target: AppImage
|
|
arch: [x64]
|
|
- target: deb
|
|
arch: [x64]
|
|
|
|
# Optional auto-update feed. Point at your GitHub releases to enable
|
|
# electron-updater later (pairs with your existing version.json flow).
|
|
# publish:
|
|
# provider: github
|
|
# owner: visualbruno
|
|
# repo: 3DGenStudio
|