gnucash-on-windows master: Copy the gtk settings schemas to target_dir and recompile.

John Ralls jralls at code.gnucash.org
Mon Oct 16 18:01:34 EDT 2017


Updated	 via  https://github.com/Gnucash/gnucash-on-windows/commit/df4a3ea0 (commit)
	from  https://github.com/Gnucash/gnucash-on-windows/commit/72d6443a (commit)



commit df4a3ea04a8f52bedf5982ab1a9b2b8984cf867e
Author: John Ralls <jralls at ceridwen.us>
Date:   Mon Oct 16 15:01:09 2017 -0700

    Copy the gtk settings schemas to target_dir and recompile.
    
    Schemas are required by GtkFileSelector, crashes if they're not in the bundle.

diff --git a/bundle-mingw64.ps1 b/bundle-mingw64.ps1
index f3f039a..2f26ad0 100644
--- a/bundle-mingw64.ps1
+++ b/bundle-mingw64.ps1
@@ -125,7 +125,6 @@ $proc = bash-command("sed  < $issue_in > $issue_out \
   -e ""s#@GNUCASH_MICRO_VERSION@#$micro_version#g"" \
   -e ""s#@GC_WIN_REPOS_DIR@#$script#g"" ")
 
-
 $date = get-date -format "yyyy-MM-dd"
 $setup_result =  "$target_dir\gnucash-$package_version-setup.exe"
 $final_file = ""
@@ -138,6 +137,14 @@ else {
   $final_file = "$target_dir\gnucash-$package_version-setup.exe"
 }
 
+$mingw_dir = "$root_dir\msys2\mingw$mingw_ver"
+$schema_dir = "share\glib-2.0\schemas"
+$target_schema_dir = "$target_dir\inst\$schema_dir"
+copy-item $mingw_dir\$schema_dir\org.gtk.Settings.* $target_schema_dir
+$target_schema_unix = make-unixpath -path $target_schema_dir
+$schema_compiler = make-unixpath -path "$mingw_dir\bin\glib-compile-schemas"
+bash-command("$schema_compiler $target_schema_unix")
+
 write-host "Running Inno Setup to create $final_file."
 
 if (test-path -path $setup_result) {



Summary of changes:
 bundle-mingw64.ps1 | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)



More information about the gnucash-changes mailing list