Skip to content

Commit 613d219

Browse files
author
psilo
committed
Added scripts to pack and push nuget package
1 parent 6b961fb commit 613d219

File tree

5 files changed

+32
-3
lines changed

5 files changed

+32
-3
lines changed

CollisionGrid/CollisionGrid.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
<Compile Include="Properties\AssemblyInfo.cs" />
5959
</ItemGroup>
6060
<ItemGroup>
61+
<None Include="CollisionGrid.nuspec" />
6162
<None Include="packages.config" />
6263
</ItemGroup>
6364
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

CollisionGrid/CollisionGrid.nuspec

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0"?>
2+
<package >
3+
<metadata>
4+
<id>$id$</id>
5+
<version>$version$</version>
6+
<title>$title$</title>
7+
<authors>Unterrainer Informatik OG Team</authors>
8+
<owners>Public Domain</owners>
9+
<licenseUrl>http://unlicense.org</licenseUrl>
10+
<projectUrl>https://github.com/UnterrainerInformatik/collisiongrid</projectUrl>
11+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
12+
<description>Narrow down collision candidates in a 2D environment by using a fixed-size grid.</description>
13+
<summary>
14+
When doing game development you've all come across a point when you'd like to do some collision-checks and that's usually the time when you realize that just checking all sprites against each other just doesn't cut it.
15+
The problem is that the number of checks grow very fast (N² for N sprites) when the number of your sprites grow.
16+
17+
So you somehow have to narrow down your collision-candidates. This piece of software does that for you. It does not do collision checking itself. It just tells you if a sprite is near enough to a second one to maybe collide which allows you to do a collision test for those two, or three, or five...
18+
</summary>
19+
<releaseNotes></releaseNotes>
20+
<copyright>Copyright 2016</copyright>
21+
<language>en-US</language>
22+
<tags>collision detection candidates 2D AABB</tags>
23+
</metadata>
24+
</package>

CollisionGrid/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[assembly: AssemblyTitle("CollisionGrid")]
99
[assembly: AssemblyDescription("")]
1010
[assembly: AssemblyConfiguration("")]
11-
[assembly: AssemblyCompany("")]
11+
[assembly: AssemblyCompany("Unterrainer Informatik OG")]
1212
[assembly: AssemblyProduct("CollisionGrid")]
1313
[assembly: AssemblyCopyright("Copyright © 2016")]
1414
[assembly: AssemblyTrademark("")]
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.0.0.0")]
35+
[assembly: AssemblyVersion("1.0.0.1")]
36+
[assembly: AssemblyFileVersion("1.0.0.1")]

nuget_pack.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
nuget pack -sym CollisionGrid\CollisionGrid.csproj
2+
rem When targeting release-builds, add: -Prop Configuration=Release

nuget_push.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
nuget push %1 -source https://www.nuget.org
2+
rem https://nuget.smbsrc.net/

0 commit comments

Comments
 (0)