25 lines
568 B
Bash
Executable File
25 lines
568 B
Bash
Executable File
#!/bin/bash
|
|
|
|
VERSION=10.4.00
|
|
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
|
|
APP=picapport
|
|
DEBIAN_VERSION_CODENAME=bookworm
|
|
IMAGE_SIZE=3
|
|
|
|
main(){
|
|
base_package_upgrade
|
|
makedeb
|
|
}
|
|
|
|
makedeb(){
|
|
PATH_DEB=/tmp/src/rootfs
|
|
|
|
DOWNLOAD_VERSION=$(echo $VERSION | sed 's/\./-/g')
|
|
|
|
mkdir -p $PATH_DEB/usr/lib/picapport/
|
|
wget "https://www.picapport.de/download/${DOWNLOAD_VERSION}/picapport-headless.jar" -O $PATH_DEB/usr/lib/picapport/picapport-headless.jar
|
|
|
|
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
|
|
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
|
|
}
|