update build script
Some checks failed
gitea-sync/antos-deb/pipeline/head There was a failure building this commit
Some checks failed
gitea-sync/antos-deb/pipeline/head There was a failure building this commit
This commit is contained in:
parent
a129a09fcb
commit
3942552858
32
build_deb.sh
32
build_deb.sh
@ -9,11 +9,35 @@ ARCH=$2
|
|||||||
[ -z "$TAG" ] && echo "Unknown version" && exit 1
|
[ -z "$TAG" ] && echo "Unknown version" && exit 1
|
||||||
[ -z "$ARCH" ] && echo "Unknown architecture" && exit 1
|
[ -z "$ARCH" ] && echo "Unknown architecture" && exit 1
|
||||||
|
|
||||||
|
case $ARCH in
|
||||||
|
amd64|x86_64)
|
||||||
|
archname=amd64
|
||||||
|
;;
|
||||||
|
aarch64|arm64)
|
||||||
|
archname=aarch64
|
||||||
|
;;
|
||||||
|
armv7l|arm)
|
||||||
|
archname=armhf
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Unkown architecture"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
case $TAG in
|
||||||
|
master)
|
||||||
|
TAG=latest
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
echo "build ANTOS deb package for version $TAG, architecture $ARCH"
|
echo "build ANTOS deb package for version $TAG, architecture $ARCH"
|
||||||
|
|
||||||
DIR="build/$TAG"
|
DIR="build/$TAG"
|
||||||
FILE="AntOS_$ARCH.deb"
|
FILE="AntOS_${archname}.deb"
|
||||||
NAME="AntOS_${TAG}_${ARCH}"
|
NAME="AntOS_${TAG}_${archname}"
|
||||||
|
|
||||||
[ -d "$NAME" ] && rm -rf "$NAME"
|
[ -d "$NAME" ] && rm -rf "$NAME"
|
||||||
mkdir $NAME
|
mkdir $NAME
|
||||||
@ -27,8 +51,8 @@ mkdir DEBIAN
|
|||||||
cat << EOF >> DEBIAN/control
|
cat << EOF >> DEBIAN/control
|
||||||
Package: AntOS
|
Package: AntOS
|
||||||
Version: $TAG
|
Version: $TAG
|
||||||
Architecture: $ARCH
|
Architecture: $archname
|
||||||
Depends: libsqlite3 zlib1g libreadline libssl libjpeg-turbo8 libffi libvncserver
|
Depends: libsqlite3,zlib1g,libreadline,libssl,libjpeg-turbo8,libffi,libvncserver
|
||||||
Maintainer: Dany LE <mrsang@iohub.dev>
|
Maintainer: Dany LE <mrsang@iohub.dev>
|
||||||
Description: AntOS web-desktop
|
Description: AntOS web-desktop
|
||||||
All-in-one AntOS system for self hosting.
|
All-in-one AntOS system for self hosting.
|
||||||
|
Loading…
Reference in New Issue
Block a user