mirror of
https://github.com/msojocs/wechat-web-devtools-linux.git
synced 2025-07-22 00:00:04 +08:00
update: mew工具移至old目录,增加nwjs与node对应版本
This commit is contained in:
parent
7d2aac91ed
commit
acf6275304
@ -1,4 +1,42 @@
|
||||
{
|
||||
"version": "0.53.1",
|
||||
"url": "https://oss.npmmirror.com/dist/nwjs/v${version}/nwjs-sdk-v${version}-linux-x64.tar.gz"
|
||||
"url": "https://oss.npmmirror.com/dist/nwjs/v${version}/nwjs-sdk-v${version}-linux-x64.tar.gz",
|
||||
"nw2node": {
|
||||
"0.60.0": "17.3.0",
|
||||
"0.59.1": "17.1.0",
|
||||
"0.59.0": "17.1.0",
|
||||
"0.58.0": "16.10.0",
|
||||
"0.57.1": "16.10.0",
|
||||
"0.57.0": "16.9.1",
|
||||
"0.56.1": "16.9.1",
|
||||
"0.56.0": "16.4.2",
|
||||
"0.55.0": "16.4.2",
|
||||
"0.54.1": "16.4.0",
|
||||
"0.54.0": "16.1.0",
|
||||
"0.53.1": "16.1.0",
|
||||
"0.53.0": "15.14.0",
|
||||
"0.52.2": "15.12.0",
|
||||
"0.52.1": "15.12.0",
|
||||
"0.52.0": "15.10.0",
|
||||
"0.51.2": "15.8.1",
|
||||
"0.51.1": "15.8.1",
|
||||
"0.51.0": "15.5.1",
|
||||
"0.50.3": "15.5.1",
|
||||
"0.50.2": "15.3.0",
|
||||
"0.50.1": "15.3.0",
|
||||
"0.50.0": "15.0.1",
|
||||
"0.49.2": "15.0.1",
|
||||
"0.49.1": "14.13.1",
|
||||
"0.49.0": "14.12.0",
|
||||
"0.48.4": "14.12.0",
|
||||
"0.48.3": "14.12.0",
|
||||
"0.48.2": "14.10.1",
|
||||
"0.48.1": "14.9.0",
|
||||
"0.48.0": "14.8.0",
|
||||
"0.47.3": "14.8.0",
|
||||
"0.47.2": "14.7.0",
|
||||
"0.47.1": "14.6.0",
|
||||
"0.47.0": "14.5.0",
|
||||
"0.46.4": "14.5.0"
|
||||
}
|
||||
}
|
0
tools/fix-cli → tools/old/fix-cli
Executable file → Normal file
0
tools/fix-cli → tools/old/fix-cli
Executable file → Normal file
0
tools/fix-package-name → tools/old/fix-package-name
Executable file → Normal file
0
tools/fix-package-name → tools/old/fix-package-name
Executable file → Normal file
0
tools/fix-selection-copy → tools/old/fix-selection-copy
Executable file → Normal file
0
tools/fix-selection-copy → tools/old/fix-selection-copy
Executable file → Normal file
0
tools/install-desktop-icon → tools/old/install-desktop-icon
Executable file → Normal file
0
tools/install-desktop-icon → tools/old/install-desktop-icon
Executable file → Normal file
0
tools/patch-wechat-devtools → tools/old/patch-wechat-devtools
Executable file → Normal file
0
tools/patch-wechat-devtools → tools/old/patch-wechat-devtools
Executable file → Normal file
0
tools/setup-wechat-devtools → tools/old/setup-wechat-devtools
Executable file → Normal file
0
tools/setup-wechat-devtools → tools/old/setup-wechat-devtools
Executable file → Normal file
0
tools/update-node → tools/old/update-node
Executable file → Normal file
0
tools/update-node → tools/old/update-node
Executable file → Normal file
0
tools/update-nwjs → tools/old/update-nwjs
Executable file → Normal file
0
tools/update-nwjs → tools/old/update-nwjs
Executable file → Normal file
0
tools/update-wechat-devtools → tools/old/update-wechat-devtools
Executable file → Normal file
0
tools/update-wechat-devtools → tools/old/update-wechat-devtools
Executable file → Normal file
@ -41,6 +41,7 @@ rm -fr "${package_dir}/node_modules_tmp/node_modules/spdlog-node"
|
||||
extract-file-icon \
|
||||
native-keymap \
|
||||
node-pty \
|
||||
native-watchdog \
|
||||
oniguruma \
|
||||
spdlog@0.11.1 \
|
||||
trash \
|
||||
@ -58,7 +59,6 @@ rm -fr "${package_dir}/node_modules_tmp/node_modules/spdlog-node"
|
||||
mkdir -p "${package_dir}/node_modules/vscode-ripgrep/bin"
|
||||
cp -fr "${package_dir}/node_modules_tmp/node_modules/vscode-ripgrep/bin/rg" "${package_dir}/node_modules/vscode-ripgrep/bin/rg"
|
||||
|
||||
cd "${package_dir}/node_modules_tmp" && npm install native-watchdog --save
|
||||
rm -rf "${package_dir}/node_modules/native-watchdog" && cp -fr "${package_dir}/node_modules_tmp/node_modules/native-watchdog" "${package_dir}/node_modules"
|
||||
|
||||
rm -rf "${package_dir}/node_modules_tmp"
|
||||
|
@ -97,9 +97,20 @@ const upgrade = function (extractPath) {
|
||||
|
||||
const start = async () => {
|
||||
try {
|
||||
const nodePath = path.resolve(__dirname, "../node/bin/node")
|
||||
if(fs.existsSync(nodePath)){
|
||||
const version = execSync(`${path.resolve(__dirname, "../node/bin/node")} --version`).toString().replace('\n', '')
|
||||
if(version === `v${nodeConfig.version}`){
|
||||
console.log(`Node版本:${version} 已经安装,忽略`)
|
||||
exit(0)
|
||||
}else{
|
||||
console.log(`已安装Node版本:${version},将要安装v${nodeConfig.version}`)
|
||||
}
|
||||
}
|
||||
const localPath = await download();
|
||||
const extractPath = await extract(localPath);
|
||||
await upgrade(extractPath);
|
||||
execSync(`${path.resolve(__dirname, "../node/bin/npm")} install node-gyp`)
|
||||
|
||||
console.log(
|
||||
`Succeeded upgrading nodeConfig to version ${nodeConfig.version}`
|
||||
|
Loading…
x
Reference in New Issue
Block a user