Re: [GNC-dev] How to specify args to setup-mingw64.ps1
john <[email protected]>
| Newsgroups | gmane.comp.gnome.apps.gnucash.devel |
|---|---|
| Message-ID | <[email protected]> |
> On Jan 15, 2022, at 5:58 PM, Chris Good <[email protected]> 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