mirror of
https://github.com/tsingui/softcenter-1.git
synced 2024-11-15 02:15:18 +00:00
31 lines
483 B
Bash
31 lines
483 B
Bash
|
#! /bin/sh
|
||
|
VERSION=1.1.6
|
||
|
|
||
|
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
|