Compare commits

...

6 Commits

Author SHA1 Message Date
msojocs
bf2fbd90ed fix: 最新版dpkg的默认设置导致统信商店识别不了包 2025-05-24 11:52:39 +08:00
msojocs
7972c036f2 perf: 优化构建脚本 2025-05-23 20:56:17 +08:00
msojocs
75ea918b71 fix: worker无法使用 #145 2025-05-23 20:36:47 +08:00
msojocs
df2d94f3f2 fix: 使用旧的nw-gyp,解决模块编译失败 #144 2025-05-17 16:10:40 +08:00
msojocs
2778d18e9e update: compiler(Linux) v0.1.5 2025-05-02 16:29:35 +08:00
msojocs
e2d698f573 update: compiler(Linux) v0.1.4 2025-05-02 09:26:14 +08:00
10 changed files with 22 additions and 15 deletions

View File

@ -46,6 +46,7 @@ jobs:
- name: Prepare
run: |
sudo apt update -y
sudo apt-get install -y build-essential fakeroot devscripts debhelper # debmake lintian pbuilder
- name: Build Deb Package

View File

@ -1,3 +1,10 @@
# 1.06.2503290-3 / 2025-05-23
- update: compiler(Linux) v0.1.5
- fix: worker无法使用 #145
# 1.06.2503290-2 / 2025-05-02
- update: compiler(Linux) v0.1.4
# 1.06.2503290-1 / 2025-04-30
- update: node v16.11.0 (解决codebuddy无法使用。)

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)
[![wechat-tools](https://img.shields.io/badge/wechat--devtools-1.06.2412050-blue)](https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html)
[![wechat-tools](https://img.shields.io/badge/wechat--devtools-1.06.2503290-blue)](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.11.0-orange)](https://nodejs.org/en/)
@ -34,7 +34,7 @@
# 进度
当前工具可以在Linux上构筑最新版 `1.06.2412050`支持CLI模式。
当前工具可以在Linux上构筑最新版 `1.06.2503290`支持CLI模式。
另现在已经可以直接在设置界面里面修改字体,手工输入字体名称就可以。
# 功能测试记录

View File

@ -1 +1 @@
WX_COMPILER_VERSION=v0.1.3
WX_COMPILER_VERSION=v0.1.5

View File

@ -89,7 +89,7 @@ build() {
_log "prepare nw-gyp"
node --version
npm uninstall node-gyp -g
npm install nw-gyp node-gyp -g
npm install nw-gyp@3.6.6 node-gyp -g
# node bin
_log "copy node exectuable"

View File

@ -12,6 +12,11 @@ DH_VERBOSE = 1
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
# 1.20.9ubuntu1 -> 1.20.9ubuntu2修改了默认打包工具为zstd导致统信平台不能识别强制设定为xz
# changelog: https://launchpad.net/ubuntu/+source/dpkg/1.20.9ubuntu2
override_dh_builddeb:
dh_builddeb -- -Zxz
override_dh_strip_nondeterminism:
override_dh_shlibdeps:

10
test/wxvpkg-test Normal file → Executable file
View File

@ -4,12 +4,4 @@ root_dir=$(cd `dirname $0`/.. && pwd -P)
tmp_dir="$root_dir/tmp"
# unpack 文件 到 路径
node "$root_dir/tools/wxvpkg/unpack" "$tmp_dir/core.wxvpkg" "$tmp_dir/core.wxvpkg.ext"
# pack 路径 到 文件
node "$root_dir/tools/wxvpkg/pack" "$tmp_dir/core.wxvpkg.ext" "$tmp_dir/core.wxvpkg.test"
# unpack 文件 到 路径
rm -rf "$tmp_dir/core.wxvpkg.ext1"
node "$root_dir/tools/wxvpkg/unpack" "$tmp_dir/core.wxvpkg.test" "$tmp_dir/core.wxvpkg.ext1"
node "$root_dir/tools/wxvpkg_unpack.js" "/home/msojocs/.config/wechat-devtools/WeappVendor/3.8.5.wxvpkg" "/home/msojocs/.config/wechat-devtools/WeappVendor/3.8.5.wxvpkg.ext"

View File

@ -13,6 +13,8 @@ const parseFile = function (path) {
content.name = "wechat-devtools";
// 开启调试,更新参数
content['chromium-args'] = content['chromium-args'].replace('--disable-devtools', '--mixed-context').replace('--ignore-gpu-blacklist', '--ignore-gpu-blocklist')
// fix worker #145
.replace('--js-flags=--harmony-weak-refs', '--enable-features=SharedArrayBuffer')
content.window.height = content.window.width = 1000
fs.writeFileSync(path, JSON.stringify(content));

View File

@ -2,7 +2,7 @@
# 参数:
# 1 ---- NW版本
set -e
set -ex
notice() {
echo -e "\033[36m $1 \033[0m "

View File

@ -79,7 +79,7 @@ fi
if [ $CURRENT_STEP == $INSTALL_NPM_CONFIG_SUCCESS ];then
notice "=====安装node-gyp nw-gyp===="
npm uninstall node-gyp -g
npm install node-gyp nw-gyp -g
npm install node-gyp nw-gyp@3.6.6 -g
echo $PATH
node-gyp install
node-gyp list