[GNC-dev] How to specify args to setup-mingw64.ps1
Chris Good
goodchris96 at gmail.com
Sat Jan 15 23:55:56 EST 2022
-----Original Message-----
From: john <jralls at ceridwen.us>
Sent: Sunday, 16 January 2022 3:36 PM
To: Chris Good <goodchris96 at gmail.com>
Cc: gnucash-devel at gnucash.org
Subject: Re: [GNC-dev] How to specify args to setup-mingw64.ps1
> On Jan 15, 2022, at 5:58 PM, Chris Good <goodchris96 at gmail.com> wrote:
>
> Ignoring for the moment the fact that John Ralls says the Windows 64
> bit build is currently broken because the latest MSYS2 updates require
> a new webkit build and he hasn't yet done the 64-bit one.
>
> How would I specify a non default target_dir and a 64-bit build?
>
> I tried many things but had to resort to editing the script to plug
> the values I want in the CmdLetBinding section.
>
> For example:
>
> .\setup-mingw64.ps1 -target_dir "e:\Data\GnuCash\gcdev64"
> -download_dir "e:\Data\GnuCash\gcdev64\downloads" -x86_64 "$true"
>
> fails with
> "Failed to install MSys2, aborting."
> because $bash_path = True\\usr\\bin\\bash.exe
>
> I added after line 76: $bash_path = "$msys2_root\\usr\\bin\\bash.exe"
> write-host "target_dir=$target_dir"
> write-host "download_dir=$download_dir"
> write-host "msys2_root=$msys2_root"
> write-host "x86_64=$x86_64"
> write-host "preferred_mirror=$preferred_mirror"
>
> .\setup-mingw64.ps1 -target_dir "e:\Data\GnuCash\gcdev64"
> -download_dir "e:\Data\GnuCash\gcdev64\downloads" -x86_64 "$true"
>
> target_dir=e:\Data\GnuCash\gcdev64
> download_dir=e:\Data\GnuCash\gcdev64\downloads
> msys2_root=True ???
> x86_64=True
> preferred_mirror=http://repo.msys2.org
>
> .\setup-mingw64.ps1 -target_dir "e:\Data\GnuCash\gcdev64" -x86_64 "$true"
> target_dir=e:\Data\GnuCash\gcdev64
> download_dir=True ???
> msys2_root=e:\Data\GnuCash\gcdev64\\msys2
> x86_64=True
> preferred_mirror=http://repo.msys2.org
Don't quote $true, it's a PowerShell constant. If you quote it it turns into
a string and doesn't work.
Regards,
John Ralls
Hi John,
Also seems to be something else wrong:
PS E:\data\GnuCash\gcdev64> .\setup-mingw64.ps1 -target_dir
"e:\Data\GnuCash\gcdev64" -x86_64 $true
target_dir=e:\Data\GnuCash\gcdev64
download_dir=True ???
msys2_root=e:\Data\GnuCash\gcdev64\\msys2
x86_64=True
preferred_mirror=http://repo.msys2.org
Regards, Chris Good
More information about the gnucash-devel
mailing list