Conflicts: deps/hiredis/async.c deps/hiredis/examples/example-ae.c deps/hiredis/hiredis.c deps/hiredis/hiredis.h deps/hiredis/net.c deps/hiredis/net.h deps/jemalloc/COPYING deps/jemalloc/INSTALL deps/jemalloc/README deps/jemalloc/bin/pprof deps/jemalloc/config.guess deps/jemalloc/config.sub deps/jemalloc/include/jemalloc/internal/ckh.h deps/jemalloc/include/jemalloc/internal/hash.h deps/jemalloc/include/jemalloc/internal/prng.h deps/jemalloc/include/jemalloc/internal/ql.h deps/jemalloc/include/jemalloc/internal/qr.h deps/jemalloc/include/jemalloc/internal/quarantine.h deps/jemalloc/include/jemalloc/internal/rb.h deps/jemalloc/include/jemalloc/internal/tcache.h deps/jemalloc/include/jemalloc/internal/tsd.h deps/jemalloc/include/jemalloc/internal/util.h deps/jemalloc/src/bitmap.c deps/jemalloc/src/ckh.c deps/jemalloc/src/quarantine.c deps/jemalloc/src/tsd.c deps/jemalloc/test/integration/aligned_alloc.c deps/jemalloc/test/unit/bitmap.c src/aof.c src/redis-cli.c src/redis.h src/util.c
30 lines
1.3 KiB
PowerShell
30 lines
1.3 KiB
PowerShell
[Reflection.Assembly]::LoadWithPartialName("System.IO.Compression.FileSystem") | Out-Null
|
|
|
|
$Compression = [System.IO.Compression.CompressionLevel]::Optimal
|
|
$IncludeBaseDirectory = $false
|
|
|
|
$CurDir = [System.IO.Directory]::GetCurrentDirectory()
|
|
$PubDir = [System.IO.Path]::Combine($CurDir, "x64\Release\pub" )
|
|
$SourceDir = [System.IO.Path]::Combine($CurDir, "x64\Release" )
|
|
$DocumentationDir = [System.IO.Path]::Combine($CurDir, "setups\documentation" )
|
|
$Destination = [System.IO.Path]::Combine($CurDir, "..\bin\Release\redis-2.8.12.zip" )
|
|
|
|
[System.IO.Directory]::CreateDirectory($PubDir) | Out-Null
|
|
|
|
ForEach( $file in [System.IO.Directory]::EnumerateFiles($PubDir) ) {
|
|
[System.IO.File]::Delete($file)
|
|
}
|
|
|
|
ForEach( $file in [System.IO.Directory]::EnumerateFiles($SourceDir, "*.exe" ) ) {
|
|
[System.IO.File]::Copy($file, [System.IO.Path]::Combine( $PubDir, [System.IO.Path]::GetFileName($file) ) )
|
|
}
|
|
|
|
ForEach( $file in [System.IO.Directory]::EnumerateFiles($DocumentationDir, "*.*" ) ) {
|
|
[System.IO.File]::Copy($file, [System.IO.Path]::Combine( $PubDir, [System.IO.Path]::GetFileName($file) ) )
|
|
}
|
|
|
|
If ( [System.IO.File]::Exists($Destination) ) {
|
|
[System.IO.File]::Delete($Destination)
|
|
}
|
|
|
|
[System.IO.Compression.ZipFile]::CreateFromDirectory($PubDir,$Destination,$Compression,$IncludeBaseDirectory) |