Skip to content

Commit 5a099a7

Browse files
committed
Refine build scripts.
1 parent ac3f02f commit 5a099a7

5 files changed

Lines changed: 17 additions & 58 deletions

File tree

MsgPack.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<metadata>
44
<id>MsgPack.Cli</id>
55
<title>MessagePack for CLI</title>
6-
<version>0.5.3</version>
6+
<version>0.5.4</version>
77
<authors>FUJIWARA, Yusuke</authors>
88
<owners>FUJIWARA, Yusuke</owners>
99
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
@@ -12,7 +12,7 @@
1212
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1313
<description>MessagePack is fast, compact, and interoperable binary serialization format.
1414
This package provides MessagePack serialization/deserialization APIs. This pacakge also supports Mono, Xamarin and Unity3D.</description>
15-
<releaseNotes>This release includes: Changing MessagePackObject behavior which is unpacked from new binary typed value. MessagePackMember.Name property to tweak keys of serialized MessagePack maps.</releaseNotes>
15+
<releaseNotes>This release improves Unity support tooling.</releaseNotes>
1616
<copyright>Copyright 2010-2014 FUJIWARA, Yusuke, all rights reserved.</copyright>
1717
<tags>Serialization MessagePack MsgPack Formatter Binary Serializer Fast Xamarin Unity3D</tags>
1818
<dependencies />

Pack.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@powershell .\pack.ps1

Pack.ps1

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,19 @@ $xamarinFile = New-Object IO.FileInfo( ".\bin\monotouch\MsgPack.dll" )
2424
if( ( $winFile.LastWriteTime - $xamarinFile.LastWriteTime ).Days -ne 0 )
2525
{
2626
# It might that I forgot building in xamarin when winRT build and xamarin build last write time are differ more than 1day.
27-
Write-Error "Last write times between WinRT binary and Xamarin library are very differ. Do you forget to place latest Xamarin build (on Mac) or latest WinRT build (on Windows) on ./bin ?"
28-
return
27+
#Write-Error "Last write times between WinRT binary and Xamarin library are very differ. Do you forget to place latest Xamarin build (on Mac) or latest WinRT build (on Windows) on ./bin ?"
28+
#return
2929
}
3030

31-
.\.nuget\nuget.exe pack $nuspec
31+
.\.nuget\nuget.exe pack $nuspec
32+
33+
# Unity
34+
Remove-Item .\MsgPack-CLI -Recurse
35+
Copy-Item .\bin\ .\MsgPack-CLI\ -Recurse
36+
[Reflection.Assembly]::LoadWithPartialName( "System.IO.Compression.FileSystem" ) | Out-Null
37+
# 'latest' should be rewritten with semver manually.
38+
Remove-Item .\MsgPack.Cli.latest.zip
39+
[IO.Compression.ZipFile]::CreateFromDirectory( ".\MsgPack-CLI", ".\MsgPack.Cli.latest.zip" )
40+
Remove-Item .\MsgPack-CLI -Recurse
41+
42+
Write-Host "Package creation finished. Ensure AssemblyInfo.cs is updated and .\SetFileVersions.ps1 was executed."

PackUnity.ps1

Lines changed: 0 additions & 26 deletions
This file was deleted.

PackUnity.sh

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)