任立新 修改该温控系统的逻辑

This commit is contained in:
xin
2025-05-08 13:52:21 +08:00
parent 455013fa07
commit 030381aa5c
4 changed files with 26 additions and 14 deletions

View File

@ -1,15 +1,17 @@
#!/bin/bash
# 检查是否提供了版本号参数
if [ $# -eq 0 ]; then
echo "错误:请提供版本号参数"
echo "用法: $0 <版本号>"
exit 1
fi
#if [ $# -eq 0 ]; then
# echo "错误:请提供版本号参数"
# echo "用法: $0 <版本号>"
# exit 1
#fi
VERSION=$1
VERSION=2.1
sh install.sh
cd /home/pi/
thispwd=$(pwd)
#cd /home/pi/
DebDirectory=DebpackTowerSif
@ -29,8 +31,11 @@ Architecture: armhf
Maintainer: rlx, tc
Description: test" > control
cd /home/pi/
sudo dpkg -b $DebDirectory TowerSif_${VERSION}.deb
#cd /home/pi/
cd $thispwd
sudo dpkg -b $DebDirectory TowerSif_V${VERSION}.deb
mkdir -p DEB
cp TowerSif_V${VERSION}.deb DEB/
rm -r $DebDirectory
#sudo dpkg -r TowerSif