Fix #1881 - Fix windows build (#1984)
Some checks failed
Code scanning / build (CodeQL-cpp) (push) Has been cancelled
Code scanning / build (CodeQL-javascript) (push) Has been cancelled
Code scanning / build (CodeQL-python) (push) Has been cancelled
Mixed linter and checks / changes (push) Has been cancelled
Mixed linter and checks / licenses (push) Has been cancelled
Mixed linter and checks / cmd_descs_yaml_check (push) Has been cancelled
Mixed linter and checks / clang-format (push) Has been cancelled
Mixed linter and checks / prettier (push) Has been cancelled
Mixed linter and checks / python (push) Has been cancelled
Some checks failed
Code scanning / build (CodeQL-cpp) (push) Has been cancelled
Code scanning / build (CodeQL-javascript) (push) Has been cancelled
Code scanning / build (CodeQL-python) (push) Has been cancelled
Mixed linter and checks / changes (push) Has been cancelled
Mixed linter and checks / licenses (push) Has been cancelled
Mixed linter and checks / cmd_descs_yaml_check (push) Has been cancelled
Mixed linter and checks / clang-format (push) Has been cancelled
Mixed linter and checks / prettier (push) Has been cancelled
Mixed linter and checks / python (push) Has been cancelled
This commit is contained in:
parent
d3795462db
commit
6ef55aa63a
1 changed files with 6 additions and 4 deletions
8
dist/windows/build_windows_installer.ps1
vendored
8
dist/windows/build_windows_installer.ps1
vendored
|
|
@ -3,13 +3,15 @@ $bits=$args[1]
|
|||
$end=$args.Length
|
||||
$meson_options=$args[2..$end]
|
||||
$scriptpath=$PSScriptRoot
|
||||
$builddir=$(Join-Path -Path $env:TEMP -ChildPath "build-win-installer")
|
||||
$installdir=$(Join-Path -Path $env:TEMP -ChildPath "rizin-win-installer")
|
||||
$builddir=$(Join-Path -Path $env:TEMP -ChildPath "build-win-installer-$name-$bits")
|
||||
$installdir=$(Join-Path -Path $env:TEMP -ChildPath "rizin-win-installer-$name-$bits")
|
||||
|
||||
pushd $PSScriptRoot\..\..
|
||||
|
||||
$version=$(python sys\version.py)
|
||||
echo $version
|
||||
echo $builddir
|
||||
echo $installdir
|
||||
|
||||
$env:Path += ";$env:ProgramFiles (x86)\Microsoft Visual Studio\Installer"
|
||||
$env:Path += ";$env:ProgramFiles\7-Zip"
|
||||
|
|
@ -18,7 +20,7 @@ $env:Path += ";$env:ProgramFiles (x86)\Inno Setup 6"
|
|||
dist\windows\vsdevenv.ps1 $bits
|
||||
|
||||
meson --buildtype=release --prefix=$installdir $builddir $meson_options
|
||||
ninja -C $builddir
|
||||
ninja -C $builddir -j1
|
||||
ninja -C $builddir install
|
||||
7z a dist\windows\Output\rizin-$name-$version.zip $installdir
|
||||
iscc dist\windows\rizin.iss /DRizinLocation=$installdir\* /DLicenseLocation=$PWD\COPYING.LESSER /DMyAppVersion=$version
|
||||
|
|
|
|||
Loading…
Reference in a new issue