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 "$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"
|
||||
|
||||
DIR="build/$TAG"
|
||||
FILE="AntOS_$ARCH.deb"
|
||||
NAME="AntOS_${TAG}_${ARCH}"
|
||||
FILE="AntOS_${archname}.deb"
|
||||
NAME="AntOS_${TAG}_${archname}"
|
||||
|
||||
[ -d "$NAME" ] && rm -rf "$NAME"
|
||||
mkdir $NAME
|
||||
@ -27,8 +51,8 @@ mkdir DEBIAN
|
||||
cat << EOF >> DEBIAN/control
|
||||
Package: AntOS
|
||||
Version: $TAG
|
||||
Architecture: $ARCH
|
||||
Depends: libsqlite3 zlib1g libreadline libssl libjpeg-turbo8 libffi libvncserver
|
||||
Architecture: $archname
|
||||
Depends: libsqlite3,zlib1g,libreadline,libssl,libjpeg-turbo8,libffi,libvncserver
|
||||
Maintainer: Dany LE <mrsang@iohub.dev>
|
||||
Description: AntOS web-desktop
|
||||
All-in-one AntOS system for self hosting.
|
||||
|
Loading…
Reference in New Issue
Block a user