mirror of
https://github.com/msojocs/wechat-web-devtools-linux.git
synced 2025-07-22 00:00:04 +08:00
13 lines
441 B
Bash
Executable File
13 lines
441 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
root_dir=$(cd `dirname $0`/.. && pwd -P)
|
|
a=$1
|
|
if [ "$a" == '1' ];then
|
|
rm -rf "$root_dir/package.nw/core.wxvpkg.ext"
|
|
node tools/wxvpkg_unpack.js "$root_dir/package.nw/core.wxvpkg" "$root_dir/package.nw/core.wxvpkg.ext"
|
|
else
|
|
node tools/wxvpkg_pack.js package.nw/core.wxvpkg.ext package.nw/core.wxvpkg
|
|
rm -rf ~/.config/wechat-devtools/WeappCache
|
|
rm -rf ~/.config/wechat-devtools/WeappVendor
|
|
bin/wechat-devtools
|
|
fi |