Skip to content

Commit 75ea918

Browse files
committed
fix: worker无法使用 #145
1 parent df2d94f commit 75ea918

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

CHANGELOG.MD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# 1.06.2503290-3 / 2025-05-
22
- update: compiler(Linux) v0.1.5
3+
- fix: worker无法使用 #145
34

45
# 1.06.2503290-2 / 2025-05-02
56
- update: compiler(Linux) v0.1.4

test/wxvpkg-test

100644100755
Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,4 @@ root_dir=$(cd `dirname $0`/.. && pwd -P)
44
tmp_dir="$root_dir/tmp"
55

66
# unpack 文件 到 路径
7-
node "$root_dir/tools/wxvpkg/unpack" "$tmp_dir/core.wxvpkg" "$tmp_dir/core.wxvpkg.ext"
8-
9-
# pack 路径 到 文件
10-
node "$root_dir/tools/wxvpkg/pack" "$tmp_dir/core.wxvpkg.ext" "$tmp_dir/core.wxvpkg.test"
11-
12-
# unpack 文件 到 路径
13-
rm -rf "$tmp_dir/core.wxvpkg.ext1"
14-
node "$root_dir/tools/wxvpkg/unpack" "$tmp_dir/core.wxvpkg.test" "$tmp_dir/core.wxvpkg.ext1"
15-
7+
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"

tools/fix-package-name.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ const parseFile = function (path) {
1313
content.name = "wechat-devtools";
1414
// 开启调试,更新参数
1515
content['chromium-args'] = content['chromium-args'].replace('--disable-devtools', '--mixed-context').replace('--ignore-gpu-blacklist', '--ignore-gpu-blocklist')
16+
// fix worker #145
17+
.replace('--js-flags=--harmony-weak-refs', '--enable-features=SharedArrayBuffer')
1618
content.window.height = content.window.width = 1000
1719
fs.writeFileSync(path, JSON.stringify(content));
1820

0 commit comments

Comments
 (0)