mirror of
https://github.com/tsingui/softcenter-1.git
synced 2024-11-14 09:55:17 +00:00
31 lines
483 B
Bash
Executable File
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
|