From 7c17177918f1bb94be7c84ca9b839155623ff05f Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Mon, 11 Jan 2021 08:45:29 +0100 Subject: Created a SVG logo and a configuration to register desktop entries. --- Makefile.am | 2 +- configure.ac | 17 +- pixmaps/Makefile.am | 1 + pixmaps/chrysalide-logo.svg | 576 ++++++++++++++++++++++++++++++++++ system/Makefile.am | 1 + system/desktop/128x128/chrysalide.png | Bin 0 -> 12281 bytes system/desktop/16x16/chrysalide.png | Bin 0 -> 791 bytes system/desktop/192x192/chrysalide.png | Bin 0 -> 20015 bytes system/desktop/22x22/chrysalide.png | Bin 0 -> 1198 bytes system/desktop/24x24/chrysalide.png | Bin 0 -> 1278 bytes system/desktop/256x256/chrysalide.png | Bin 0 -> 27521 bytes system/desktop/32x32/chrysalide.png | Bin 0 -> 1819 bytes system/desktop/36x36/chrysalide.png | Bin 0 -> 2151 bytes system/desktop/42x42/chrysalide.png | Bin 0 -> 2631 bytes system/desktop/48x48/chrysalide.png | Bin 0 -> 3099 bytes system/desktop/512x512/chrysalide.png | Bin 0 -> 62317 bytes system/desktop/64x64/chrysalide.png | Bin 0 -> 4772 bytes system/desktop/72x72/chrysalide.png | Bin 0 -> 5529 bytes system/desktop/8x8/chrysalide.png | Bin 0 -> 433 bytes system/desktop/96x96/chrysalide.png | Bin 0 -> 8279 bytes system/desktop/Makefile.am | 54 ++++ system/desktop/convert.sh | 20 ++ system/desktop/re.chrysalide.desktop | 22 ++ 23 files changed, 690 insertions(+), 3 deletions(-) create mode 100644 pixmaps/chrysalide-logo.svg create mode 100644 system/desktop/128x128/chrysalide.png create mode 100644 system/desktop/16x16/chrysalide.png create mode 100644 system/desktop/192x192/chrysalide.png create mode 100644 system/desktop/22x22/chrysalide.png create mode 100644 system/desktop/24x24/chrysalide.png create mode 100644 system/desktop/256x256/chrysalide.png create mode 100644 system/desktop/32x32/chrysalide.png create mode 100644 system/desktop/36x36/chrysalide.png create mode 100644 system/desktop/42x42/chrysalide.png create mode 100644 system/desktop/48x48/chrysalide.png create mode 100644 system/desktop/512x512/chrysalide.png create mode 100644 system/desktop/64x64/chrysalide.png create mode 100644 system/desktop/72x72/chrysalide.png create mode 100644 system/desktop/8x8/chrysalide.png create mode 100644 system/desktop/96x96/chrysalide.png create mode 100644 system/desktop/Makefile.am create mode 100755 system/desktop/convert.sh create mode 100644 system/desktop/re.chrysalide.desktop diff --git a/Makefile.am b/Makefile.am index fd48d29..1a30aa4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,5 @@ -EXTRA_DIST = config.rpath ChangeLog config.h gettext.h i18n.h +EXTRA_DIST = config.rpath ChangeLog config.h gettext.h i18n.h chrysalide-logo.svg SUBDIRS = doc tools pixmaps src plugins po system themes diff --git a/configure.ac b/configure.ac index 0233317..1ee20a4 100644 --- a/configure.ac +++ b/configure.ac @@ -219,8 +219,8 @@ AC_ARG_WITH(gobject-leak-tracker, [], [with_gobject_leak_tracker=no]) AC_ARG_WITH(local-resources, - AS_HELP_STRING([--with-local-resources], [discard resources from local sources [default=yes]]), - [], [with_local_resources=yes]) + AS_HELP_STRING([--with-desktop-dir=PATH], + [specify to destination of desktop files (default=PREFIX/share)])) #--- Small enumerations @@ -261,6 +261,18 @@ AM_CONDITIONAL([BUILD_DISCARD_LOCAL], [test "x$with_local_resources" = "xno"]) AC_SUBST(CFLAGS) +#--- Custom destination for desktop resources ? + +if test "x$with_desktop_dir" != x; then + DESKTOP_DATADIR=$with_desktop_dir +else + DESKTOP_DATADIR="$datadir" +fi + +AM_CONDITIONAL(DESKTOP_DATADIR, test "x$with_desktop_dir" != xno) +AC_SUBST(DESKTOP_DATADIR) + + #--- Compilation warnings #-Wall -Wimplicit -Wreturn-type -Wunused -Wswitch -Wcomment -Wuninitialized -Wparentheses -Wpointer-arith -Wmissing-prototypes @@ -546,6 +558,7 @@ AC_CONFIG_FILES([Makefile tools/d2c/pattern/Makefile tools/d2c/rules/Makefile system/Makefile + system/desktop/Makefile system/pkgconfig/Makefile themes/Makefile themes/Adwaita/Makefile diff --git a/pixmaps/Makefile.am b/pixmaps/Makefile.am index ecf6a68..d1dff31 100644 --- a/pixmaps/Makefile.am +++ b/pixmaps/Makefile.am @@ -52,6 +52,7 @@ CORE = \ EXTRA_DIST = \ chrysalide.xcf \ + chrysalide-logo.svg \ openida.xcf \ openida_text.xcf \ before-after.png \ diff --git a/pixmaps/chrysalide-logo.svg b/pixmaps/chrysalide-logo.svg new file mode 100644 index 0000000..40f443e --- /dev/null +++ b/pixmaps/chrysalide-logo.svg @@ -0,0 +1,576 @@ + + + + + Logo Chrysalide + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + Logo Chrysalide + + + Cyrille Bagard + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/system/Makefile.am b/system/Makefile.am index 3fd9a64..fcf33d4 100644 --- a/system/Makefile.am +++ b/system/Makefile.am @@ -1,3 +1,4 @@ SUBDIRS = \ + desktop \ pkgconfig diff --git a/system/desktop/128x128/chrysalide.png b/system/desktop/128x128/chrysalide.png new file mode 100644 index 0000000..d38d5d7 Binary files /dev/null and b/system/desktop/128x128/chrysalide.png differ diff --git a/system/desktop/16x16/chrysalide.png b/system/desktop/16x16/chrysalide.png new file mode 100644 index 0000000..254067b Binary files /dev/null and b/system/desktop/16x16/chrysalide.png differ diff --git a/system/desktop/192x192/chrysalide.png b/system/desktop/192x192/chrysalide.png new file mode 100644 index 0000000..3d7d835 Binary files /dev/null and b/system/desktop/192x192/chrysalide.png differ diff --git a/system/desktop/22x22/chrysalide.png b/system/desktop/22x22/chrysalide.png new file mode 100644 index 0000000..e06d695 Binary files /dev/null and b/system/desktop/22x22/chrysalide.png differ diff --git a/system/desktop/24x24/chrysalide.png b/system/desktop/24x24/chrysalide.png new file mode 100644 index 0000000..ee122bd Binary files /dev/null and b/system/desktop/24x24/chrysalide.png differ diff --git a/system/desktop/256x256/chrysalide.png b/system/desktop/256x256/chrysalide.png new file mode 100644 index 0000000..c3773fb Binary files /dev/null and b/system/desktop/256x256/chrysalide.png differ diff --git a/system/desktop/32x32/chrysalide.png b/system/desktop/32x32/chrysalide.png new file mode 100644 index 0000000..d3f57c1 Binary files /dev/null and b/system/desktop/32x32/chrysalide.png differ diff --git a/system/desktop/36x36/chrysalide.png b/system/desktop/36x36/chrysalide.png new file mode 100644 index 0000000..9fadb32 Binary files /dev/null and b/system/desktop/36x36/chrysalide.png differ diff --git a/system/desktop/42x42/chrysalide.png b/system/desktop/42x42/chrysalide.png new file mode 100644 index 0000000..9da4097 Binary files /dev/null and b/system/desktop/42x42/chrysalide.png differ diff --git a/system/desktop/48x48/chrysalide.png b/system/desktop/48x48/chrysalide.png new file mode 100644 index 0000000..4ba2a63 Binary files /dev/null and b/system/desktop/48x48/chrysalide.png differ diff --git a/system/desktop/512x512/chrysalide.png b/system/desktop/512x512/chrysalide.png new file mode 100644 index 0000000..1c51b69 Binary files /dev/null and b/system/desktop/512x512/chrysalide.png differ diff --git a/system/desktop/64x64/chrysalide.png b/system/desktop/64x64/chrysalide.png new file mode 100644 index 0000000..62a8096 Binary files /dev/null and b/system/desktop/64x64/chrysalide.png differ diff --git a/system/desktop/72x72/chrysalide.png b/system/desktop/72x72/chrysalide.png new file mode 100644 index 0000000..dfe1e22 Binary files /dev/null and b/system/desktop/72x72/chrysalide.png differ diff --git a/system/desktop/8x8/chrysalide.png b/system/desktop/8x8/chrysalide.png new file mode 100644 index 0000000..e1ff897 Binary files /dev/null and b/system/desktop/8x8/chrysalide.png differ diff --git a/system/desktop/96x96/chrysalide.png b/system/desktop/96x96/chrysalide.png new file mode 100644 index 0000000..11db3b7 Binary files /dev/null and b/system/desktop/96x96/chrysalide.png differ diff --git a/system/desktop/Makefile.am b/system/desktop/Makefile.am new file mode 100644 index 0000000..28c434e --- /dev/null +++ b/system/desktop/Makefile.am @@ -0,0 +1,54 @@ + +EXTRA_DIST = convert.sh + +if DESKTOP_DATADIR + +applicationsdir = $(DESKTOP_DATADIR)/applications +applications_DATA = re.chrysalide.desktop + +icons8dir = $(DESKTOP_DATADIR)/icons/hicolor/8x8/apps +icons8_DATA = 8x8/chrysalide.png + +icons16dir = $(DESKTOP_DATADIR)/icons/hicolor/16x16/apps +icons16_DATA = 16x16/chrysalide.png + +icons22dir = $(DESKTOP_DATADIR)/icons/hicolor/22x22/apps +icons22_DATA = 22x22/chrysalide.png + +icons24dir = $(DESKTOP_DATADIR)/icons/hicolor/24x24/apps +icons24_DATA = 24x24/chrysalide.png + +icons32dir = $(DESKTOP_DATADIR)/icons/hicolor/32x32/apps +icons32_DATA = 32x32/chrysalide.png + +icons36dir = $(DESKTOP_DATADIR)/icons/hicolor/36x36/apps +icons36_DATA = 36x36/chrysalide.png + +icons42dir = $(DESKTOP_DATADIR)/icons/hicolor/42x42/apps +icons42_DATA = 42x42/chrysalide.png + +icons48dir = $(DESKTOP_DATADIR)/icons/hicolor/48x48/apps +icons48_DATA = 48x48/chrysalide.png + +icons64dir = $(DESKTOP_DATADIR)/icons/hicolor/64x64/apps +icons64_DATA = 64x64/chrysalide.png + +icons72dir = $(DESKTOP_DATADIR)/icons/hicolor/72x72/apps +icons72_DATA = 72x72/chrysalide.png + +icons96dir = $(DESKTOP_DATADIR)/icons/hicolor/96x96/apps +icons96_DATA = 96x96/chrysalide.png + +icons128dir = $(DESKTOP_DATADIR)/icons/hicolor/128x128/apps +icons128_DATA = 128x128/chrysalide.png + +icons192dir = $(DESKTOP_DATADIR)/icons/hicolor/192x192/apps +icons192_DATA = 192x192/chrysalide.png + +icons256dir = $(DESKTOP_DATADIR)/icons/hicolor/256x256/apps +icons256_DATA = 256x256/chrysalide.png + +icons512dir = $(DESKTOP_DATADIR)/icons/hicolor/512x512/apps +icons512_DATA = 512x512/chrysalide.png + +endif diff --git a/system/desktop/convert.sh b/system/desktop/convert.sh new file mode 100755 index 0000000..c7bb1bd --- /dev/null +++ b/system/desktop/convert.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +SRC=../../pixmaps/chrysalide-logo.svg + +for sz in 8 16 22 24 32 36 42 48 64 72 96 128 192 256 512; +do + + DIR="${sz}x${sz}" + + rm -rf $DIR + + mkdir $DIR + + inkscape -z -w $sz -h $sz $SRC -e $DIR/chrysalide.png 1> /dev/null 2> /dev/null + + echo "icons${sz}dir = \$(DESKTOP_DATADIR)/icons/hicolor/$DIR/apps" + echo "icons${sz}_DATA = $DIR/chrysalide.png" + echo "" + +done diff --git a/system/desktop/re.chrysalide.desktop b/system/desktop/re.chrysalide.desktop new file mode 100644 index 0000000..23c71ba --- /dev/null +++ b/system/desktop/re.chrysalide.desktop @@ -0,0 +1,22 @@ +[Desktop Entry] +Name=Chrysalide +GenericName[fr]=Fabrique pour rétroconception +GenericName=Reverse Engineering Factory +Comment[fr]=Outil concentré sur les systèmes embarqués +Comment=Tool focused on embedded systems +Keywords[fr]=RE;Retro;Binaire; +Keywords=RE;Reverse;Binary; +Exec=chrysalide %F +Icon=chrysalide +Terminal=false +Type=Application +Categories=GTK;Debugger;Viewer;Engineering;Security; +StartupNotify=true +StartupWMClass=Chrysalide +MimeType=application/x-executable;application/x-pie-executable;application/x-sharedlib;application/vnd.android.package-archive;application/zip;application/x-raw-disk-image; +Actions=Verbose; + +[Desktop Action Verbose] +Name[fr]=Ouvrir avec davantage de remontées +Name=Open with more logs +Exec=chrysalide --verbosity=0 -- cgit v0.11.2-87-g4458