This commit is contained in:
thomas 2023-02-06 13:57:24 +01:00
parent 3a10b26136
commit 976a7c7078
11 changed files with 54 additions and 19 deletions

View file

@ -1,6 +1,6 @@
#!/bin/bash
VERSION=2.5.2
VERSION=2.5.3
APP=wallabag
GIT_VERSION=$VERSION
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
@ -8,24 +8,27 @@ DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=4
DEPOT=https://github.com/wallabag/wallabag.git
STEP="base_package_upgrade envinit prebuild build makedeb"
PACKAGE_DEPENDENCY="php-common php-xml php-json php-gd php-mbstring php-xml php-tidy php-curl php-tokenizer php-bcmath php-intl php-fpm unzip make yarn nodejs"
main(){
base_package_upgrade
envinit
get_git_source
build
makedeb
}
envinit() {
configure_depot_yarn
configure_depot_nodejs
apt-get install -y --no-install-recommends php-common php-xml php-json php-gd php-mbstring php-xml php-tidy php-curl php-tokenizer php-bcmath php-intl php-fpm unzip make yarn nodejs
}
prebuild(){
[ -e /tmp/${APP} ] && rm -fr /tmp/${APP}
git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/${APP}
cd /tmp/${APP}
wget https://getcomposer.org/download/2.2.13/composer.phar
install_package_dependency
cd /opt/
wget https://getcomposer.org/download/2.2.13/composer.phar -O /opt/composer.phar
}
build() {
cd /tmp/${APP}
SYMFONY_ENV=prod php composer.phar install --no-dev -o --prefer-dist -n --no-scripts
COMPOSER_ALLOW_SUPERUSER=1 SYMFONY_ENV=prod php /opt/composer.phar install --no-dev -o --prefer-dist -n --no-scripts
ENV=PROD make build
}