This commit is contained in:
modehua 2022-09-28 15:37:01 +08:00
parent e471efe835
commit 718bcf28a5
2 changed files with 25 additions and 4 deletions

View File

@ -122,10 +122,20 @@ cd ../../../sdk
git checkout .
git pull
cd ../code_device
git checkout .
git pull
./build.sh $oem
if [ "$oem" == "hgso" ] ;then
./build.sh hg
else if [ "$oem" == "hwso" ];then
./build.sh hw
else if [ "$oem" == "lscso" ];then
./build.sh lsc
else
./build.sh $oem
fi
if [ $? -ne 0 ];then
echo "code_device-------->编译失败"
exit 1
@ -134,7 +144,16 @@ fi
cd ../code_app
git checkout .
git pull
if [ "$oem" == "hgso" ] ;then
./build.sh hg
else if [ "$oem" == "hwso" ];then
./build.sh hw
else if [ "$oem" == "lscso" ];then
./build.sh lsc
fi
./build.sh $oem
if [ $? -ne 0 ];then
echo "code_app-------->编译失败"
exit 1
@ -170,9 +189,10 @@ fi
if [ "$oem" == "lscweb" ] || [ "$oem" == "hwweb" ] || [ "$oem" == "hgweb" ]; then
cp release/$syspath/$cpu/* dpkg/$syspath/$oem/opt/$dpkgpath/bin
else if [ "$oem" == "hgso" ] || [ "$oem" == "hwso" ] || [ "$oem" == "lscso" ]
else if [ "$oem" == "hgso" ] || [ "$oem" == "hwso" ] || [ "$oem" == "lscso" ];then
cp release/$syspath/$cpu/* dpkg/$syspath/$oem/opt/$dpkgpath/lib
rm dpkg/$syspath/$oem/opt/$dpkgpath/lib/*Scan
cp sdk/include/scannerlib/* dpkg/$syspath/$oem/opt/$dpkgpath/inculde
rm dpkg/$syspath/$oem/opt/$dpkgpath/lib/*Scan
rm dpkg/$syspath/$oem/opt/$dpkgpath/lib/*App
else
mv dpkg/$syspath/$oem/usr/lib/* dpkg/$syspath/$oem/usr/lib/$libpath
@ -199,6 +219,7 @@ else
cp release/$syspath/$cpu/* dpkg/$syspath/$oem/opt/apps/$dpkgpath/files/lib
mv dpkg/$syspath/$oem/opt/apps/$dpkgpath/files/lib/*Scan dpkg/$syspath/$oem/opt/apps/$dpkgpath/files/bin
mv dpkg/$syspath/$oem/opt/apps/$dpkgpath/files/lib/*App dpkg/$syspath/$oem/opt/apps/$dpkgpath/files/bin
cp dpkg/$syspath/$oem/opt/apps/$dpkgpath/files/lib/libsane-"$oem"sane.so dpkg/$syspath/$oem/usr/lib/$libpath/sane/libsane-"$oem"sane.so.1
else
if [ "$cpu" == "x86_64" ]; then

View File

@ -1,4 +1,4 @@
package: scanner-driver-huagaosdk
package: huagaoscansdk
Version: 4.3001.2022.05251
Architecture: amd64
Section: utils