wechat-web-devtools-linux/tools/build-prepare.sh
2022-06-06 20:20:55 +08:00

27 lines
588 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# 用于github actions构建
# 解压初步构建后的文件
# 脚本执行前提已完成支持wine的基本构建
set -e
success() {
echo -e "\033[42;37m 成功 \033[0m $1"
}
notice() {
echo -e "\033[36m $1 \033[0m "
}
fail() {
echo -e "\033[41;37m 失败 \033[0m $1"
}
root_dir=$(cd `dirname $0`/.. && pwd -P)
tmp_dir="$root_dir/tmp"
store_dir="$tmp_dir/build"
mkdir -p $store_dir
rm -rf nwjs package.nw
if [[ "$WINE" != 'true' ]];then
tar -zxf wechat-devtools-*.src/src-no-wine.tar.gz -C .
else
tar -zxf wechat-devtools-*.src/src-wine.tar.gz -C .
fi