BosServer/BosServerParser/dpkg/create-builds.sh
2026-08-02 23:33:31 +02:00

43 lines
1.8 KiB
Bash

#!/bin/bash
CSPROJFILE="BosServerParser.csproj"
VMAJOR=$(grep -e "<Version>" ../$CSPROJFILE | cut -d'>' -f 2 | cut -d'<' -f 1 | cut -d'.' -f 1)
VMINOR=$(grep -e "<Version>" ../$CSPROJFILE | cut -d'>' -f 2 | cut -d'<' -f 1 | cut -d'.' -f 2)
VBUILD=$(grep -e "<Version>" ../$CSPROJFILE | cut -d'>' -f 2 | cut -d'<' -f 1 | cut -d'.' -f 3)
mkdir -p ../deb
mkdir -p ../Builds
export NAME=bsparser
export MAINAINER="BlubbFish <dev@blubbfish.net>"
export VERSION="$VMAJOR.$VMINOR-$VBUILD"
export DESCRIPTION="bsparser parsed pocsag messages"
export DEPENDENCIES="dotnet-runtime-8.0 (>= 8.0.0)"
export LOGFILE="/var/log/bsparser.log"
export EXEPATH=BosServerParser.dll
export RUNNER=/usr/share/dotnet/dotnet
export COPYEXEC="../bin/Release/netcoreapp3.1/*.dll ../bin/Release/netcoreapp3.1/BosServerParser.deps.json ../bin/Release/netcoreapp3.1/BosServerParser.runtimeconfig.json"
export COPYCONFIG="../bin/Release/netcoreapp3.1/config-example/*.conf"
export CONFIGREPLACEASK=settings.conf
export DATADIR="/var/lib/bsparser"
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