Skip to content

Commit

Permalink
Fix #1881 - Fix windows build (#1984)
Browse files Browse the repository at this point in the history
  • Loading branch information
wargio authored and XVilka committed Nov 17, 2021
1 parent d379546 commit 6ef55aa
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions dist/windows/build_windows_installer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -18,12 +20,12 @@ $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

rm -r $builddir
rm -r $installdir

popd
popd

0 comments on commit 6ef55aa

Please sign in to comment.