13 lines
517 B
Bash
Executable File
13 lines
517 B
Bash
Executable File
#!/bin/bash
|
|
#This is a helper to make the release linux zip. Mainly for testing outside of ci/cd
|
|
|
|
SCRIPTDIR=$( cd "$(dirname "$0")" ; pwd -P )
|
|
|
|
docker build $SCRIPTDIR/docker -t duplicati-debian
|
|
|
|
VERSION=`grep '<Version>' < $SCRIPTDIR/../../Executables/net5/Duplicati.Server/Duplicati.Server.csproj | sed 's/.*<Version>\(.*\)<\/Version>.*/\1/'`
|
|
VERSION=${VERSION//$'\r\n'}
|
|
echo "Building version: ($VERSION)"
|
|
|
|
export MSYS_NO_PATHCONV=1
|
|
docker run --rm -eVERSION=$VERSION -v $SCRIPTDIR/../../:/sources duplicati-debian |