allow multi ressource in commande line

update version
This commit is contained in:
thomas 2023-03-30 21:58:28 +02:00
parent e270a50847
commit dbef6baf09
16 changed files with 74 additions and 56 deletions

View File

@ -1,39 +1,53 @@
#!/bin/bash #!/bin/bash
source ./lib/function.sh source ./lib/function.sh
case $1 in ACTION=$1
list) while [ ! -z $2 ]
ls ressources;; do
run) shift
if [ -e ressources/$2/debmaker ] case $ACTION in
list)
ls ressources
exit
;;
run)
if [ -e ressources/$1/debmaker ]
then then
. ressources/$2/debmaker . ressources/$1/debmaker
debmaker_run debmaker_run
if [ $? -ne 0 ]
then
echo erreur lors de la génération
exit
fi
else else
echo no $2 project echo no $1 project
fi fi
;; ;;
edit) edit)
if [ -e ressources/$2/debmaker ] if [ -e ressources/$1/debmaker ]
then then
nano ressources/$2/debmaker nano ressources/$1/debmaker
else else
echo no $2 project echo no $1 project
fi fi
;; ;;
chroot) chroot)
if [ -e ressources/$2/debmaker ] if [ -e ressources/$1/debmaker ]
then then
if [ -e cache/$2 ] if [ -e cache/$1 ]
then then
. ressources/$2/debmaker . ressources/$1/debmaker
debmaker_chroot debmaker_chroot
else else
echo no cache file echo no cache file
fi fi
else else
echo no $2 project echo no $1 project
fi fi
;; ;;
*) *)
echo debmaker [list] [chroot app] [run <app>] [edit <app>];; echo "debmaker [list] [chroot app] [run <app>] [edit <app>]"
esac exit
;;
esac
done

View File

@ -8,6 +8,7 @@ MOUNT_PATH=/mnt/debmaker
zdebmaker_getDep(){ zdebmaker_getDep(){
sudo sleep 0 sudo sleep 0
if [ $? -ne 0 ] ; then exit ; fi
[ -d cache ] || mkdir cache [ -d cache ] || mkdir cache
[ -d dist ] || mkdir dist [ -d dist ] || mkdir dist
[ -d ${DEBOOTSTRAP_DIR} ] || debmaker_debootstrapUpdate [ -d ${DEBOOTSTRAP_DIR} ] || debmaker_debootstrapUpdate

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=0.108.0-b.26 VERSION=0.108.0-b.31
APP=adguardhome APP=adguardhome
DEPOT=https://github.com/AdguardTeam/AdGuardHome.git DEPOT=https://github.com/AdguardTeam/AdGuardHome.git
GIT_VERSION=v${VERSION} GIT_VERSION=v${VERSION}

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=2023.1.1 VERSION=2023.3.1
APP=bitwarden-desktop APP=bitwarden-desktop
DEPOT=https://github.com/bitwarden/clients.git DEPOT=https://github.com/bitwarden/clients.git
GIT_VERSION=desktop-v${VERSION} GIT_VERSION=desktop-v${VERSION}

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=2.3.0 VERSION=2.3.21
APP=budibase APP=budibase
DEPOT=https://github.com/Budibase/budibase.git DEPOT=https://github.com/Budibase/budibase.git
GIT_VERSION=v${VERSION} GIT_VERSION=v${VERSION}

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=1.11.22 VERSION=1.11.26
APP=element-web APP=element-web
DEPOT=https://github.com/vector-im/element-web.git DEPOT=https://github.com/vector-im/element-web.git
GIT_VERSION=v${VERSION} GIT_VERSION=v${VERSION}

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=1.18.3 VERSION=1.19.0
APP=gitea APP=gitea
DEPOT=https://github.com/go-gitea/gitea.git DEPOT=https://github.com/go-gitea/gitea.git
GIT_VERSION=v${VERSION} GIT_VERSION=v${VERSION}

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=2.10.5 VERSION=2.11.1
APP=joplin-desktop APP=joplin-desktop
GIT_VERSION=v${VERSION} GIT_VERSION=v${VERSION}
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M) DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)

View File

@ -1,12 +1,12 @@
#!/bin/bash #!/bin/bash
VERSION=2.10.9 VERSION=2.10.11
APP=joplin-server APP=joplin-server
GIT_VERSION=server-v${VERSION} GIT_VERSION=server-v${VERSION}
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M) DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)
DEPOT=https://github.com/laurent22/joplin.git DEPOT=https://github.com/laurent22/joplin.git
DEBIAN_VERSION_CODENAME=bullseye DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=10 IMAGE_SIZE=12
STEP="base_package_upgrade envinit default_prebuild build makedeb" STEP="base_package_upgrade envinit default_prebuild build makedeb"

View File

@ -1,11 +1,12 @@
#!/bin/bash #!/bin/bash
VERSION=1.30.7 VERSION=1.30.11
VERSION=2.0.13
APP=kimai2 APP=kimai2
DEPOT=https://github.com/kevinpapst/kimai2.git DEPOT=https://github.com/kevinpapst/kimai2.git
GIT_VERSION=${VERSION} GIT_VERSION=${VERSION}
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M) DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye DEBIAN_VERSION_CODENAME=bookworm
IMAGE_SIZE=2 IMAGE_SIZE=2
PACKAGE_DEPENDENCY="composer php-zip php-gd php-intl php-xsl" PACKAGE_DEPENDENCY="composer php-zip php-gd php-intl php-xsl"

View File

@ -1,12 +1,12 @@
#!/bin/bash #!/bin/bash
VERSION=0.8.1 VERSION=0.8.3
APP=mautrix-whatsapp APP=mautrix-whatsapp
DEPOT=https://github.com/mautrix/whatsapp.git DEPOT=https://github.com/mautrix/whatsapp.git
GIT_VERSION=v${VERSION} GIT_VERSION=v${VERSION}
DEBIAN_VERSION_CODENAME=bullseye DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=4 IMAGE_SIZE=4
PACKAGE_DEPENDENCY="debhelper-compat libolm-dev build-essential" PACKAGE_DEPENDENCY="debhelper-compat libolm-dev build-essential devscripts"
main(){ main(){
echo deb http://deb.debian.org/debian bullseye-backports main > /etc/apt/sources.list.d/backports.list echo deb http://deb.debian.org/debian bullseye-backports main > /etc/apt/sources.list.d/backports.list
@ -19,7 +19,10 @@ main(){
makedeb(){ makedeb(){
cd /tmp/${APP}/ cd /tmp/${APP}/
rm /tmp/*.deb
cp -fr /tmp/src/debian /tmp/${APP} cp -fr /tmp/src/debian /tmp/${APP}
export DEBEMAIL=thomas@lgy.fr
dch -v ${VERSION}
dpkg-buildpackage -us -uc dpkg-buildpackage -us -uc
cp /tmp/*.deb /tmp/dist cp /tmp/*.deb /tmp/dist
} }

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=0.45.2.1 VERSION=0.46.0
APP=metabase APP=metabase
DEPOT=https://github.com/metabase/metabase.git DEPOT=https://github.com/metabase/metabase.git
GIT_VERSION=v$VERSION GIT_VERSION=v$VERSION

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=2022-06-14 VERSION=2023-03-22
APP=rss-bridge APP=rss-bridge
DEPOT=https://github.com/RSS-Bridge/rss-bridge.git DEPOT=https://github.com/RSS-Bridge/rss-bridge.git
GIT_VERSION=$VERSION GIT_VERSION=$VERSION

View File

@ -1,9 +1,8 @@
#!/bin/bash #!/bin/bash
APP=rustdesk-server APP=rustdesk-server
VERSION=1.1.7-2 VERSION=1.1.7-3
GIT_VERSION=$VERSION GIT_VERSION=$VERSION
GIT_VERSION=1.1.7
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M) DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=5 IMAGE_SIZE=5

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=1.27.0 VERSION=1.28.0
APP=vaultwarden APP=vaultwarden
GIT_VERSION=$VERSION GIT_VERSION=$VERSION
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M) DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=1.30.1 VERSION=1.30.2
APP=zigbee2mqtt APP=zigbee2mqtt
DEPOT=https://github.com/Koenkk/zigbee2mqtt.git DEPOT=https://github.com/Koenkk/zigbee2mqtt.git
GIT_VERSION=${VERSION} GIT_VERSION=${VERSION}