mirror of
https://github.com/msojocs/wechat-web-devtools-linux.git
synced 2025-07-22 00:00:04 +08:00
fix: 权限,兼容性优化
This commit is contained in:
parent
e9c717dd5d
commit
8c67f5ad52
@ -37,6 +37,7 @@ if [[ $NO_WINE == 'true' ]];then
|
|||||||
\cp -rf "${srcdir}/compiler/nodejs/wcsc" "${package_dir}/js/vendor/wcsc"
|
\cp -rf "${srcdir}/compiler/nodejs/wcsc" "${package_dir}/js/vendor/wcsc"
|
||||||
\cp -rf "${tmp_dir}/node_modules/miniprogram-compiler/bin/linux/wcc" "${package_dir}/js/vendor/wcc.bin"
|
\cp -rf "${tmp_dir}/node_modules/miniprogram-compiler/bin/linux/wcc" "${package_dir}/js/vendor/wcc.bin"
|
||||||
\cp -rf "${tmp_dir}/node_modules/miniprogram-compiler/bin/linux/wcsc" "${package_dir}/js/vendor/wcsc.bin"
|
\cp -rf "${tmp_dir}/node_modules/miniprogram-compiler/bin/linux/wcsc" "${package_dir}/js/vendor/wcsc.bin"
|
||||||
|
cd "${package_dir}/js/vendor" && chmod 0755 wcc.bin wcsc.bin
|
||||||
node "${package_dir}/js/vendor/generatemd5.js"
|
node "${package_dir}/js/vendor/generatemd5.js"
|
||||||
|
|
||||||
current=`date "+%Y-%m-%d %H:%M:%S"`
|
current=`date "+%Y-%m-%d %H:%M:%S"`
|
||||||
|
@ -5,6 +5,7 @@ const fs = require("fs");
|
|||||||
const parseFile = function (path) {
|
const parseFile = function (path) {
|
||||||
|
|
||||||
if (!fs.existsSync(path)) {
|
if (!fs.existsSync(path)) {
|
||||||
|
console.error(`${path}文件不存在`)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let content = JSON.parse(fs.readFileSync(path, "utf8"));
|
let content = JSON.parse(fs.readFileSync(path, "utf8"));
|
||||||
@ -17,5 +18,8 @@ const parseFile = function (path) {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
parseFile(path.resolve(__dirname, "../package.nw/package.json"));
|
let basedir = __dirname;
|
||||||
parseFile(path.resolve(__dirname, "../package.nw/package-lock.json"));
|
if(undefined !== process.env['srcdir'])
|
||||||
|
basedir = process.env['srcdir'] + '/tools';
|
||||||
|
parseFile(path.resolve(basedir, "../package.nw/package.json"));
|
||||||
|
parseFile(path.resolve(basedir, "../package.nw/package-lock.json"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user