Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ghini 1.0 wininstaller #294

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions bauble/utils/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@
from bauble.i18n import _


def _open_link(func, data=None):
def _open_link(data=None):
"""Open a web link"""
# windows generates odd characters in the uri unless its in ascii
import sys
if sys.platform == 'win32' :
udata=data.decode("utf-8")
asciidata=udata.encode("ascii","ignore")
if sys.platform == 'win32':
udata = data.decode("utf-8")
asciidata = udata.encode("ascii", "ignore")
desktop.open(asciidata)
else : desktop.open(data)
else: desktop.open(data)

gtk.link_button_set_uri_hook(_open_link)

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions scripts/build-multiuser.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,8 @@ Function AddFOPtoPATH
; copy the script to a temp dir
SetOutPath "$PLUGINSDIR\"
SetOverwrite on
File /a "Add_to_PATH.vbs"
ExecWait '"$SYSDIR\wscript.exe" //E:vbscript "$PLUGINSDIR\Add_to_PATH.vbs" /path:"$R0\fop-${FOP_VERSION}\" /env:"$R1"'
File /a "add_to_path.vbs"
ExecWait '"$SYSDIR\wscript.exe" //E:vbscript "$PLUGINSDIR\add_to_path.vbs" /path:"$R0\fop-${FOP_VERSION}\" /env:"$R1"'
DetailPrint "Apache FOP added to $R1 PATH as: $R0\fop-${FOP_VERSION}\"
SetRebootFlag True
DetailPrint "Reboot flag = True"
Expand Down
3 changes: 2 additions & 1 deletion scripts/bump_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ def bump_nsi_file(filename, varname='version'):
bump_py_file(os.path.join(root_of_clone(), 'doc/conf.py'), 'release')
bump_desktop_file(os.path.join(root_of_clone(), 'data/ghini.desktop'))
bump_nsi_file(os.path.join(root_of_clone(), 'scripts/build.nsi'))
bump_nsi_file(os.path.join(root_of_clone(), 'scripts/build-multiuser.nsi'), 'VERSION')
bump_nsi_file(os.path.join(root_of_clone(), 'scripts/build-multiuser.nsi'),
'VERSION')

rx = "(^VERSION=\").*?\..*?\..*?(\".*?%s.*?$)" % bump_tag
bump_file(os.path.join(root_of_clone(), 'packages/builddeb.sh'), rx)
Expand Down
20 changes: 11 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,12 @@
exclude=['test', 'bauble.*.test', 'ghini.*.test'])
plugins_pkgs = ['bauble.plugins.%s' % p for p in plugins]
all_packages = setuptools.find_packages(exclude=['test', 'bauble.*.test',
'ghini.*.test'])
'ghini.*.test'])

package_data = {'': ['README.rst', 'CHANGES', 'LICENSE'],
'bauble': ['*.ui', '*.glade', 'images/*.png', 'pixmaps/*.png',
'images/*.svg', 'images/*.gif', 'images/*.ico', 'images/*.bmp']}
'bauble': ['*.ui', '*.glade', 'images/*.png', 'pixmaps/*.png',
'images/*.svg', 'images/*.gif', 'images/*.ico',
'images/*.bmp']}

# ceate a list of the data patterns to look for in the packages
data_patterns = ['default/*.txt', '*.ui', '*.glade', '*.xsl', '*.xsd',
Expand All @@ -85,8 +86,9 @@
sqlalchemy_includes = ['sqlalchemy.dialects.sqlite',
'sqlalchemy.dialects.postgresql']
py2exe_includes = ['sqlite3', 'lxml', 'gdata', 'fibra', 'psycopg2',
'encodings', 'mako', 'mako.cache', 'pygments.styles.default',
'pyparsing'] + gtk_pkgs + plugins_pkgs + sqlalchemy_includes
'encodings', 'mako', 'mako.cache',
'pygments.styles.default', 'pyparsing'] + gtk_pkgs \
+ plugins_pkgs + sqlalchemy_includes
py2exe_setup_args = {
'windows': [{'script': 'scripts/ghini',
'icon_resources': [(1, "bauble/images/icon.ico")]}]}
Expand All @@ -105,7 +107,7 @@
"libgtk-win32-2.0-0.dll", "libpango-1.0-0.dll",
"libpangowin32-1.0-0.dll", "libxml2-2.dll",
# windows dlls
"DNSAPI.DLL","MSIMG32.DLL", "Secur32.dll", "SHFOLDER.dll",
"DNSAPI.DLL", "MSIMG32.DLL", "Secur32.dll", "SHFOLDER.dll",
"CRYPT32.dll", "MPR.dll"
]
}
Expand Down Expand Up @@ -176,8 +178,8 @@ def run(self):
file_util.copy_file(gtheme, dest)

# copy LICENSE to dist\share\LICENSE.ghini (for help>about)
file_util.copy_file("LICENSE",
os.path.join(self.dist_dir, 'share', 'LICENSE.ghini'))
file_util.copy_file("LICENSE", os.path.join(self.dist_dir, 'share',
'LICENSE.ghini'))

class nsis_cmd(Command):
# 1. copy the gtk dist to the dist directory
Expand Down Expand Up @@ -423,7 +425,7 @@ def run(self):
scripts = ["scripts/ghini"]
if sys.platform == 'win32':
scripts = ["scripts/ghini", "scripts/ghini.bat", "scripts/ghini.vbs",
"scripts/ghini-update.bat"]
"scripts/ghini-update.bat"]

# TODO: images in bauble/images should really be in data and copied as
# package_data or data_files
Expand Down