#!/bin/bash CSPROJFILE="BosServerTelegram.csproj" VMAJOR=$(grep -e "" ../$CSPROJFILE | cut -d'>' -f 2 | cut -d'<' -f 1 | cut -d'.' -f 1) VMINOR=$(grep -e "" ../$CSPROJFILE | cut -d'>' -f 2 | cut -d'<' -f 1 | cut -d'.' -f 2) VBUILD=$(grep -e "" ../$CSPROJFILE | cut -d'>' -f 2 | cut -d'<' -f 1 | cut -d'.' -f 3) mkdir -p ../deb mkdir -p ../Builds export NAME=bstelegram export MAINAINER="BlubbFish " export VERSION="$VMAJOR.$VMINOR-$VBUILD" export DESCRIPTION="bstelegram sends parsed pocsag messages to to telegram chat" export DEPENDENCIES="dotnet-runtime-8.0 (>= 8.0.0)" export LOGFILE="/var/log/bstelegram.log" export EXEPATH=BosServerTelegram.dll export RUNNER=/usr/share/dotnet/dotnet export COPYEXEC="../bin/Release/netcoreapp3.1/*.dll ../bin/Release/netcoreapp3.1/BosServerTelegram.deps.json ../bin/Release/netcoreapp3.1/BosServerTelegram.runtimeconfig.json" export COPYCONFIG="../bin/Release/netcoreapp3.1/config-example/*.conf" export CONFIGREPLACEASK=settings.conf cd ../deb export PLATFORM=armhf curl -s https://git.blubbfish.net/vs_utils/CI-Scripts/raw/branch/master/deb/control-build.sh | bash curl -s https://git.blubbfish.net/vs_utils/CI-Scripts/raw/branch/master/deb/pre-post-build.sh | bash curl -s https://git.blubbfish.net/vs_utils/CI-Scripts/raw/branch/master/deb/service-build.sh | bash curl -s https://git.blubbfish.net/vs_utils/CI-Scripts/raw/branch/master/deb/logrotate-build.sh | bash curl -s https://git.blubbfish.net/vs_utils/CI-Scripts/raw/branch/master/deb/build-deb.sh | bash export PLATFORM=amd64 curl -s https://git.blubbfish.net/vs_utils/CI-Scripts/raw/branch/master/deb/control-build.sh | bash curl -s https://git.blubbfish.net/vs_utils/CI-Scripts/raw/branch/master/deb/build-deb.sh | bash cd .. rm deb -rf cp Builds/* ../../Builds/ rm Builds -rf