mirror of
https://github.com/rizinorg/cutter.git
synced 2024-11-23 04:49:49 +00:00
4742003ff4
* Fix plugins paths for windows builds due recent changes in rizin * Disable openssl support for yara win * Disable use_sys_yara in linux/osx/win builds
17 lines
620 B
PowerShell
17 lines
620 B
PowerShell
$dist = $args[0]
|
|
$python = Split-Path((Get-Command python.exe).Path)
|
|
|
|
if (-not (Test-Path -Path 'libswift' -PathType Container)) {
|
|
git clone https://github.com/rizinorg/rz-libswift.git --depth 1 libswift
|
|
}
|
|
cd libswift
|
|
& meson.exe --buildtype=release --prefix=$dist build
|
|
ninja -C build install
|
|
$pathdll = "$dist\lib\rizin\plugins\swift.dll"
|
|
if(![System.IO.File]::Exists($pathdll)) {
|
|
type build/meson-logs/meson-log.txt
|
|
ls "$dist\lib\rizin\plugins\"
|
|
throw (New-Object System.IO.FileNotFoundException("File not found: $pathdll", $pathdll))
|
|
}
|
|
Remove-Item -Recurse -Force "$dist\lib\rizin\plugins\swift.lib"
|