mirror of
https://github.com/msojocs/wechat-web-devtools-linux.git
synced 2025-07-22 00:00:04 +08:00
15 lines
381 B
JavaScript
15 lines
381 B
JavaScript
#!/usr/bin/env node
|
|
|
|
const fs = require("fs");
|
|
const path = require("path");
|
|
|
|
if (fs.existsSync(path.resolve(__dirname, "../nwjs"))) {
|
|
if (!fs.existsSync(path.resolve(__dirname, "../nwjs/package.nw"))) {
|
|
// 链接
|
|
fs.symlinkSync(
|
|
path.resolve(__dirname, "../package.nw"),
|
|
path.resolve(__dirname, "../nwjs/package.nw")
|
|
);
|
|
}
|
|
}
|