makedeb
WeChat Devtools For Linux.
Viewing /fix-cli.sh
.
Click here to go back to the Git tree for wechat-devtools.
#! /bin/bash
set -e
root_dir=$(cd `dirname $0`/.. && pwd -P)
NW_PACKAGE_DIR="$root_dir/package.nw"
if [ -z "$NW_PACKAGE_DIR" ]; then
echo -e "\e[1;31m\$NW_PACKAGE_DIR is empty\e[0m" >&2
exit 1
fi
cd "$NW_PACKAGE_DIR"
sed -i 's#AppData/Local/\${global.userDirName}/User Data/Default#.config/\${global.userDirName}/Default#g' js/common/cli/index.js
sed -i 's#USERPROFILE#HOME#g' js/common/cli/index.js