After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 787176 - setup-mingw64.ps1 (a powershell script) is not allowed to run by default on Windows
setup-mingw64.ps1 (a powershell script) is not allowed to run by default on W...
Status: RESOLVED OBSOLETE
Product: GnuCash
Classification: Other
Component: Build system
git-master
Other Windows
: Normal minor
: future
Assigned To: gnucash-core-maint
gnucash-core-maint
Depends on:
Blocks:
 
 
Reported: 2017-09-02 16:22 UTC by Geert Janssens
Modified: 2018-06-29 23:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Geert Janssens 2017-09-02 16:22:11 UTC
Windows (or PowerShell) has an Execution Policy that's by default set to "Restricted". This prevents any (unsigned?) powershell script from running, so our new bootstrap script is not allowed to run by default. This creates a first hurdle for potentially interested Windows developers.

This bug is mostly a reminder to investigate whether we can improve this experience.

Some reading that may help to find a more elegant solution:
* https://stackoverflow.com/questions/10635/why-are-my-powershell-scripts-not-running
One of the solutions on this page suggests creating a cmd file that invokes powershell with executionpolicy set to "bypass". So this solution would have us create a wrapper cmd file around setup-mingw64.ps1 and advertise that one instead.

* https://blog.netspi.com/15-ways-to-bypass-the-powershell-execution-policy/
Sums a whole list of other ways to bypass the execution policy. Perhaps there's a more elegant solution to be distilled from that info.
Comment 1 John Ralls 2018-06-29 23:58:59 UTC
GnuCash bug tracking has moved to a new Bugzilla host. The new URL for this bug is https://bugs.gnucash.org/show_bug.cgi?id=787176. Please continue processing the bug there and please update any external references or bookmarks.