glasspane-install 1.5.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.js +14 -1
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -69,7 +69,7 @@ export const INSTALL_SH_URL =
|
|
|
69
69
|
/** 发布线锚点(版本真源 = 根 package.json,由 scripts/set-version.mjs 统一改写,
|
|
70
70
|
* 勿手改):npx 形态下本地没有仓库时,引导 clone 的就是这个 tag,与 install.sh
|
|
71
71
|
* 的 `GLASSPANE_RELEASE` 同值——两条一键入口必须拿到同一份源码。 */
|
|
72
|
-
export const RELEASE_VERSION = '1.
|
|
72
|
+
export const RELEASE_VERSION = '1.6.1'
|
|
73
73
|
/** 发布 ref(tag 名)。GLASSPANE_REF 环境变量可覆盖(追主干用 `main`)。 */
|
|
74
74
|
export const REPO_REF = `v${RELEASE_VERSION}`
|
|
75
75
|
|
|
@@ -933,6 +933,9 @@ export async function registerAutoUpdate({
|
|
|
933
933
|
pointer: written.pointer,
|
|
934
934
|
pointerPath: written.path,
|
|
935
935
|
message: outcome.message,
|
|
936
|
+
// updater 有没有把在册作业读回来核对过。`false` 不是失败(作业确实装载了),但也确实没人证明
|
|
937
|
+
// launchd 手里的是这一份;安装日志要说的是这两者之中的那一个,而不是"已注册"三个字。
|
|
938
|
+
agentVerified: outcome.agentVerified ?? null,
|
|
936
939
|
// `undefined`(这份 updater 根本不回报)与 `null`(回报了但没有束)对读者是同一句话:
|
|
937
940
|
// 没有证据。合成一个形状,下游就不必为两种"没有"各写一条分支——而两种分支里,
|
|
938
941
|
// 漏掉一种就是崩溃。
|
|
@@ -940,6 +943,16 @@ export async function registerAutoUpdate({
|
|
|
940
943
|
}
|
|
941
944
|
if (registered) {
|
|
942
945
|
say(`每日自动更新已注册(${agentLabel},默认 ${schedule},状态根 ${stateRoot};指针 ${written.path})——一键关:node "${tree.cli}" disable`)
|
|
946
|
+
// "已注册"这三个字的证据是 updater 把在册作业读回来核对过。launchd 装载成功但读不回在册作业时,
|
|
947
|
+
// 这句话只能算一半成立,而那另一半(原话)必须跟着说出来——否则这台机器看起来有每日作业,实际
|
|
948
|
+
// 有没有人跑没人知道。措辞仍来自唯一作者 outcome.message,这里只转述。
|
|
949
|
+
//
|
|
950
|
+
// 只此一处:`summary.agentVerified` 就是 `outcome.agentVerified` 的副本,两处判断同一个值就会
|
|
951
|
+
// 打两行近乎相同的告警,而"两行"在这种机器上读起来像两件不同的事出了问题。
|
|
952
|
+
if (summary.agentVerified === false) {
|
|
953
|
+
say(paint(`注意(每日作业还没被核对过):${outcome.message}`, 'yellow'))
|
|
954
|
+
say(' 这一步只说明 launchd 接受了装载;这条命令之后有没有真的成为在册作业,上面的原话里说了为什么读不出来。')
|
|
955
|
+
}
|
|
943
956
|
// §9.8:node 不读 macOS 信任库,装了 HTTPS 中间人的机器上这件事只有 updater 自己能发现。
|
|
944
957
|
// 安装日志必须把它说出来——否则每天失败的是一个看起来在正常工作的代理。措辞与 remedy
|
|
945
958
|
// 都来自 outcome.message(唯一作者),这里只转述,不重写。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "glasspane-install",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "GlassPane one-command installer: terminal onboarding → install deps → build TS + Swift engine → start daemon → open settings GUI for permission guide",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|