-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmake-nuget.sh
executable file
·39 lines (34 loc) · 1.15 KB
/
make-nuget.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh
set -e
cd "$(dirname "$0")" || exit 1
VERSION=$1
if [ -z "$VERSION" ]; then
echo "Missing version on command line!" >&2
exit 1
fi
#for PROJECT in Activout.DatabaseClient/Activout.DatabaseClient.csproj Activout.DatabaseClient/Activout.DatabaseClient.csproj
pack()
{
_CSPROJ="$1"
_TITLE="$2"
_DESCRIPTION="$3"
dotnet pack \
-p:Title="$_TITLE" \
-p:Description="$_DESCRIPTION" \
-p:PackageVersion="$VERSION" \
-p:PackageLicenseExpression="MIT" \
-p:PackageProjectUrl="https://github.com/twogood/Activout.DatabaseClient" \
-p:RepositoryType="git" \
-p:RepositoryUrl="https://github.com/twogood/Activout.DatabaseClient.git" \
--configuration=Release \
--include-symbols \
--include-source \
"$_CSPROJ"
ls -1 "$(dirname "$_CSPROJ")"/bin/Release/*."$VERSION".*nupkg
}
pack "Activout.DatabaseClient/Activout.DatabaseClient.csproj" \
"Activout Database Client" \
"Create a Database Access Object (DAO) defining the C# interface you want and writing the SQL query."
pack "Activout.DatabaseClient.Dapper/Activout.DatabaseClient.Dapper.csproj" \
"Activout Database Client - Dapper backend" \
"Dapper Backend for Activout.DatabaseClient."