Repository navigation
Expand file tree
/
Copy pathelectron-builder.yml
More file actions
86 lines (76 loc) · 3.15 KB
/
Copy pathelectron-builder.yml
File metadata and controls
86 lines (76 loc) · 3.15 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
# Electron Builder 配置 —— CI(build-desktop.yml)与本地(scripts/build-desktop.js)
# 共用的唯一配置来源,内容与 0.8.4 及之前 CI 运行时注入 package.json 的
# effective config 对齐(除下述三处有意变更:files 不再包含 node_modules、
# 去掉重复打包 dist 的 extraResources、publish 固定为 null)。
#
# 注意:electron-builder 会按根 package.json 的 `dependencies` 自动收集生产
# 依赖树打进安装包。dependencies 必须只保留 Electron 主进程运行时真正
# require 的包(当前仅 undici,用于代理 ProxyAgent);前端依赖全部放在
# devDependencies,由 vite 在构建期打包进 dist/。
appId: com.github-stars-manager.app
productName: GitHub Stars Manager
copyright: Copyright © 2024 GitHub Stars Manager
directories:
output: release
buildResources: build
files:
- dist/**/*
- build/**/*
- electron/**/*
- package.json
- '!**/*.map'
extraMetadata:
main: electron/main.js
compression: normal
# asar 开启后源码以归档分发。已核实 electron/main.js 对 __dirname 的引用全部为
# 只读读取:preload.js、dist/index.html、electron/assets/*.png 均在归档内,Electron
# 的 fs shim / loadFile / nativeImage 可直接读取 asar 路径;../build/* 为遗留回退
# 路径(files 配置包含 build/**/*,匹配文件会进入归档,asar 前后行为一致)。所有
# 写入都落在 userData(proxy-config、数据库、日志、插件目录),不依赖 asar 外
# 的可写路径。
asar: true
# 发布统一由 release job(softprops/action-gh-release)完成;构建命令同时带
# --publish=never,双重保证 electron-builder 不会尝试自行发布。
publish: null
# 目标矩阵与 0.8.4 起实际发布的产物一致(Setup.exe / dmg x64+arm64 / AppImage)。
# 旧版 yml 中的 win.ia32 与 linux.deb/rpm 从未生效:CI 一直用运行时注入的
# package.json build 字段(已由 `loaded configuration file=package.json` 日志证实),
# 本地构建则会因缺包失败——Electron 44 不再发布 win32-ia32 发行包;deb/rpm 即便
# 构建成功也不会被发布(release job 只收集 exe/msi/dmg/AppImage)。如需新增产物
# 类型,请连同 build-desktop.yml 的 Upload artifacts / Prepare release 步骤一起改。
# Windows 配置
win:
target:
- target: nsis
arch:
- x64
icon: build/icon.png
requestedExecutionLevel: asInvoker
nsis:
oneClick: false
allowToChangeInstallationDirectory: true
createDesktopShortcut: true
createStartMenuShortcut: true
shortcutName: GitHub Stars Manager
# macOS 配置
mac:
target:
- target: dmg
arch:
- x64
- arm64
icon: build/icon.png
category: public.app-category.productivity
gatekeeperAssess: false
dmg:
title: GitHub Stars Manager
icon: build/icon.png
# Linux 配置
linux:
target: AppImage
icon: build/icon-512x512.png
category: Office
synopsis: AI-powered GitHub starred repositories management tool
description: >
GitHub Stars Manager is an intelligent tool for organizing and managing
your GitHub starred repositories with AI-powered analysis and release tracking.