cutter/dist/bundle_jsdec.ps1

18 lines
657 B
PowerShell
Raw Normal View History

$dist = $args[0]
$python = Split-Path((Get-Command python.exe).Path)
if (-not (Test-Path -Path 'jsdec' -PathType Container)) {
git clone https://github.com/rizinorg/jsdec.git --depth 1 --branch "v0.7.0"
}
cd jsdec
& meson.exe --buildtype=release --prefix="$dist" build
2019-09-25 13:59:23 +00:00
ninja -C build install
2021-11-23 18:25:20 +00:00
$ErrorActionPreference = 'Stop'
$pathdll = "$dist\lib\rizin\plugins\core_pdd.dll"
2021-11-23 18:25:20 +00:00
if(![System.IO.File]::Exists($pathdll)) {
type build\meson-logs\meson-log.txt
ls "$dist\lib\rizin\plugins\"
2021-11-23 18:25:20 +00:00
throw (New-Object System.IO.FileNotFoundException("File not found: $pathdll", $pathdll))
}
Remove-Item -Recurse -Force "$dist\lib\rizin\plugins\core_pdd.lib"