From 52de337df846ccc8e20f83dc9b1bffccbe55fd51 Mon Sep 17 00:00:00 2001 From: nulltoken Date: Thu, 20 Oct 2011 18:01:30 +0200 Subject: Change the tree structure into which libgit2 binaries are located in order to be able to dynamically bind against 32 or 64 bits version of libgit2 Should partially fix issue #70. --- nuget.package/LibGit2Sharp.nuspec | 3 +-- nuget.package/Tools/GetLibGit2SharpPostBuildCmd.ps1 | 7 ++++++- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'nuget.package') diff --git a/nuget.package/LibGit2Sharp.nuspec b/nuget.package/LibGit2Sharp.nuspec index 29fac7f2..b32710a3 100644 --- a/nuget.package/LibGit2Sharp.nuspec +++ b/nuget.package/LibGit2Sharp.nuspec @@ -12,8 +12,7 @@ libgit2 git wrapper bindings API dvcs vcs - - + diff --git a/nuget.package/Tools/GetLibGit2SharpPostBuildCmd.ps1 b/nuget.package/Tools/GetLibGit2SharpPostBuildCmd.ps1 index 35cf68ef..6d4a41fa 100644 --- a/nuget.package/Tools/GetLibGit2SharpPostBuildCmd.ps1 +++ b/nuget.package/Tools/GetLibGit2SharpPostBuildCmd.ps1 @@ -3,6 +3,11 @@ $path = $installPath.Replace($solutionDir, "`$(SolutionDir)") $NativeAssembliesDir = Join-Path $path "NativeBinaries" $x86 = $(Join-Path $NativeAssembliesDir "x86\*.*") +$x64 = $(Join-Path $NativeAssembliesDir "amd64\*.*") $LibGit2SharpPostBuildCmd = " -xcopy /s /y `"$x86`" `"`$(TargetDir)`"" \ No newline at end of file +if not exist `"`$(TargetDir)NativeBinaries`" md `"`$(TargetDir)NativeBinaries`" +if not exist `"`$(TargetDir)NativeBinaries\x86`" md `"`$(TargetDir)NativeBinaries\x86`" +xcopy /s /y `"$x86`" `"`$(TargetDir)NativeBinaries\x86`" +if not exist `"`$(TargetDir)NativeBinaries\amd64`" md `"`$(TargetDir)NativeBinaries\amd64`" +xcopy /s /y `"$x64`" `"`$(TargetDir)NativeBinaries\amd64`"" \ No newline at end of file -- cgit v1.2.3