update: devtools to v1.06.2208010

This commit is contained in:
msojocs 2022-09-04 10:49:20 +08:00
parent e10ad2ff9d
commit 7e70819697
6 changed files with 15 additions and 40 deletions

View File

@ -1,3 +1,7 @@
# 1.06.2208010-1 / 2022-09-04
- update: devtools to v1.06.2208010
# 1.06.2207210-1 / 2022-09-03 # 1.06.2207210-1 / 2022-09-03
- update: devtools to v1.06.2207210 - update: devtools to v1.06.2207210

View File

@ -1 +1 @@
1.06.2207210,7599cfeeebb57bda7ae5594daf2e0659 1.06.2208010,4312c9cd7b7be4a95f7b71d3311b19e4

View File

@ -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) [![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/) [![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/) [![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) [![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模式。
另现在已经可以直接在设置界面里面修改字体,手工输入字体名称就可以。 另现在已经可以直接在设置界面里面修改字体,手工输入字体名称就可以。
# 功能测试记录 # 功能测试记录

View File

@ -7,7 +7,7 @@
# https://github.com/dragonation/wechat-devtools # https://github.com/dragonation/wechat-devtools
# https://github.com/cytle/wechat_web_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 # 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://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" # _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 pkgname=wechat-devtools
pkgver="${_wechat_devtools_ver}" # 主版本号 pkgver="${_wechat_devtools_ver}" # 主版本号
pkgrel=8 # 修订版本号release pkgrel=1 # 修订版本号release
epoch=2 # 大版本迭代强制更新(维护者变更,尽量不用) epoch=2 # 大版本迭代强制更新(维护者变更,尽量不用)
pkgdesc="WeChat Devtools For Linux. " pkgdesc="WeChat Devtools For Linux. "
arch=("x86_64") arch=("x86_64")

View File

@ -1,6 +1,6 @@
name: wechat-devtools # you probably want to 'snapcraft register <name>' name: wechat-devtools # you probably want to 'snapcraft register <name>'
base: core18 # the base snap is the execution environment for this snap 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 summary: WeChat Devtools for Linux # 79 char long summary
description: | description: |
WeChat Devtools for Linux. WeChat Devtools for Linux.
@ -32,7 +32,7 @@ parts:
ls -l $SNAPCRAFT_PART_INSTALL ls -l $SNAPCRAFT_PART_INSTALL
package-nw: package-nw:
plugin: dump 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: cache/wechat_devtools_1.05.2204180_x64.exe
source-type: 7z source-type: 7z
source-subdir: code source-subdir: code

View File

@ -62,42 +62,13 @@ const fetching = function () {
result += data; result += data;
}); });
res.on("end", () => { res.on("end", () => {
let links = {}; const linkM = result.match(/href="(https[^"]*?type=win32_x64.*?)"/)
result if (!linkM) {
.toString("utf8")
.split('<div class="page-inner"')[1]
.split('<a href="')
.slice(1)
.map((a) => {
return a.split("</a>")[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]) {
console.error("No windows-64 dist found"); console.error("No windows-64 dist found");
exit(1); exit(1);
} }
resolve(links["windows-64"][0]); const link = linkM[1]
resolve(link);
}); });
}) })
.on("error", reject); .on("error", reject);