From 7e7081969739eb7b5a31094330845079edf6a3ec Mon Sep 17 00:00:00 2001 From: msojocs Date: Sun, 4 Sep 2022 10:49:20 +0800 Subject: [PATCH] update: devtools to v1.06.2208010 --- changelog.md | 4 ++++ conf/devtools_v | 2 +- readme.md | 4 ++-- res/aur/PKGBUILD | 4 ++-- snap/snapcraft.yaml | 4 ++-- tools/update-wechat-devtools-node | 37 ++++--------------------------- 6 files changed, 15 insertions(+), 40 deletions(-) diff --git a/changelog.md b/changelog.md index c7217dc..a90e9fa 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +# 1.06.2208010-1 / 2022-09-04 + +- update: devtools to v1.06.2208010 + # 1.06.2207210-1 / 2022-09-03 - update: devtools to v1.06.2207210 diff --git a/conf/devtools_v b/conf/devtools_v index b6e21f1..cbfa884 100644 --- a/conf/devtools_v +++ b/conf/devtools_v @@ -1 +1 @@ -1.06.2207210,7599cfeeebb57bda7ae5594daf2e0659 \ No newline at end of file +1.06.2208010,4312c9cd7b7be4a95f7b71d3311b19e4 \ No newline at end of file diff --git a/readme.md b/readme.md index e30c0ec..f50a86b 100644 --- a/readme.md +++ b/readme.md @@ -10,7 +10,7 @@ ---- [![Node.js CI](https://github.com/msojocs/wechat-devtools-linux/actions/workflows/release.yml/badge.svg)](https://github.com/msojocs/wechat-devtools-linux/actions/workflows/release.yml) -[![wechat-tools](https://img.shields.io/badge/wechat--devtools-1.06.2207210-yellow)](https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html) +[![wechat-tools](https://img.shields.io/badge/wechat--devtools-1.06.2208010-yellow)](https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html) [![nwjs](https://img.shields.io/badge/nwjs-0.55.0-green)](https://nwjs.io/downloads/) [![node](https://img.shields.io/badge/node-16.4.2-orange)](https://nodejs.org/en/) [![aur](https://img.shields.io/aur/version/wechat-devtools)](https://aur.archlinux.org/packages/wechat-devtools) @@ -35,7 +35,7 @@ # 进度 -当前工具可以在Linux上构筑最新版 `1.06.2207210`,支持CLI模式。 +当前工具可以在Linux上构筑最新版 `1.06.2208010`,支持CLI模式。 另现在已经可以直接在设置界面里面修改字体,手工输入字体名称就可以。 # 功能测试记录 diff --git a/res/aur/PKGBUILD b/res/aur/PKGBUILD index 4df506e..e4df924 100644 --- a/res/aur/PKGBUILD +++ b/res/aur/PKGBUILD @@ -7,7 +7,7 @@ # https://github.com/dragonation/wechat-devtools # https://github.com/cytle/wechat_web_devtools -_wechat_devtools_ver="1.05.2203070" +_wechat_devtools_ver="1.06.2208010" # https://servicewechat.com/wxa-dev-logic/download_redirect?type=x64&from=mpwiki&download_version=1052203030&version_type=1 _wechat_devtools_url="https://servicewechat.com/wxa-dev-logic/download_redirect?type=x64&from=mpwiki&download_version=${_wechat_devtools_ver//\./}&version_type=1" # _wechat_devtools_url="https://dldir1.qq.com/WechatWebDev/release/p-ae42ee2cde4d42ee80ac60b35f183a99/wechat_devtools_1.05.2201240_x64.exe" @@ -20,7 +20,7 @@ _node_version="16.4.2" pkgname=wechat-devtools pkgver="${_wechat_devtools_ver}" # 主版本号 -pkgrel=8 # 修订版本号release +pkgrel=1 # 修订版本号release epoch=2 # 大版本迭代强制更新(维护者变更,尽量不用) pkgdesc="WeChat Devtools For Linux. " arch=("x86_64") diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index e3b6af4..edb79f8 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,6 +1,6 @@ name: wechat-devtools # you probably want to 'snapcraft register ' base: core18 # the base snap is the execution environment for this snap -version: '1.06.2207210-1' # just for humans, typically '1.2+git' or '1.3.2' +version: '1.06.2208010-1' # just for humans, typically '1.2+git' or '1.3.2' summary: WeChat Devtools for Linux # 79 char long summary description: | WeChat Devtools for Linux. @@ -32,7 +32,7 @@ parts: ls -l $SNAPCRAFT_PART_INSTALL package-nw: plugin: dump - source: https://servicewechat.com/wxa-dev-logic/download_redirect?type=x64&from=mpwiki&download_version=1062207210&version_type=1 + source: https://servicewechat.com/wxa-dev-logic/download_redirect?type=x64&from=mpwiki&download_version=1062208010&version_type=1 # source: cache/wechat_devtools_1.05.2204180_x64.exe source-type: 7z source-subdir: code diff --git a/tools/update-wechat-devtools-node b/tools/update-wechat-devtools-node index 2328760..e9f40fd 100755 --- a/tools/update-wechat-devtools-node +++ b/tools/update-wechat-devtools-node @@ -62,42 +62,13 @@ const fetching = function () { result += data; }); res.on("end", () => { - let links = {}; - result - .toString("utf8") - .split('
")[0]; - }) - .filter((link) => link[0] != "#") - .forEach((link) => { - let content = link - .split(">") - .slice(1) - .join(">") - .replace(/<([^>]*)>/g, "") - .replace(/\s+/g, "-") - .toLowerCase(); - if ( - content === "windows-64" || - content === "windows-32" || - content === "macos" - ) { - if (!links[content]) { - links[content] = []; - } - let url = link.split('"')[0]; - links[content].push(url); - info(`Found ${content} link: ${url}`); - } - }); - if (!links["windows-64"][0]) { + const linkM = result.match(/href="(https[^"]*?type=win32_x64.*?)"/) + if (!linkM) { console.error("No windows-64 dist found"); exit(1); } - resolve(links["windows-64"][0]); + const link = linkM[1] + resolve(link); }); }) .on("error", reject);