-
-
Notifications
You must be signed in to change notification settings - Fork 95
/
Copy pathMakefile
22 lines (17 loc) · 809 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
pkg_name := "Svelto.ECS"
nuget_pack:
make nuget_clean
mkdir temp temp/bin temp/bin/debug temp/bin/release
# Build for Debug
dotnet pack /p:PackageVersion=1.0.0 -o temp/bin/debug com.sebaslab.svelto.ecs/Svelto.ECS.csproj -c Debug
unzip "temp/bin/debug/${pkg_name}.1.0.0.nupkg" -d temp/bin/debug
cp temp/bin/debug/lib/netstandard2.0/Svelto.ECS.dll temp/bin/debug
# Build for Release
dotnet pack /p:PackageVersion=1.0.0 -o temp/bin/release com.sebaslab.svelto.ecs/Svelto.ECS.csproj -c Release
unzip "temp/bin/release/${pkg_name}.1.0.0.nupkg" -d temp/bin/release
cp temp/bin/release/lib/netstandard2.0/Svelto.ECS.dll temp/bin/release
# Compile into nuget
dotnet pack /p:PackageVersion=2.0.0 -o . com.sebaslab.svelto.ecs/Svelto.ECS.csproj -c NugetPack
# make nuget_clean
nuget_clean:
rm -rf temp