1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-20 05:09:02 +00:00

Use a Makefile for Windows build (run from MSYS2-mingw64 shell)

This commit is contained in:
dmiller
2023-02-09 21:10:06 +00:00
parent 9db1818f0f
commit fc73c35f4d
2 changed files with 17 additions and 21 deletions

View File

@@ -0,0 +1,11 @@
all: dist/zenmap-w64-deletelog.txt mingw-w64-x86_64-python-zenmap-%.pkg.tar.zst
./build.sh
mingw-w64-x86_64-python-zenmap-%.pkg.tar.zst: PKGBUILD
makepkg-mingw -RdfL
dist/zenmap-w64-deletelog.txt: styrene.cfg
styrene -p . -o $@ styrene.cfg --no-exe --no-zip
clean:
rm -rf pkg/ src/ dist/ mingw-w64-*-package.log* mingw-w64-*.zst

View File

@@ -37,7 +37,6 @@ description = Nmap GUI
# or an equivalent section below.
launchers =
zenmap.desktop
ndiff-launcher
# Additional icons to explicitly convert.
# These will be converted from the bundle's FreeDesktop.org PNG icons.
@@ -58,20 +57,12 @@ delete = *
nodelete =
# The postinst scripts that GTK needs, followed by their binaries.
var/lib/pacman/local/mingw-w64-*-glib2-*-*/install
mingw*/bin/glib-compile-schemas*.exe
mingw*/share/glib*/schemas
var/lib/pacman/local/mingw-w64-*-gdk-pixbuf2-*-*/install
mingw*/bin/gdk-pixbuf-query-loaders*.exe
var/lib/pacman/local/mingw-w64-*-gtk3-*-*/install
mingw*/bin/gtk-query-immodules*.exe
mingw*/bin/gtk-update-icon-cache*.exe
usr/bin/mkdir.exe
usr/bin/msys-2*.dll
var/lib/pacman/local/mingw-w64-*-adwaita-icon-theme-*-*/install
usr/share/libalpm
var/lib/pacman/local/mingw-w64-*-hicolor-icon-theme-*-*/install
@@ -81,21 +72,17 @@ nodelete =
mingw*/lib/gtk-3.0
mingw*/lib/gdk-pixbuf-2.0
mingw*/share/applications
# This is the most minimal subset for GTK. Breaks many demos.
mingw*/share/icons/**/window-*.symbolic.png ; window surrounds
mingw*/share/icons/**/pan-*.symbolic.png ; foldouts & arrows
mingw*/share/icons/**/process-working* ; spinner (SVG)
mingw*/share/icons/**/index.theme
# Or to be certain, include all symbolic PNGS
mingw*/share/icons/**/*.symbolic.png
mingw*/share/icons/hicolor/index.theme
# python-gobject stuff
mingw*/lib/girepository-*
mingw*/lib/python3.*
# To avoid terminal window, use pythonw.exe
mingw*/bin/pythonw.exe
# For debugging use python.exe
#mingw*/bin/python.exe
mingw*/bin/libpython*.dll
# Zenmap's files (mostly in site-packages above)
mingw*/share/zenmap
@@ -112,6 +99,4 @@ exec = pythonw.exe -c 'from zenmapGUI.App import run; run()'
icon = {msystem_subdir}/share/zenmap/pixmaps/zenmap.png
; For debugging:
;Terminal = true
;exec = pythonw.exe -c 'from zenmapGUI.App import run; run()' -vvvvv
[ndiff-launcher]
exec = python.exe ../ndiff.py %F
;exec = python.exe -c 'from zenmapGUI.App import run; run()' -vvvvv