v2ray/softcenter/build.sh
2019-01-30 19:25:59 +08:00

31 lines
483 B
Bash
Executable File

#! /bin/sh
VERSION=1.1.7
cat version
rm -f softcenter.tar.gz
mkdir -p ./softcenter/res
python ./gen_install.py stage1
chmod 755 ./softcenter/scripts/ks_app_install.sh
tar -zcvf softcenter.tar.gz softcenter
md5value=`md5sum softcenter.tar.gz|tr " " "\n"|sed -n 1p`
cat > ./version <<EOF
$VERSION
$md5value
EOF
cat version
cat > ./config.json.js <<EOF
{
"version":"$VERSION",
"md5":"$md5value"
}
EOF
python ./gen_install.py stage2
cat to_remove.txt|xargs rm -f
rm to_remove.txt