New method

This commit is contained in:
thomas 2022-08-17 20:35:16 +02:00
parent 590209a9ba
commit 8da4693b9f
28 changed files with 111 additions and 330 deletions

View file

@ -1,30 +1,15 @@
#!/bin/bash
VERSION=0.108.0-b.11
[ -e ./lib/function.sh ] && source ./lib/function.sh
VERSION=0.108.0-b.12
APP=adguardhome
DEPOT=https://github.com/AdguardTeam/AdGuardHome.git
GIT_VERSION=v${VERSION}
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=4
STEP="envinit prebuild build makedeb"
PACKAGE_DEPENDENCY="build-essential nodejs yarn"
envinit() {
configure_depot_yarn
configure_depot_nodejs
apt-get update
apt-get dist-upgrade -y
apt install -y --no-install-recommends build-essential git wget ca-certificates dpkg fakeroot nodejs yarn
install_go
}
prebuild(){
[ -e /tmp/${APP} ] && rm -fr /tmp/${APP}
git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/${APP}
}
STEP="base_package_upgrade configure_depot_yarn configure_depot_nodejs install_package_dependency install_go get_git_source build makedeb"
build() {
cd /tmp/${APP}