Mirror of Svelto.ECS because we're a fan of it
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
809B

  1. pkg_name := "Svelto.ECS"
  2. nuget_pack:
  3. make nuget_clean
  4. mkdir temp temp/bin temp/bin/debug temp/bin/release
  5. # Build for Debug
  6. dotnet pack /p:PackageVersion=1.0.0 -o temp/bin/debug com.sebaslab.svelto.ecs/Svelto.ECS.csproj -c Debug
  7. unzip "temp/bin/debug/${pkg_name}.1.0.0.nupkg" -d temp/bin/debug
  8. cp temp/bin/debug/lib/netstandard2.0/Svelto.ECS.dll temp/bin/debug
  9. # Build for Release
  10. dotnet pack /p:PackageVersion=1.0.0 -o temp/bin/release com.sebaslab.svelto.ecs/Svelto.ECS.csproj -c Release
  11. unzip "temp/bin/release/${pkg_name}.1.0.0.nupkg" -d temp/bin/release
  12. cp temp/bin/release/lib/netstandard2.0/Svelto.ECS.dll temp/bin/release
  13. # Compile into nuget
  14. dotnet pack /p:PackageVersion=2.0.0 -o . com.sebaslab.svelto.ecs/Svelto.ECS.csproj -c NugetPack
  15. # make nuget_clean
  16. nuget_clean:
  17. rm -rf temp