2018-11-10 12:10:26 +00:00
|
|
|
$dist = $args[0]
|
|
|
|
$python = Split-Path((Get-Command python.exe).Path)
|
|
|
|
|
2021-01-16 10:48:31 +00:00
|
|
|
if (-not (Test-Path -Path 'jsdec' -PathType Container)) {
|
2024-02-13 14:54:02 +00:00
|
|
|
git clone https://github.com/rizinorg/jsdec.git --depth 1 --branch "v0.7.0"
|
2020-10-03 10:50:57 +00:00
|
|
|
}
|
2021-01-16 10:48:31 +00:00
|
|
|
cd jsdec
|
2024-02-13 14:54:02 +00:00
|
|
|
& 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'
|
2023-06-20 08:40:57 +00:00
|
|
|
$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
|
2023-06-20 08:40:57 +00:00
|
|
|
ls "$dist\lib\rizin\plugins\"
|
2021-11-23 18:25:20 +00:00
|
|
|
throw (New-Object System.IO.FileNotFoundException("File not found: $pathdll", $pathdll))
|
|
|
|
}
|
2023-06-20 08:40:57 +00:00
|
|
|
Remove-Item -Recurse -Force "$dist\lib\rizin\plugins\core_pdd.lib"
|