diff --git a/doc/build_win.rst b/doc/build_win.rst index 7ac4eb53d..21a0678e2 100644 --- a/doc/build_win.rst +++ b/doc/build_win.rst @@ -75,7 +75,12 @@ Windows Vista should also work but has not been tested. Files``). If all you want is this frozen copy then you will not need to install NSIS and can run the above command with the '/f' switch (i.e. ``scripts\build_win.bat /f``). To start ghini.desktop double click - ``ghini.exe`` in explorer or (create a shortcut to it). + ``ghini.exe`` in explorer (or create a shortcut to it). If you have issues + with PyGTK not displaying correctly you need to run the script + ``win_gtk.bat`` from the ``dist`` folder to set up paths correctly. Runing + ``build_win /f`` will place this script in the dist folder for you. You + will only need to run this once each time the location of the folder + changes. There after ``ghini.exe`` will run as expected. In future if you wish to build further installers just open a command prompt and enter:: diff --git a/scripts/build_win.bat b/scripts/build_win.bat index 8734a456a..792562928 100644 --- a/scripts/build_win.bat +++ b/scripts/build_win.bat @@ -33,7 +33,11 @@ ECHO building frozen python setup.py py2exe REM Freeze only? -if "%1"=="/f" GOTO :EOF +if "%1"=="/f" GOTO SKIP_NSIS ECHO building NSIS installer python setup.py nsis +GOTO :EOF + +:SKIP_NSIS +copy scripts\win_gtk.bat dist diff --git a/scripts/win_gtk.bat b/scripts/win_gtk.bat new file mode 100644 index 000000000..0c43cd908 --- /dev/null +++ b/scripts/win_gtk.bat @@ -0,0 +1,4 @@ +gtk\bin\pango-querymodules.exe > gtk\etc\pango\pango.modules' +gtk\bin\gtk-query-immodules-2.0.exe > gtk\etc\gtk-2.0\gtk.immodules' +gtk\bin\gdk-pixbuf-query-loaders.exe > gtk\etc\gtk-2.0\gdk-pixbuf.loaders' +gtk\bin\gdk-pixbuf-query-loaders.exe > gtk\lib\gdk-pixbuf-2.0\2.10.0\loaders.cache'