Adding native dlls in custom build step
This commit is contained in:
parent
9e4bc60205
commit
1f420837f5
|
|
@ -23,4 +23,4 @@ CALL packages\KoreBuild\build\kvm install default -svrc50 -x86
|
|||
|
||||
:run
|
||||
CALL packages\KoreBuild\build\kvm use default -svr50 -x86
|
||||
packages\Sake\tools\Sake.exe -I packages\KoreBuild\build -f makefile.shade %*
|
||||
packages\Sake\tools\Sake.exe -I build -I packages\KoreBuild\build -f makefile.shade %*
|
||||
|
|
|
|||
|
|
@ -0,0 +1,15 @@
|
|||
use assembly="System.IO.Compression.FileSystem, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
|
||||
use assembly="System.IO.Compression, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
|
||||
use namespace="System.IO"
|
||||
use namespace="System.IO.Compression"
|
||||
use namespace="System.Net"
|
||||
|
||||
#add-files target="compile"
|
||||
var each='var nupkgFile in Files.Include("artifacts\\build\\Microsoft.AspNet.Server.Kestrel.*.nupkg").Where(x=>!x.EndsWith("symbols.nupkg"))'
|
||||
log info='Adding content to ${nupkgFile}'
|
||||
var archive='${ZipFile.Open(nupkgFile, ZipArchiveMode.Update)}'
|
||||
@{
|
||||
archive.CreateEntryFromFile("src/Microsoft.AspNet.Server.Kestrel/amd64/libuv.dll", "amd64/libuv.dll");
|
||||
archive.CreateEntryFromFile("src/Microsoft.AspNet.Server.Kestrel/x86/libuv.dll", "x86/libuv.dll");
|
||||
archive.Dispose();
|
||||
}
|
||||
|
|
@ -5,3 +5,4 @@ var AUTHORS='Microsoft'
|
|||
|
||||
use-standard-lifecycle
|
||||
k-standard-goals
|
||||
custom-goals
|
||||
|
|
|
|||
Loading…
Reference in New Issue