Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Part of #23
- Loading branch information
Showing
8 changed files
with
132 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ data/patterns/*.hearing-impaired | |
data/patterns/*.line-break | ||
dist | ||
locale | ||
winsetup.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Releasing a New Windows Installer | ||
================================= | ||
|
||
* Install the latest 32-bit Python 3.4.x | ||
* Install dependencies with PIP | ||
|
||
``` | ||
cd C:\Python34\Scripts | ||
pip3 install chardet | ||
pip3 install cx_Freeze | ||
pip3 install pyenchant | ||
pip3 install pypiwin32 | ||
``` | ||
|
||
* Install PyGObject all-in-one for Windows (pygi-aio) | ||
- GTK+, GtkSpell 3, iso-codes and GIR | ||
* Install Inno Setup | ||
* Test, build, test build | ||
|
||
``` | ||
set PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem | ||
C:\Python34\python.exe bin\gaupol | ||
win32\build.bat | ||
win32\test-build.bat | ||
# If needed, enable a console window to see output: | ||
# winsetup.py: s/base="Win32GUI"/base=None/ | ||
``` | ||
|
||
* Update version numbers in `win32/gaupol.iss` and compile with Inno Setup | ||
* Install Gaupol and check that it works |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
:: -*- coding: us-ascii-unix -*- | ||
cd "%~dp0\.." | ||
set GAUPOL_FREEZING=1 | ||
set PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Python34 | ||
python setup.py clean | ||
python setup.py install_data -d build\usr | ||
python winsetup.py build > winsetup.log | ||
del /s /q build\exe.win32-3.4\share\gir-1.0 > NUL | ||
del /s /q build\exe.win32-3.4\share\locale > NUL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
; -*- conf -*- | ||
|
||
[Setup] | ||
AllowNoIcons=yes | ||
AppName=Gaupol | ||
AppPublisher=Osmo Salomaa | ||
AppPublisherURL=http://otsaloma.io/gaupol/ | ||
AppVerName=Gaupol 0.90.20160708 | ||
Compression=lzma | ||
DefaultDirName={pf}\Gaupol | ||
DefaultGroupName=Gaupol | ||
OutputBaseFilename=gaupol-0.90.20160708-win32 | ||
OutputDir=".." | ||
SolidCompression=yes | ||
|
||
[Tasks] | ||
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked | ||
|
||
[Files] | ||
Source: "..\build\exe.win32-3.4\*"; DestDir: {app}; Flags: ignoreversion recursesubdirs createallsubdirs | ||
|
||
[Icons] | ||
Name: "{commonprograms}\Gaupol"; Filename: "{app}\gaupol.exe" | ||
Name: "{commondesktop}\Gaupol"; Filename: "{app}\gaupol.exe"; Tasks: desktopicon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
:: -*- coding: us-ascii-unix -*- | ||
cd "%~dp0\.." | ||
set PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem; | ||
build\exe.win32-3.4\gaupol.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
"""cx_Freeze installation routines built on top of normal setup.py.""" | ||
|
||
import glob | ||
import os | ||
import site | ||
|
||
os.environ["GAUPOL_FREEZING"] = "1" | ||
from setup import * | ||
import cx_Freeze | ||
|
||
includes = ["aeidon", "cairo", "gaupol", "gi"] | ||
include_files = [(os.path.join("build", "usr", "share"), "share")] | ||
site_path = site.getsitepackages()[1] | ||
|
||
gnome_path = os.path.join(site_path, "gnome") | ||
for dll in glob.glob("{}\\*.dll".format(gnome_path)): | ||
include_files.append((dll, os.path.basename(dll))) | ||
include_files.append((os.path.join(gnome_path, "etc"), "etc")) | ||
include_files.append((os.path.join(gnome_path, "lib"), "lib")) | ||
include_files.append((os.path.join(gnome_path, "share"), "share")) | ||
|
||
# PyEnchant ships with DLLs provided by pygi-aio as well. | ||
# Keep the pygio-aio DLLs, but add PyEnchant data files. | ||
enchant_path = os.path.join(site_path, "enchant") | ||
include_files.append((os.path.join(enchant_path, "lib"), "lib")) | ||
include_files.append((os.path.join(enchant_path, "share"), "share")) | ||
|
||
setup_kwargs.update(dict( | ||
options=dict(build_exe=dict( | ||
compressed=False, | ||
includes=includes, | ||
packages=includes, | ||
include_files=include_files, | ||
)), | ||
executables=[cx_Freeze.Executable( | ||
script="bin/gaupol", | ||
base="WIN32GUI", | ||
icon="data/icons/gaupol.ico", | ||
)], | ||
)) | ||
|
||
if __name__ == "__main__": | ||
cx_Freeze.setup(**setup_kwargs) |