-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelectron-builder.yml
More file actions
72 lines (62 loc) · 2.23 KB
/
Copy pathelectron-builder.yml
File metadata and controls
72 lines (62 loc) · 2.23 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
appId: dev.codexquota.desktop
productName: Codex Quota
copyright: Copyright © 2026 Codex Quota
# Windows Settings lists tray apps by FileDescription, which comes from
# package.json description. Keep the repo description long; ship the product name.
extraMetadata:
description: Codex Quota
directories:
buildResources: build
output: release
afterPack: build/after-pack.cjs
# Package the Electron that is already installed here. Downloading another copy
# would go through a code path that electron-builder 26 cannot run against the
# @electron/get its own range resolves to.
electronDist: node_modules/electron/dist
# The renderer is bundled by Vite; only `undici` is left external, and
# electron-builder packs it from the production dependencies.
files:
- out/**
- package.json
# The menu bar icon is read at runtime, so it has to exist outside the asar.
# Flattened into Resources/ because that is where the tray looks; nativeImage
# finds the @2x file on its own once its sibling is there.
extraResources:
- from: build/trayTemplate.png
to: trayTemplate.png
- from: build/trayTemplate@2x.png
to: trayTemplate@2x.png
mac:
category: public.app-category.developer-tools
# The product name has a space in it, which download URLs would carry as %20.
artifactName: CodexQuota-${version}-arm64.${ext}
target:
- target: dmg
arch: arm64
- target: zip
arch: arm64
icon: build/icon.png
darkModeSupport: true
# No Developer ID here. The bundle is ad-hoc signed by the afterPack hook,
# which is the minimum LaunchServices needs to start an arm64 app. Setting
# this to "-" instead is not equivalent: electron-builder 25 looks that name
# up in the keychain, finds nothing, and skips signing entirely.
identity: null
# The app reads and writes ~/.codex and ~/.codex-quota and spawns `codex`,
# none of which survives the hardened runtime without an entitlements file
# and a real signature.
hardenedRuntime: false
dmg:
title: ${productName} ${version}
win:
artifactName: CodexQuota-${version}-win-${arch}.${ext}
icon: build/icon.png
target:
- target: nsis
arch:
- x64
nsis:
oneClick: false
perMachine: false
allowToChangeInstallationDirectory: true
shortcutName: Codex Quota