mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Fixed the build system and debs now provide icons and file associations
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
AC_INIT([love], [20091130-aab90c59bf10])
|
||||
AC_INIT([love], [20091206-d0384a4c71f6])
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
AC_CONFIG_AUX_DIR([platform/unix])
|
||||
AC_CONFIG_MACRO_DIR([platform/unix/m4])
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
[Desktop Entry]
|
||||
Name=LÖVE
|
||||
Comment=The unquestionably awesome 2D game engine
|
||||
MimeType=application/love-game;
|
||||
Exec=/usr/bin/love
|
||||
Type=Application
|
||||
Categories=Development;Game;
|
||||
Terminal=false
|
||||
Icon=love.svg
|
||||
@@ -23,10 +23,10 @@ case "$1" in
|
||||
mkdir deb/DEBIAN
|
||||
cat debian | sed "s/%VERSION%/$2/" | sed "s/%ARCHITECTURE%/$arch/g" > deb/DEBIAN/tmp
|
||||
cat deb/DEBIAN/tmp
|
||||
sed "s/%INSTALLSIZE%/`ls -l ../../src/love | awk '{ sum += $5 } END { printf "%.2f", sum / 1000 }'`/" < deb/DEBIAN/tmp > deb/DEBIAN/control
|
||||
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
|
||||
cp postinst deb/DEBIAN/postinst
|
||||
cp postrm deb/DEBIAN/postrm
|
||||
mkdir deb/usr
|
||||
mkdir deb/usr/bin
|
||||
cp ../../src/love deb/usr/bin/love
|
||||
@@ -39,8 +39,10 @@ case "$1" in
|
||||
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
|
||||
mkdir deb/usr/share/icons/gnome/scalable/mimetypes
|
||||
cp game.svg deb/usr/share/icons/gnome/scalable/mimetypes/gnome-mime-application-love-game.svg
|
||||
mkdir deb/usr/share/applications
|
||||
cp love.desktop deb/usr/share/applications
|
||||
dpkg -b deb love-$2.deb && \
|
||||
echo " * love-$2.deb created"
|
||||
rm -rf deb
|
||||
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
update-mime-database /usr/share/mime
|
||||
gtk-update-icon-cache --force /usr/share/icons/gnome
|
||||
xdg-mime default love.desktop application/love-game
|
||||
Reference in New Issue
Block a user