Repository navigation
Expand file tree
/
Copy pathelectron-builder.yml
More file actions
89 lines (80 loc) · 2.67 KB
/
Copy pathelectron-builder.yml
File metadata and controls
89 lines (80 loc) · 2.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
appId: dev.eca.desktop
productName: ECA
artifactName: eca-${os}-${arch}.${ext}
directories:
output: release
buildResources: build
files:
- dist/**/*
- eca-webview/dist/**/*
- resources/**/*
- src/renderer/**/*
mac:
category: public.app-category.developer-tools
icon: resources/icon.png
target:
- target: dmg
arch: [x64, arm64]
- target: zip
arch: [x64, arm64]
hardenedRuntime: true
gatekeeperAssess: false
entitlements: build/entitlements.mac.plist
entitlementsInherit: build/entitlements.mac.plist
linux:
# Multi-size set (16-512px) generated from resources/icon.png; the
# flatpak target silently drops icons >512px, and a proper hicolor
# set is better for AppImage/deb desktop integration too.
icon: build/icons
target:
- target: AppImage
arch: [x64, arm64]
- target: deb
arch: [x64, arm64]
category: Development
maintainer: Editor Code Assistant
deb:
fpm:
- "--after-install=build/linux-after-install.sh"
# Built explicitly with `npm run package:flatpak` (or in CI with
# `electron-builder --linux flatpak --x64`) so the default AppImage/deb
# matrix above stays untouched. Requires `flatpak` + `flatpak-builder`
# plus the runtimes/BaseApp installed (see README "Package" section).
# The chromium sandbox is provided by zypak from the Electron BaseApp —
# no SUID chrome-sandbox needed (linux-after-install.sh is deb-only).
flatpak:
runtimeVersion: '24.08'
baseVersion: '24.08'
finishArgs:
# Windowing: native Wayland when available (Electron/Chromium
# auto-detects via WAYLAND_DISPLAY), X11/XWayland otherwise.
- --share=ipc
- --socket=wayland
- --socket=x11
- --device=dri
# ECA server download/auto-update, LLM providers, MCP servers.
- --share=network
# Project files + the managed server binary in ~/.eca-desktop and
# the shared eca config in ~/.config/eca.
- --filesystem=home
# Lets the app spawn the ECA server on the HOST (flatpak-spawn
# --host) so the agent can use the real toolchain: git, shells,
# user-configured MCP servers. Without it the app still works but
# the server runs sandboxed, seeing only the freedesktop runtime.
- --talk-name=org.freedesktop.Flatpak
files:
- ["build/dev.eca.desktop.metainfo.xml", "/share/metainfo/dev.eca.desktop.metainfo.xml"]
win:
icon: resources/icon.png
target:
# x64 only: upstream ECA server publishes no windows-aarch64 binary.
# NSIS (not zip/portable) is required for electron-updater auto-updates.
- target: nsis
arch: [x64]
nsis:
oneClick: false
allowToChangeInstallationDirectory: true
publish:
provider: github
owner: editor-code-assistant
repo: eca-desktop