Switch the dotnet-publish to use 7z so it created a proper zip file usable on linux.
This commit is contained in:
parent
c4a7c1e5ed
commit
a15c2473c5
1 changed files with 3 additions and 3 deletions
|
|
@ -23,10 +23,10 @@ dotnet publish -c Release -o ..\out
|
|||
cd ..
|
||||
cd out
|
||||
|
||||
Add-Type -Assembly System.IO.Compression.FileSystem
|
||||
$compressionLevel = [System.IO.Compression.CompressionLevel]::Optimal
|
||||
$location = Get-Location
|
||||
[System.IO.Compression.ZipFile]::CreateFromDirectory($location, "$location/../RealDebridClient.zip", $compressionLevel, $false)
|
||||
[string]$Zip = "C:\Program Files\7-Zip\7z.exe"
|
||||
[array]$arguments = "a", "-tzip", "-y", "$location/../RealDebridClient.zip", $location
|
||||
& $Zip $arguments
|
||||
|
||||
cd ..
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue