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.

24 lines
1.2KB

  1. pkg_name := "Svelto.ECS"
  2. nuget_pack:
  3. make nuget_clean
  4. mkdir temp temp/com.sebaslab.svelto.common temp/com.sebaslab.svelto.ecs temp/bin temp/bin/debug temp/bin/release
  5. dotnet new sln -n ${pkg_name} -o temp/
  6. cp -r Svelto.Common/* temp/com.sebaslab.svelto.common
  7. cp -r Svelto.ECS/* temp/com.sebaslab.svelto.ecs
  8. dotnet sln temp/${pkg_name}.sln add temp/com.sebaslab.svelto.common/Svelto.Common.csproj
  9. dotnet sln temp/${pkg_name}.sln add temp/com.sebaslab.svelto.ecs/Svelto.ECS.csproj
  10. # Build for Debug
  11. dotnet pack /p:Version=1.0.0 -o temp/bin/debug temp/com.sebaslab.svelto.ecs/Svelto.ECS.csproj -c Debug
  12. unzip temp/bin/debug/Svelto.ECS.1.0.0.nupkg -d temp/bin/debug
  13. cp temp/bin/debug/lib/netstandard2.0/Svelto.ECS.dll temp/bin/debug
  14. # Build for Release
  15. dotnet pack /p:Version=1.0.0 -o temp/bin/release temp/com.sebaslab.svelto.ecs/Svelto.ECS.csproj -c Release
  16. unzip temp/bin/release/Svelto.ECS.1.0.0.nupkg -d temp/bin/release
  17. cp temp/bin/release/lib/netstandard2.0/Svelto.ECS.dll temp/bin/release
  18. # Compile into nuget
  19. dotnet pack /p:PackageVersion=2.0.0 -o . temp/com.sebaslab.svelto.ecs/Svelto.ECS.csproj -c Custom
  20. make nuget_clean
  21. nuget_clean:
  22. rm -rf upm-preparator temp