This commit is contained in:
xin
2025-11-04 17:19:32 +08:00
parent 030381aa5c
commit 7c9b5728b9
37 changed files with 677 additions and 191 deletions

View File

@ -7,7 +7,7 @@
# exit 1
#fi
VERSION=2.1
VERSION=2.1.3
sh install.sh
thispwd=$(pwd)
@ -25,11 +25,30 @@ cp /home/pi/bin/* .
cd ../../..
mkdir DEBIAN
cd DEBIAN
echo "Package: TowerSif
Version: $VERSION
Architecture: armhf
Maintainer: rlx, tc
Description: test" > control
#echo "Package: TowerSif
#Version: $VERSION
#Architecture: armhf
#Maintainer: rlx, tc
#Description: test" > control
cp ../../dpkg/* ./
echo "Version:${VERSION}"
echo "Version:${VERSION}" >> ./control
echo "echo \"V${VERSION}\" > /home/data/version" >> ./postinst
chmod +x ./post*
chmod +x ./control
cd ../
#复制root文件
mkdir -p ./root
cp ../root/* ./root/
chmod +x ./root/*.sh
#复制html文件
mkdir -p ./var/www/html/
cp -r ../html/* ./var/www/html/
chmod +x ./var/www/html/php/*.sh
mkdir -p ./home/data/
cp ../ChangeLog.md ./home/data/ChangeLog.md
#cd /home/pi/
cd $thispwd