Skip to content

Commit

Permalink
Provide a method to register gtk components
Browse files Browse the repository at this point in the history
For win frozen state after py2exe build.
  • Loading branch information
RoDuth committed Oct 21, 2017
1 parent dac0f49 commit 62b436f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
7 changes: 6 additions & 1 deletion doc/build_win.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand Down
6 changes: 5 additions & 1 deletion scripts/build_win.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions scripts/win_gtk.bat
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 62b436f

Please sign in to comment.