scripts to build windows installer
This commit is contained in:
parent
627e977087
commit
07fd74548d
|
@ -0,0 +1,35 @@
|
|||
; -- Example1.iss --
|
||||
; Demonstrates copying 3 files and creating an icon.
|
||||
|
||||
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES!
|
||||
|
||||
[Setup]
|
||||
AppName=Gajim
|
||||
AppVerName=Gajim version 0.3
|
||||
DefaultDirName={pf}\Gajim
|
||||
DefaultGroupName=Gajim
|
||||
UninstallDisplayIcon={app}\Gajim.exe
|
||||
Compression=lzma
|
||||
SolidCompression=yes
|
||||
|
||||
[Components]
|
||||
Name: "main"; Description: "Main Files"; Types: full compact custom; Flags: fixed
|
||||
|
||||
[Tasks]
|
||||
Name: desktopicon; Description: "Create a &desktop icon"; GroupDescription: "Additional icons:"; Components: main
|
||||
|
||||
[Files]
|
||||
Source: "dist\*.pyd"; DestDir: "{app}"
|
||||
Source: "dist\*.dll"; DestDir: "{app}"
|
||||
Source: "dist\*.zip"; DestDir: "{app}"
|
||||
Source: "dist\*.exe"; DestDir: "{app}"; components: main
|
||||
Source: "*.ico"; DestDir: "{app}"
|
||||
Source: "dist\plugins\gtkgui\*.glade"; DestDir: "{app}\plugins\gtkgui"
|
||||
Source: "dist\plugins\gtkgui\icons\sun\*"; DestDir: "{app}\plugins\gtkgui\icons\sun"
|
||||
|
||||
[Icons]
|
||||
Name: "{group}\Gajim"; Filename: "{app}\runCore.exe"; WorkingDir: "{app}"; IconFilename: "{app}\gajim.ico"
|
||||
Name: "{userdesktop}\Gajim"; Filename: "{app}\runCore.exe"; WorkingDir: "{app}"; IconFilename: "{app}\gajim.ico"; Components: main; Tasks: desktopicon
|
||||
|
||||
[Run]
|
||||
Filename: "{app}\runCore.exe"; Description: "Launch application"; Flags: postinstall nowait skipifsilent
|
|
@ -0,0 +1,32 @@
|
|||
from distutils.core import setup
|
||||
import py2exe
|
||||
import glob
|
||||
|
||||
includes = ["encodings",
|
||||
"encodings.utf-8",]
|
||||
|
||||
opts = {
|
||||
"py2exe": {
|
||||
"includes": "pango,atk,gobject,plugins,plugins.gtkgui,plugins.logger,encodings,encodings.*",
|
||||
"dll_excludes": [
|
||||
"iconv.dll","intl.dll","libatk-1.0-0.dll",
|
||||
"libgdk_pixbuf-2.0-0.dll","libgdk-win32-2.0-0.dll",
|
||||
"libglib-2.0-0.dll","libgmodule-2.0-0.dll",
|
||||
"libgobject-2.0-0.dll","libgthread-2.0-0.dll",
|
||||
"libgtk-win32-2.0-0.dll","libpango-1.0-0.dll",
|
||||
"libpangowin32-1.0-0.dll"
|
||||
],
|
||||
}
|
||||
}
|
||||
|
||||
setup(
|
||||
name = "Gajim",
|
||||
description = "A jabber client",
|
||||
# console=["runCore.py"],
|
||||
windows = [{"script": "runCore.py"}],
|
||||
options=opts,
|
||||
data_files=[("plugins/gtkgui", glob.glob("plugins/gtkgui/gtkgui.glade")),
|
||||
("plugins/gtkgui/icons/sun", glob.glob("plugins/gtkgui/icons/sun/*.*")),
|
||||
("Messages/fr/LC_MESSAGES", glob.glob("Messages/fr/LC_MESSAGES/*.mo"))
|
||||
],
|
||||
)
|
Loading…
Reference in New Issue