mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Deploy native library automatically
This commit is contained in:
1 parent
85b00bfaf3
commit
03c452c98c
4 files changed
+6
-13
No files matched your search
@@ -145,7 +145,7 @@ function Start-PSBuild
|
||||
|
||||
$Ext = if ($IsLinux) { "so" } elseif ($IsOSX) { "dylib" }
|
||||
$Native = "$PSScriptRoot/src/libpsl-native"
|
||||
$Lib = "$Native/src/libpsl-native.$Ext"
|
||||
$Lib = "$Top/libpsl-native.$Ext"
|
||||
Write-Verbose "Building $Lib"
|
||||
|
||||
try {
|
||||
@@ -158,7 +158,6 @@ function Start-PSBuild
|
||||
}
|
||||
|
||||
if (-Not (Test-Path $Lib)) { throw "Compilation of $Lib failed" }
|
||||
Copy-Item $Lib $Output
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user