summaryrefslogtreecommitdiffstats
path: root/zenmap/install_scripts/windows/styrene.cfg
blob: b5cfd2c3e62e0a4f462740c84e615ffa19f9d4fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# Styrene config file for Zenmap and Ndiff

[bundle]

# Packages to install into the bundle, separated by spaces.
# Pacman will resolve dependencies automatically.
# Substs: {pkg_prefix} for "mingw-w64-x86_64-" or "mingw-w64-i686-".
# The first package is the main one: it provides the default metadata.
packages = {pkg_prefix}python-zenmap {pkg_prefix}python-gobject {pkg_prefix}python {pkg_prefix}gtk3 msys2-runtime

# Reduce some bundling time and size by skipping these prereqs we don't use
assume_installed = {pkg_prefix}ncurses {pkg_prefix}expat {pkg_prefix}openssl {pkg_prefix}tcl {pkg_prefix}tk

# The first part of generated installer or archive filenames.
# Will be suffixed with the version, an architecture spec
# like "-w64" or "-w32", and the appropriate filename extension.
# Default: the main package's name (with {pkg_prefix} as "").
filename_stub = zenmap

# Display name for the bundle. Spaces are OK.
# The suffix " (w32)" is appended for MINGW32 bundles.
# Default: the filename stub
display_name = Zenmap

# Short human-readable description.
description = Nmap GUI

# Version number for the bundle.
# Default: parsed from the main package's version.
# version =

# URLs that default to the main package's URL metadata.
# url =

# Launchers to install.
# Entries here should name a desktop file,
# or an equivalent section below.
launchers =
	zenmap.desktop

# Additional icons to explicitly convert.
# These will be converted from the bundle's FreeDesktop.org PNG icons.
# They are used in addition to the ones listed in the launchers.
# The conversion only knows about Adwaita & the default hicolor theme.
# The first converted icon will be used for the installer too [VOLATILE]
; icons =

# Surplus files and folders to be deleted.
# Space-separated list of glob patterns rooted in $INSTDIR.

delete = *


# List files and directories you *don't* want to be deleted here.
# If you're cleaning out $PREFIX/bin, you need to keep all the EXEs
# which are called from the postinst.cmd.

nodelete =
    # The postinst scripts that GTK needs, followed by their binaries.
    mingw*/share/glib*/schemas

    #mingw*/bin/gtk-update-icon-cache*.exe
    #usr/bin/mkdir.exe
    #usr/bin/msys-2*.dll
    #usr/share/libalpm

    #var/lib/pacman/local/mingw-w64-*-hicolor-icon-theme-*-*/install

    # Runtime requirements for the demos etc.
    mingw*/etc/gtk-3.0
    # Required DLLs. Checked with:
    # * recursive `dumpbin /imports` on known python/gtk dlls
    # * recursive `dumpbin /imports` on pyd files in lib/python3.10
    # * `g-ir-inspect --print-shlibs` for typelibs listed below
    mingw*/bin/libatk-1.0-0.dll
    mingw*/bin/libbrotlicommon.dll
    mingw*/bin/libbrotlidec.dll
    mingw*/bin/libbz2-1.dll
    mingw*/bin/libcairo-2.dll
    mingw*/bin/libcairo-gobject-2.dll
    mingw*/bin/libdatrie-1.dll
    mingw*/bin/libepoxy-0.dll
    mingw*/bin/libexpat-1.dll
    mingw*/bin/libffi-8.dll
    mingw*/bin/libfontconfig-1.dll
    mingw*/bin/libfreetype-6.dll
    mingw*/bin/libfribidi-0.dll
    mingw*/bin/libgcc_s_seh-1.dll
    mingw*/bin/libgdk-3-0.dll
    mingw*/bin/libgdk_pixbuf-2.0-0.dll
    mingw*/bin/libgio-2.0-0.dll
    mingw*/bin/libgirepository-1.0-1.dll
    mingw*/bin/libglib-2.0-0.dll
    mingw*/bin/libgmodule-2.0-0.dll
    mingw*/bin/libgobject-2.0-0.dll
    mingw*/bin/libgraphite2.dll
    mingw*/bin/libgtk-3-0.dll
    mingw*/bin/libharfbuzz-0.dll
    mingw*/bin/libharfbuzz-gobject-0.dll
    mingw*/bin/libiconv-2.dll
    mingw*/bin/libintl-8.dll
    mingw*/bin/libpango-1.0-0.dll
    mingw*/bin/libpangocairo-1.0-0.dll
    mingw*/bin/libpangoft2-1.0-0.dll
    mingw*/bin/libpangowin32-1.0-0.dll
    mingw*/bin/libpcre2-8-0.dll
    mingw*/bin/libpixman-1-0.dll
    mingw*/bin/libpng16-16.dll
    mingw*/bin/libpython3.10.dll
    mingw*/bin/libsqlite3-0.dll
    mingw*/bin/libstdc++-6.dll
    mingw*/bin/libthai-0.dll
    mingw*/bin/libwinpthread-1.dll
    mingw*/bin/zlib1.dll

    mingw*/lib/gtk-3.0
    mingw*/lib/gdk-pixbuf-2.0/*/loaders/libpixbufloader-png.dll
    mingw*/lib/gdk-pixbuf-2.0/*/loaders/libpixbufloader-png.dll.a
    mingw*/lib/gdk-pixbuf-2.0/*/loaders/libpixbufloader-gif.dll
    mingw*/lib/gdk-pixbuf-2.0/*/loaders/libpixbufloader-gif.dll.a


    mingw*/share/icons/hicolor/index.theme

    # python-gobject stuff
    mingw*/lib/girepository-*/Atk-1.0.typelib
    mingw*/lib/girepository-*/GLib-2.0.typelib
    mingw*/lib/girepository-*/GModule-2.0.typelib
    mingw*/lib/girepository-*/GObject-2.0.typelib
    mingw*/lib/girepository-*/Gdk-3.0.typelib
    mingw*/lib/girepository-*/GdkPixbuf-2.0.typelib
    mingw*/lib/girepository-*/Gio-2.0.typelib
    mingw*/lib/girepository-*/Gtk-3.0.typelib
    mingw*/lib/girepository-*/HarfBuzz-0.0.typelib
    mingw*/lib/girepository-*/Pango-1.0.typelib
    mingw*/lib/girepository-*/PangoCairo-1.0.typelib
    mingw*/lib/girepository-*/PangoOT-1.0.typelib
    mingw*/lib/girepository-*/cairo-1.0.typelib
    mingw*/lib/girepository-*/freetype2-2.0.typelib

    # To avoid terminal window, use pythonw.exe
    mingw*/bin/pythonw.exe
    # For debugging use python.exe
    mingw*/bin/python.exe
    # Zenmap's files (mostly in site-packages above)
    mingw*/share/zenmap
    # mingw*/bin/zenmap
    mingw*/lib/python3.*/site-packages/zenmapCore
    mingw*/lib/python3.*/site-packages/zenmapGUI
    mingw*/lib/python3.*/site-packages/radialnet

    # The python modules here will be added by script:
    # mingw*/lib/python3.*
    # mingw*/lib/python3.*/encodings
    # mingw*/lib/python3.*/site.py
    # mingw*/lib/python3.*/_sitebuiltins.py
    # mingw*/lib/python3.*/site-packages/gi
    # mingw*/lib/python3.*/site-packages/cairo

# Local launcher definitions

; You can define new app launchers here, or extend the launchers in
; installed .desktop files by overriding their keys.
;
; All launchers need to be listed in the [bundle]'s "launchers" key.
[zenmap.desktop]
exec = pythonw.exe -c 'from zenmapGUI.App import run; run()'
icon = {msystem_subdir}/share/zenmap/pixmaps/zenmap.png
; For debugging:
;Terminal = true
;exec = python.exe -c 'from zenmapGUI.App import run; run()' -vvvvv