@co0ontty/wand 1.59.0-beta.gf9941ef → 1.60.0
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/dist/build-info.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"commit": "
|
|
3
|
-
"builtAt": "2026-06-
|
|
4
|
-
"version": "1.
|
|
5
|
-
"channel": "
|
|
2
|
+
"commit": "50569baa20702980747742a04fa6ea05fcab4d33",
|
|
3
|
+
"builtAt": "2026-06-13T04:26:28.738Z",
|
|
4
|
+
"version": "1.60.0",
|
|
5
|
+
"channel": "stable"
|
|
6
6
|
}
|
package/dist/server.js
CHANGED
|
@@ -89,8 +89,8 @@ const DISPLAY_VERSION = BUILD_INFO.version || PKG_VERSION;
|
|
|
89
89
|
let cachedGitHubApk = null;
|
|
90
90
|
let gitHubApkCacheTs = 0;
|
|
91
91
|
const GITHUB_APK_CACHE_TTL = 10 * 60 * 1000; // 10 minutes
|
|
92
|
-
//
|
|
93
|
-
//
|
|
92
|
+
// 按时间倒序遍历最近的 releases,取第一个带对应产物的。正常 tag release
|
|
93
|
+
// 会为每个平台出包;这里保留回退以兼容旧 release 或某次平台构建失败。
|
|
94
94
|
async function fetchGitHubReleaseAssetByExt(ext) {
|
|
95
95
|
const apiUrl = PKG_REPO_URL.replace("github.com", "api.github.com/repos") + "/releases?per_page=30";
|
|
96
96
|
const resp = await fetch(apiUrl, {
|
|
@@ -118,8 +118,8 @@ async function fetchGitHubLatestApk(forceRefresh = false) {
|
|
|
118
118
|
const hit = await fetchGitHubReleaseAssetByExt(".apk");
|
|
119
119
|
if (!hit)
|
|
120
120
|
return cachedGitHubApk ?? null;
|
|
121
|
-
//
|
|
122
|
-
//
|
|
121
|
+
// 版本号优先从文件名提取;回退到旧 release asset 时不能把当前 release tag
|
|
122
|
+
// 误当成产物版本。
|
|
123
123
|
const version = extractAndroidApkVersion(hit.asset.name)
|
|
124
124
|
?? extractAndroidApkVersion(hit.tagName)
|
|
125
125
|
?? hit.tagName.replace(/^v/, "");
|
|
@@ -193,7 +193,7 @@ async function fetchGitHubLatestDmg(forceRefresh = false) {
|
|
|
193
193
|
const hit = await fetchGitHubReleaseAssetByExt(".dmg");
|
|
194
194
|
if (!hit)
|
|
195
195
|
return cachedGitHubDmg ?? null;
|
|
196
|
-
// 同 APK
|
|
196
|
+
// 同 APK:版本号优先从文件名提取,避免回退到旧 asset 时把 release tag 当成新版本。
|
|
197
197
|
const version = extractMacosDmgVersion(hit.asset.name)
|
|
198
198
|
?? extractMacosDmgVersion(hit.tagName)
|
|
199
199
|
?? hit.tagName.replace(/^v/, "");
|