update: devtools 1.05.2204250

This commit is contained in:
msojocs 2022-04-26 13:30:06 +08:00
parent 5ce602a8b7
commit 49d9077c66
5 changed files with 28 additions and 11 deletions

View File

@ -11,20 +11,34 @@ VERSION_DATA=(${VERSION_DATA//,/ })
TARGET_VERSION=${VERSION_DATA[0]}
TARGET_VERSION_MD5=${VERSION_DATA[1]}
LATEST_TAG=$(git describe --abbrev=0)
# 检查snapcraft主版本号是否正确
SNAP_VERSION=$(find $root_dir/snap -name "snapcraft.yaml" | xargs grep -P "'\d+\.\d+\.\d+-\d+" -o)
if [ "v${SNAP_VERSION//\'/}" != "$LATEST_TAG" ];then
SNAP_VERSION=$(grep -P "'\d+\.\d+\.\d{5,}" -o $root_dir/snap/snapcraft.yaml)
if [ "${SNAP_VERSION//\'/}" != "$TARGET_VERSION" ];then
echo "SNAP版本不正确!!!"
echo "SNAP版本: v${SNAP_VERSION//\'/} != 最新TAG: $LATEST_TAG"
echo "SNAP版本: ${SNAP_VERSION//\'/} != 目标版本: $TARGET_VERSION"
exit 1
fi
# 检查readme中的版本
README_VERSION=$(grep -P '\-\d+\.\d+\.\d{5,}-' -o "$root_dir/readme.md")
if [ "${README_VERSION//-/}" != "${TARGET_VERSION}" ];then
echo "README中版本不正确!!!"
echo "README中版本: ${README_VERSION//-/} != 目标版本: ${TARGET_VERSION}"
exit 1
fi
# 检查snapcraft构建时下载的工具版本号是否正确
SNAP_DEVTOOL_VERSION=$(find $root_dir/snap -name "snapcraft.yaml" | xargs grep -P "=\d+\d+\d{5,}" -o)
SNAP_DEVTOOL_VERSION=$(cat $root_dir/snap/snapcraft.yaml | grep -P "=\d+\d+\d{5,}" -o)
if [ "${SNAP_DEVTOOL_VERSION//=/}" != "${TARGET_VERSION//./}" ];then
echo "SNAP工具版本不匹配!!!"
echo "SNAP工具版本不正确!!!"
echo "snap下载版本: ${SNAP_DEVTOOL_VERSION//=/} != 目标版本: ${TARGET_VERSION//./}"
exit 1
fi
# LATEST_TAG=$(git describe --abbrev=0)
# SNAP_VERSION=$(grep -P "'\d+\.\d+\.\d+-\d+" -o $root_dir/snap/snapcraft.yaml)
# if [ "v${SNAP_VERSION//\'/}" != "$LATEST_TAG" ];then
# echo "SNAP版本与TAG不符!!!"
# echo "SNAP版本: v${SNAP_VERSION//\'/} != 最新TAG: $LATEST_TAG"
# exit 1
# fi

View File

@ -1,3 +1,5 @@
# 1.05.2204250-1 / 2022-
- update: devtools 1.05.2204250
# 1.05.2204180-2 / 2022-04-26
- feat: wcc,wcsc node模块懒加载template解析支持

View File

@ -1 +1 @@
1.05.2204180,0cd12ab05211bb88c56aa38f8de76a1a
1.05.2204250,0073a70263614777fc41f21afbfc377d

View File

@ -10,10 +10,11 @@
----
[![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.05.2204180-yellow)](https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html)
[![wechat-tools](https://img.shields.io/badge/wechat--devtools-1.05.2204250-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)
[![wechat-devtools](https://snapcraft.io/wechat-devtools/badge.svg)](https://snapcraft.io/wechat-devtools)
这是微信开发者工具 Linux版

View File

@ -1,6 +1,6 @@
name: wechat-devtools # you probably want to 'snapcraft register <name>'
base: core18 # the base snap is the execution environment for this snap
version: '1.05.2204180-2' # just for humans, typically '1.2+git' or '1.3.2'
version: '1.05.2204250-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=1052204180&version_type=1
source: https://servicewechat.com/wxa-dev-logic/download_redirect?type=x64&from=mpwiki&download_version=1052204250&version_type=1
# source: cache/wechat_devtools_1.05.2204180_x64.exe
source-type: 7z
source-subdir: code