Skip to content

Commit 44bcde2

Browse files
committed
update: devtools to v2.01.2510260
1 parent d793282 commit 44bcde2

File tree

5 files changed

+15
-98
lines changed

5 files changed

+15
-98
lines changed

CHANGELOG.MD

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 2.01.2510260-1 / 2025-12-27
2+
- update: devtools to v2.01.2510260
3+
14
# 2.01.2510250-2 / 2025-12-05
25
- fix: 代码没有高亮
36
- fix: 云开发右键“删除记录”缺失 #155

conf/config.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"nwjs":{
2+
"nwjs": {
33
"urls": {
44
"x64": {
55
"version": "0.55.0",
66
"template": "https://oss.npmmirror.com/dist/nwjs/v${version}/nwjs-sdk-v${version}-linux-x64.tar.gz"
7-
},
7+
},
88
"loongarch64": {
99
"version": "0.65.1",
1010
"template": "https://github.com/msojocs/nwjs-loongarch/releases/download/v0.65.2/nwjs-sdk-v0.65.2-linux-loong64.tar.gz"
@@ -55,7 +55,7 @@
5555
"x64": {
5656
"version": "16.13.1",
5757
"template": "https://npmmirror.com/mirrors/node/v${version}/node-v${version}-linux-x64.tar.gz"
58-
},
58+
},
5959
"loongarch64": {
6060
"version": "18.20.4",
6161
"template": "https://github.com/loong64/node/releases/download/v${version}/node-v${version}-linux-loong64.tar.gz"
@@ -67,7 +67,7 @@
6767
"template": "https://github.com/msojocs/wx-compiler/releases/download/v${version}"
6868
},
6969
"devtools": {
70-
"version": "2.01.2510250",
70+
"version": "2.01.2510260",
7171
"template": "https://servicewechat.com/wxa-dev-logic/download_redirect?type=win32_x64&from=mpwiki&download_version=${version}&version_type=1"
7272
}
7373
}

test/qemu-loongarch64

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@ qemu-system-loongarch64 \
1818
-device usb-kbd,id=keyboard,bus=xhci.0,port=2 \
1919
-nic user,model=virtio-net-pci,hostfwd=tcp::5555-:22 \
2020
-virtfs local,path=.,mount_tag=host0,security_model=passthrough,id=host0 \
21-
-hda debian.qcow2
21+
-hda debian.qcow2
22+
23+
24+
# qemu-system-loongarch64 -m 8G -cpu la464-loongarch-cpu -machine virt -smp 8 -bios QEMU_EFI.fd -serial stdio -device virtio-gpu-pci -net nic -net user -device nec-usb-xhci,id=xhci,addr=0x1b -device usb-tablet,id=tablet,bus=xhci.0,port=1 -device usb-kbd,id=keyboard,bus=xhci.0,port=2 -hda debian.qcow2

test/qemu-loongarch64-docker

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ docker run --rm --privileged loongcr.lcpu.dev/multiarch/archlinux --reset -p yes
66
# 检查docker 容器是否存在
77
if [ "$(docker ps -a | grep loongarchlinux-test)" ]; then
88
docker start loongarchlinux-test
9-
docker exec -it loongarchlinux-test /bin/bash -i
9+
docker exec -it loongarchlinux-test tmp/nwjs-sdk-v0.94.1-linux-loong64/nw
1010
else
1111
docker run -it \
1212
--name loongarchlinux-test \

tools/update-wechat-devtools.js

Lines changed: 3 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -211,98 +211,6 @@ const upgrade = function (extractPath) {
211211
});
212212
};
213213

214-
// const patch_wechat_devtools_package_name = function () {
215-
// info("Patching wechat-devtools package name");
216-
217-
// return new Promise((resolve, reject) => {
218-
// spawn(path.resolve(__dirname, "fix-package-name.js"), [], {
219-
// stdio: "inherit",
220-
// }).on("close", (code) => {
221-
// resolve();
222-
// });
223-
// });
224-
// };
225-
// const patch_wechat_devtools_editor_selection_autocopy = function () {
226-
// info("Patching wechat-devtools editor selection autocopy");
227-
228-
// return new Promise((resolve, reject) => {
229-
// spawn(path.resolve(__dirname, "fix-selection-copy-node"), [], {
230-
// stdio: "inherit",
231-
// }).on("close", (code) => {
232-
// resolve();
233-
// });
234-
// });
235-
// };
236-
// const patch_wechat_devtools_CLI = function () {
237-
// info("Patching wechat-devtools CLI supports");
238-
239-
// return new Promise((resolve, reject) => {
240-
// spawn(path.resolve(__dirname, "fix-cli.sh"), [], {
241-
// stdio: "inherit",
242-
// }).on("close", (code) => {
243-
// resolve();
244-
// });
245-
// });
246-
// };
247-
// const patch_wechat_devtools_core = function () {
248-
// info("Patching wechat-devtools core.wxvpkg");
249-
250-
// return new Promise((resolve, reject) => {
251-
// spawn(path.resolve(__dirname, "fix-core.sh"), [], {
252-
// stdio: "inherit",
253-
// }).on("close", (code) => {
254-
// resolve();
255-
// });
256-
// });
257-
// };
258-
// const rebuild_wechat_devtools_node_modules = function () {
259-
// info("Rebuilding wechat-devtools node modules");
260-
261-
// return new Promise((resolve, reject) => {
262-
// const nwConfig = require(path.resolve(__dirname, "../conf/nwjs.json"));
263-
// const e = spawn(
264-
// path.resolve(__dirname, "rebuild-node-modules.sh"),
265-
// [nwConfig.version],
266-
// {
267-
// stdio: "inherit",
268-
// }
269-
// );
270-
// e.on("error", (code) => {
271-
// reject(code);
272-
// });
273-
// e.on("close", (code) => {
274-
// console.info(
275-
// `Rebuilding wechat-devtools node modules Result Code: ${code}`
276-
// );
277-
// if (0 === code) resolve();
278-
// else {
279-
// reject(code);
280-
// }
281-
// });
282-
// });
283-
// };
284-
// const patch_wechat_devtools = function () {
285-
// info("Patching wechat-devtools");
286-
287-
// return new Promise((resolve, reject) => {
288-
// const exec = spawn(path.resolve(__dirname, "fix-menu.sh"), [], {
289-
// stdio: "inherit",
290-
// });
291-
// exec.on("close", (code) => {
292-
// resolve();
293-
// });
294-
// });
295-
// };
296-
// const patch_other = function () {
297-
// info("Patching Other");
298-
299-
// return new Promise((resolve, reject) => {
300-
// execSync(path.resolve(__dirname, "fix-other.sh"));
301-
302-
// resolve();
303-
// });
304-
// };
305-
306214
const start = async () => {
307215
try {
308216
const url = await fetching();
@@ -314,6 +222,9 @@ const start = async () => {
314222
path.resolve(__dirname, "../package.nw/.build_time"),
315223
"" + parseInt(new Date().getTime() / 1000)
316224
);
225+
const cfg = require(path.resolve(__dirname, '../conf/config.json'))
226+
cfg.devtools.version = version
227+
fs.writeFileSync(path.resolve(__dirname, '../conf/config.json'), JSON.stringify(cfg, null, 4))
317228
console.log(
318229
`Succeeded upgrading wechat-devtools to version ${version}`
319230
);

0 commit comments

Comments
 (0)