source: air-manager/trunk/fuentes/debian/air-installer.postinst @ 7331

Last change on this file since 7331 was 7331, checked in by Juanma, 2 years ago

initial release

  • Property svn:executable set to *
File size: 798 bytes
Line 
1#!/bin/bash
2
3APP="air-installer"
4EXT="air"
5
6# Create mime xml
7echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
8<mime-info xmlns=\"http://www.freedesktop.org/standards/shared-mime-info\">
9    <mime-type type=\"application/x-$APP\">
10        <comment>Install air app</comment>
11        <icon name=\"application-x-$APP\"/>
12        <glob pattern=\"*.$EXT\"/>
13    </mime-type>
14</mime-info>" > /usr/share/mime/packages/application-x-$APP.xml
15
16# Create application desktop
17echo "[Desktop Entry]
18Name=$APP
19Exec=/usr/bin/$APP %U
20MimeType=application/x-$APP
21Icon=adobe-air.png
22Terminal=false
23Type=Application
24Categories=
25Comment=
26"> /usr/share/applications/$APP.desktop
27
28# update databases for both application and mime
29update-desktop-database /usr/share/applications
30update-mime-database    /usr/share/mime
31
Note: See TracBrowser for help on using the repository browser.