cutter/dist/bundle_jsdec.ps1

17 lines
732 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.3.1
}
cd jsdec
2021-11-23 18:25:20 +00:00
& meson.exe --buildtype=release -Dc_args=-DDUK_USE_DATE_NOW_WINDOWS -Djsc_folder=".." -Drizin_plugdir=lib\plugins --prefix=$dist --libdir=lib\plugins --datadir=lib\plugins p 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\plugins\core_pdd.dll"
if(![System.IO.File]::Exists($pathdll)) {
type build\meson-logs\meson-log.txt
throw (New-Object System.IO.FileNotFoundException("File not found: $pathdll", $pathdll))
}
2020-08-08 15:43:43 +00:00
Remove-Item -Recurse -Force $dist\lib\plugins\core_pdd.lib