mirror of
https://github.com/msojocs/wechat-web-devtools-linux.git
synced 2025-07-22 00:00:04 +08:00
9 lines
363 B
Bash
Executable File
9 lines
363 B
Bash
Executable File
#! /bin/bash
|
|
|
|
# from https://github.com/nwjs/nw-gyp/issues/155#issuecomment-1308701166
|
|
|
|
gyp_path=$(readlink -f "$(which nw-gyp)")
|
|
module_path=$(cd `dirname $gyp_path`/.. && pwd -P)
|
|
config_file="${module_path}/lib/configure.js"
|
|
echo "fix configure file: $config_file"
|
|
sed -i "s#process.config || {}#JSON.parse(JSON.stringify(process.config)) || {}#" "$config_file" |