From 0a528ef9fa5988a580264680879d9728aca46708 Mon Sep 17 00:00:00 2001 From: "bart@bart" Date: Sun, 30 Aug 2009 20:16:20 +0200 Subject: [PATCH] New deb file creation script also adds icons and mimetype --- platform/unix/app.svg | 1030 ++++++++++++++++++++++++++++++++++++ platform/unix/game.svg | 1024 +++++++++++++++++++++++++++++++++++ platform/unix/love.xml | 7 + platform/unix/make-package | 13 + platform/unix/mimescript | 4 + 5 files changed, 2078 insertions(+) create mode 100644 platform/unix/app.svg create mode 100644 platform/unix/game.svg create mode 100644 platform/unix/love.xml create mode 100755 platform/unix/mimescript diff --git a/platform/unix/app.svg b/platform/unix/app.svg new file mode 100644 index 000000000..03267f0b6 --- /dev/null +++ b/platform/unix/app.svg @@ -0,0 +1,1030 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/platform/unix/game.svg b/platform/unix/game.svg new file mode 100644 index 000000000..19c62362b --- /dev/null +++ b/platform/unix/game.svg @@ -0,0 +1,1024 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/platform/unix/love.xml b/platform/unix/love.xml new file mode 100644 index 000000000..7cc82416f --- /dev/null +++ b/platform/unix/love.xml @@ -0,0 +1,7 @@ + + + + LÖVE game + + + diff --git a/platform/unix/make-package b/platform/unix/make-package index 39061e94f..f5bbd0c5e 100755 --- a/platform/unix/make-package +++ b/platform/unix/make-package @@ -17,9 +17,22 @@ case "$1" in sed "s/%VERSION%/$2/" < debian > deb/DEBIAN/tmp sed "s/%INSTALLSIZE%/`ls -l ../../src/love | awk '{ sum += $5 } END { printf "%.2f", sum / 1000 }'`/" < deb/DEBIAN/tmp > deb/DEBIAN/control rm deb/DEBIAN/tmp + cp mimescript deb/DEBIAN/postinst + cp mimescript deb/DEBIAN/postrm mkdir deb/usr mkdir deb/usr/bin cp ../../src/love deb/usr/bin/love + mkdir deb/usr/share + mkdir deb/usr/share/mime + mkdir deb/usr/share/mime/packages + cp love.xml deb/usr/share/mime/packages + mkdir deb/usr/share/icons + mkdir deb/usr/share/icons/gnome + mkdir deb/usr/share/icons/gnome/scalable + mkdir deb/usr/share/icons/gnome/scalable/apps + cp app.svg deb/usr/share/icons/gnome/scalable/apps/love.svg + mkdir deb/usr/share/icons/gnome/mimetypes + cp game.svg deb/usr/share/icons/gnome/mimetypes/gnome-mime-application-love-game.svg dpkg -b deb love-$2.deb && \ echo " * love-$2.deb created" rm -rf deb diff --git a/platform/unix/mimescript b/platform/unix/mimescript new file mode 100755 index 000000000..7cb24e4b3 --- /dev/null +++ b/platform/unix/mimescript @@ -0,0 +1,4 @@ +#!/bin/sh + +update-mime-database /usr/share/mime +gtk-update-icon-cache --force /usr/share/icons/gnome