WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit c985d95

Browse files
committed
update: devtools to v2.01.2510250
1 parent ab5555b commit c985d95

File tree

10 files changed

+30
-22
lines changed

10 files changed

+30
-22
lines changed

CHANGELOG.MD

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# 1.06.2504060-2 / 2025-11-
1+
# 2.01.2510250-1 / 2025-11-
22
- feat: skyline support
3+
- update: devtools to v2.01.2510250
34

45
# 1.06.2504060-1 / 2025-10-30
56
- update: devtools to v1.06.2504060

conf/compiler_version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
WX_COMPILER_VERSION=v0.1.5
1+
WX_COMPILER_VERSION=v0.1.6

conf/devtools_v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.06.2504060,88b71e465a9750fa64acef13ffd6cb8d
1+
2.01.2510250,911c5c5d371f71fc37c19ae9cbcff9b6

docker/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && \
88
sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && \
99
mkdir -p /build_temp/python36 /build_temp/nodejs && \
1010
apt update && \
11-
apt install -y binutils software-properties-common gcc g++ \
11+
apt install -y binutils software-properties-common \
1212
gconf2 libxkbfile-dev p7zip-full make libssh2-1-dev libkrb5-dev wget curl \
1313
openssl pkg-config build-essential && \
14+
add-apt-repository ppa:ubuntu-toolchain-r/test && \
15+
apt update && \
16+
apt install -y gcc-9 g++-9 && \
17+
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90 --slave /usr/bin/g++ g++ /usr/bin/g++-9 && \
1418
cd /build_temp/python36 && \
1519
apt-get install -y aptitude &&\
1620
aptitude -y install gcc make zlib1g-dev libffi-dev libssl-dev &&\

test/update-wcc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
root_dir=$(cd `dirname $0`/.. && pwd -P)
4+
cp $HOME/github/wx-compiler/build/wcc $root_dir/package.nw/node_modules/wcc-exec/wcc

test/wine-wcc

Lines changed: 0 additions & 6 deletions
This file was deleted.

tools/build-with-docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ docker run --rm -i \
77
-e "ACTION_MODE=${ACTION_MODE:-false}" \
88
-w /workspace \
99
-v "$root_dir:/workspace" \
10-
jiyecafe/wechat-devtools-build:v1.0.4 \
10+
msojocs/wechat-devtools-build:v1.0.5 \
1111
bash ./tools/setup-wechat-devtools.sh

tools/fix-other.sh

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,30 @@ tmp_dir="$root_dir/tmp"
66
nwjs_dir="$root_dir/nwjs"
77
package_dir="$root_dir/package.nw"
88

9-
# 修复: webview manager
10-
# 此bug导致以下功能异常:
11-
# 1. 代码依赖分析不可用
12-
# 2. 拓展中的“SERVICE MARKET RECOMMENDS”功能不可用
13-
echo "fix: webview manager"
14-
sed -i 's#module.exports = createWebviewManager;#module.exports = createWebviewManager,( /** @type {any} */ (window)).createWebviewManager = createWebviewManager;#g' "$package_dir/js/libs/vseditor/webview-resource/main.js"
15-
169
echo "replace: wcc,wcsc linux version"
1710
source "${srcdir}/conf/compiler_version"
1811

1912
mkdir -p "${srcdir}/cache/compiler/${WX_COMPILER_VERSION}"
2013
if [ ! -f "${srcdir}/cache/compiler/${WX_COMPILER_VERSION}/wcc" ];then
21-
wget -c "https://github.com/msojocs/wx-compiler/releases/download/${WX_COMPILER_VERSION}/wcc" -O "${srcdir}/cache/compiler/${WX_COMPILER_VERSION}/wcc.tmp"
14+
wget -c "https://github.com/msojocs/wx-compiler/releases/download/${WX_COMPILER_VERSION}/wcc-x86_64" -O "${srcdir}/cache/compiler/${WX_COMPILER_VERSION}/wcc.tmp"
2215
mv "${srcdir}/cache/compiler/${WX_COMPILER_VERSION}/wcc.tmp" "${srcdir}/cache/compiler/${WX_COMPILER_VERSION}/wcc"
2316
chmod 0755 "${srcdir}/cache/compiler/${WX_COMPILER_VERSION}/wcc"
2417
fi
2518

2619
if [ ! -f "${srcdir}/cache/compiler/${WX_COMPILER_VERSION}/wcsc" ];then
27-
wget -c "https://github.com/msojocs/wx-compiler/releases/download/${WX_COMPILER_VERSION}/wcsc" -O "${srcdir}/cache/compiler/${WX_COMPILER_VERSION}/wcsc.tmp"
20+
wget -c "https://github.com/msojocs/wx-compiler/releases/download/${WX_COMPILER_VERSION}/wcsc-x86_64" -O "${srcdir}/cache/compiler/${WX_COMPILER_VERSION}/wcsc.tmp"
2821
mv "${srcdir}/cache/compiler/${WX_COMPILER_VERSION}/wcsc.tmp" "${srcdir}/cache/compiler/${WX_COMPILER_VERSION}/wcsc"
2922
chmod 0755 "${srcdir}/cache/compiler/${WX_COMPILER_VERSION}/wcsc"
3023
fi
3124

3225
if [ ! -f "${srcdir}/cache/compiler/${WX_COMPILER_VERSION}/wcc_module.node" ];then
33-
wget -c "https://github.com/msojocs/wx-compiler/releases/download/${WX_COMPILER_VERSION}/wcc_module.node" -O "${srcdir}/cache/compiler/${WX_COMPILER_VERSION}/wcc_module.node.tmp"
26+
wget -c "https://github.com/msojocs/wx-compiler/releases/download/${WX_COMPILER_VERSION}/wcc-x86_64.node" -O "${srcdir}/cache/compiler/${WX_COMPILER_VERSION}/wcc_module.node.tmp"
3427
mv "${srcdir}/cache/compiler/${WX_COMPILER_VERSION}/wcc_module.node.tmp" "${srcdir}/cache/compiler/${WX_COMPILER_VERSION}/wcc_module.node"
3528
chmod 0755 "${srcdir}/cache/compiler/${WX_COMPILER_VERSION}/wcc_module.node"
3629
fi
3730

3831
if [ ! -f "${srcdir}/cache/compiler/${WX_COMPILER_VERSION}/wcsc_module.node" ];then
39-
wget -c "https://github.com/msojocs/wx-compiler/releases/download/${WX_COMPILER_VERSION}/wcsc_module.node" -O "${srcdir}/cache/compiler/${WX_COMPILER_VERSION}/wcsc_module.node.tmp"
32+
wget -c "https://github.com/msojocs/wx-compiler/releases/download/${WX_COMPILER_VERSION}/wcsc-x86_64.node" -O "${srcdir}/cache/compiler/${WX_COMPILER_VERSION}/wcsc_module.node.tmp"
4033
mv "${srcdir}/cache/compiler/${WX_COMPILER_VERSION}/wcsc_module.node.tmp" "${srcdir}/cache/compiler/${WX_COMPILER_VERSION}/wcsc_module.node"
4134
chmod 0755 "${srcdir}/cache/compiler/${WX_COMPILER_VERSION}/wcsc_module.node"
4235
fi
@@ -74,6 +67,14 @@ rm "${package_dir}/node_modules/node-float-pigment-css/float-pigment-css-for-nod
7467
cp "${srcdir}/cache/float-pigment-${float_pigment_version}.node" "${package_dir}/node_modules/node-float-pigment-css/float-pigment-css-for-nodejs.node"
7568
cp "${srcdir}/cache/float-pigment-${float_pigment_version}.node" "${package_dir}/node_modules/node-float-pigment-css/float-pigment-css-for-nwjs.node"
7669

70+
# websocket找不到
71+
cd "${package_dir}/js/libs/vseditor/extensions/node_modules/ws/lib"
72+
mv "WebSocket.js" "websocket.js"
73+
mv "Receiver.js" "receiver.js"
74+
mv "Sender.js" "sender.js"
75+
mv "Constants.js" "constants.js"
76+
mv "Validation.js" "validation.js"
77+
7778
# 阻止无限启动服务器
7879
mv "${package_dir}/js/core/entrance.js" "${package_dir}/js/core/entrance.js.bak"
7980
cat "${srcdir}/res/scripts/entrance.js" > "${package_dir}/js/core/entrance.js"

tools/rebuild-node-modules.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ export JOBS=$max_thread
9595
trash \
9696
vscode-oniguruma \
9797
nodegit \
98+
@vscode/sqlite3 \
9899
--registry=https://registry.npmmirror.com \
99100
--nodegit_binary_host_mirror=https://npmmirror.com/mirrors/nodegit/v0.27.0/ ) # reinstall modules
100101

@@ -123,6 +124,8 @@ cd "oniguruma" && nw-gyp rebuild --arch=x64 "--target=$NW_VERSION" --dist-url=ht
123124
notice "rebuild spdlog"
124125
cd "${package_dir}/node_modules_tmp/node_modules" && \
125126
cp -fr "spdlog" "spdlog-node" && \
127+
mkdir -p "@vscode" && \
128+
cp -fr "spdlog" "@vscode/spdlog18" && \
126129
cd "spdlog" && nw-gyp rebuild --arch=x64 "--target=$NW_VERSION" --dist-url=https://registry.npmmirror.com/-/binary/nwjs
127130

128131
notice "remove unused files"

tools/update-nwjs-node

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ const upgrade = function (extractPath) {
9292
if (fs.existsSync(path.resolve(__dirname, "../node/bin/node"))) {
9393
execSync(`cd ${path.resolve(__dirname, "../nwjs")} && ln -sr ../node/bin/node node`)
9494
execSync(`cd ${path.resolve(__dirname, "../nwjs")} && ln -s node node.exe`)
95+
execSync(`cd ${path.resolve(__dirname, "../nwjs")} && ln -s node node-18.exe`)
9596
}
9697
if (fs.existsSync(path.resolve(__dirname, "../package.nw"))) {
9798
execSync(`cd ${path.resolve(__dirname, "../nwjs")} && ln -sr ../package.nw package.nw`)

0 commit comments

Comments
 (0)