From 27629a1839b9d24cbf1fd9502cdc41dec3959dfc Mon Sep 17 00:00:00 2001 From: OLmatter Date: Sat, 13 Jun 2026 11:23:40 +0800 Subject: [PATCH] fix: clean userscript prompt and package cmd launchers --- glm-coding-helper.user.js | 4 ++-- scripts/release/build_release_zips.ps1 | 10 ++++++++-- scripts/userscripts/glm-coding-helper.user.js | 4 ++-- 启动后端.cmd | 6 ++++++ 首次安装环境.cmd | 6 ++++++ 5 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 启动后端.cmd create mode 100644 首次安装环境.cmd diff --git a/glm-coding-helper.user.js b/glm-coding-helper.user.js index ac40ea7..f5c0536 100644 --- a/glm-coding-helper.user.js +++ b/glm-coding-helper.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name 智谱 GLM Coding Plan 抢购助手 + 本地 OCR 自动验证码 // @namespace http://tampermonkey.net/ -// @version 8.15 +// @version 8.16 // @description GLM Coding Rush / 智谱 GLM Coding Plan 抢购助手,一键抢购油猴脚本 / Tampermonkey userscript,配合本地 CPU/GPU OCR 自动识别中文点选验证码并点击,支持多窗口并发、限流重试和支付页安全保护 // @author mumumi // @include https://*bigmodel.cn/glm-coding* @@ -543,7 +543,7 @@ GM_openInTab(url, { active: false, insert: true, setParent: true }); }, i * 300); } - alert(`✅ 已打开 ${n} 个标签页!\n\n� 多窗口抢购流程:\n1. 每个窗口自动解验证码(不点确定)\n2. 等待到 10:00:00 + 错开时间\n3. 自动点击确认发送请求\n\n💡 窗口0最先点,之后每个错开2秒`); + alert(`✅ 已打开 ${n} 个标签页!\n\n多窗口抢购流程:\n1. 每个窗口自动解验证码(不点确定)\n2. 等待到 10:00:00 + 错开时间\n3. 自动点击确认发送请求\n\n💡 窗口0最先点,之后每个错开2秒`); } // ── 扫描队列(过滤今日已确认售罄)──────────────────────────────────────── const tabs = String(CFG.TABS_PRIORITY).split(',').map(Number).filter(Boolean); diff --git a/scripts/release/build_release_zips.ps1 b/scripts/release/build_release_zips.ps1 index 93e33ef..9ded79f 100644 --- a/scripts/release/build_release_zips.ps1 +++ b/scripts/release/build_release_zips.ps1 @@ -74,8 +74,6 @@ $CommonItems = @( "start-backend.cmd", "install-env.cmd", "one-click-start.cmd", - "启动后端.cmd", - "首次安装环境.cmd", "README.md", "CHANGELOG.md", "LICENSE", @@ -85,6 +83,14 @@ $CommonItems = @( "models" ) +$KnownRootCmdItems = @("start-backend.cmd", "install-env.cmd", "one-click-start.cmd") +$ExtraRootCmdItems = Get-ChildItem -LiteralPath $Root -Filter "*.cmd" -File | + Where-Object { $KnownRootCmdItems -notcontains $_.Name } | + ForEach-Object { $_.Name } +foreach ($item in $ExtraRootCmdItems) { + $CommonItems += $item +} + Write-Host "Building online installer package..." Copy-PackageItems -PackageDir $OnlineDir -Items $CommonItems Remove-Item -LiteralPath (Join-Path $OnlineDir "scripts\__pycache__") -Recurse -Force -ErrorAction SilentlyContinue diff --git a/scripts/userscripts/glm-coding-helper.user.js b/scripts/userscripts/glm-coding-helper.user.js index ac40ea7..f5c0536 100644 --- a/scripts/userscripts/glm-coding-helper.user.js +++ b/scripts/userscripts/glm-coding-helper.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name 智谱 GLM Coding Plan 抢购助手 + 本地 OCR 自动验证码 // @namespace http://tampermonkey.net/ -// @version 8.15 +// @version 8.16 // @description GLM Coding Rush / 智谱 GLM Coding Plan 抢购助手,一键抢购油猴脚本 / Tampermonkey userscript,配合本地 CPU/GPU OCR 自动识别中文点选验证码并点击,支持多窗口并发、限流重试和支付页安全保护 // @author mumumi // @include https://*bigmodel.cn/glm-coding* @@ -543,7 +543,7 @@ GM_openInTab(url, { active: false, insert: true, setParent: true }); }, i * 300); } - alert(`✅ 已打开 ${n} 个标签页!\n\n� 多窗口抢购流程:\n1. 每个窗口自动解验证码(不点确定)\n2. 等待到 10:00:00 + 错开时间\n3. 自动点击确认发送请求\n\n💡 窗口0最先点,之后每个错开2秒`); + alert(`✅ 已打开 ${n} 个标签页!\n\n多窗口抢购流程:\n1. 每个窗口自动解验证码(不点确定)\n2. 等待到 10:00:00 + 错开时间\n3. 自动点击确认发送请求\n\n💡 窗口0最先点,之后每个错开2秒`); } // ── 扫描队列(过滤今日已确认售罄)──────────────────────────────────────── const tabs = String(CFG.TABS_PRIORITY).split(',').map(Number).filter(Boolean); diff --git a/启动后端.cmd b/启动后端.cmd new file mode 100644 index 0000000..b166ede --- /dev/null +++ b/启动后端.cmd @@ -0,0 +1,6 @@ +@echo off +chcp 65001 >nul +cd /d "%~dp0" +echo Starting GLM Coding Helper backend... +powershell -NoProfile -ExecutionPolicy Bypass -File "scripts\one_click_start.ps1" -Target cpu -Port 8888 +pause diff --git a/首次安装环境.cmd b/首次安装环境.cmd new file mode 100644 index 0000000..1e0c3b9 --- /dev/null +++ b/首次安装环境.cmd @@ -0,0 +1,6 @@ +@echo off +chcp 65001 >nul +cd /d "%~dp0" +echo Installing GLM Coding Helper backend environment... +powershell -NoProfile -ExecutionPolicy Bypass -File "scripts\setup_backend.ps1" -Target cpu +pause