[GNC-dev] How to specify args to setup-mingw64.ps1

Chris Good goodchris96 at gmail.com
Sat Jan 15 20:58:54 EST 2022


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 

 

Regards,

Chris Good

 



More information about the gnucash-devel mailing list