Commit f9ea86085aeb7e4eca84cba790ee4fe477634880

  • avatar
  • Maximilian Seesslen <mase @ma…h.>
  • Mon Mar 15 19:57:08 CET 2010
Added Debian installer
  
1#!/bin/bash
2# ==============================================================================
3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
5# the Free Software Foundation; version 3 of the License.
6#
7# This program is distributed in the hope that it will be useful,
8# but WITHOUT ANY WARRANTY; without even the implied warranty of
9# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10# GNU General Public License for more details.
11# ==============================================================================
12# (C) 2009 Christian Beuschel <chris109(at)web.de>
13
14# Installation
15
16echo " "
17
18echo -n "Copying files ..."
19
20# Has the user used the regular install.sh script which called this file or
21# has he executed this script directly?
22if [ -z "$INSTDIR" ]; then
23 echo "Error: Don't use this file directly, use install.sh instead!"
24 exit -1
25fi
26
27mkdir $INSTDIR
28cp -r ./files/* $INSTDIR/
29chmod +x $INSTDIR/bin/pappi
30chmod +x $INSTDIR/bin/uninstall
31ln -s $INSTDIR/bin/pappi /usr/local/bin/pappi
32
33echo '... done'
34echo " "
35
36echo -n "Registering mime-types ..."
37
38if [ ! -d "$MIMEDB" ]; then
39 mkdir -p $MIMEDB
40fi
41if [ ! -d "$APPDB" ]; then
42 mkdir -p $APPDB
43fi
44
45# Does the Mime-File already exist? remove!
46if [ -f "$MIMEDB/$MIMEFILE" ]; then
47 echo "Mime file already exist. removing..."
48 rm "$MIMEDB/$MIMEFILE"
49fi
50
51echo '<?xml version="1.0" encoding="UTF-8"?>' >> $MIMEDB'/'$MIMEFILE
52
53echo '<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">' >> $MIMEDB'/'$MIMEFILE
54echo ' <mime-type type="application/x-personal-application-package">' >> $MIMEDB'/'$MIMEFILE
55echo ' <comment>Personal Application Package</comment>' >> $MIMEDB'/'$MIMEFILE
56echo ' <glob pattern="*.pappp"/>' >> $MIMEDB'/'$MIMEFILE
57echo ' <generic-icon name="package-x-generic"/>' >> $MIMEDB'/'$MIMEFILE
58echo ' </mime-type>' >> $MIMEDB'/'$MIMEFILE
59
60echo ' <mime-type type="application/x-personal-application-store-trust-file">' >> $MIMEDB'/'$MIMEFILE
61echo ' <comment>Personal Application Store Trust File</comment>' >> $MIMEDB'/'$MIMEFILE
62echo ' <glob pattern="*.pappst"/>' >> $MIMEDB'/'$MIMEFILE
63echo ' <generic-icon name="package-x-generic"/>' >> $MIMEDB'/'$MIMEFILE
64echo ' </mime-type>' >> $MIMEDB'/'$MIMEFILE
65
66echo '</mime-info>' >> $MIMEDB'/'$MIMEFILE
67
68if [ ! -f $APPDB/$APPLIST ]; then
69 echo "[Default Applications]" > $APPDB/$APPLIST
70fi
71echo "application/x-personal-application-package=pappi_install.desktop" >> $APPDB/$APPLIST
72echo "application/x-personal-application-store-trust-file=pappi_trust.desktop" >> $APPDB/$APPLIST
73
74echo '[Desktop Entry]' >> $APPDB/$APPLINIK_I
75echo 'Version=1.0' >> $APPDB/$APPLINIK_I
76echo 'Encoding=UTF-8' >> $APPDB/$APPLINIK_I
77echo 'Name=Personal App Installer' >> $APPDB/$APPLINIK_I
78echo 'Terminal=false' >> $APPDB/$APPLINIK_I
79echo 'Exec=/opt/pappi/bin/pappi -i %U' >> $APPDB/$APPLINIK_I
80echo 'Icon=/opt/pappi/icons/pappi_48.png' >> $APPDB/$APPLINIK_I
81echo 'Type=Application' >> $APPDB/$APPLINIK_I
82
83
84update-mime-database $MIMEBASE
85
86echo '... done'
87echo " "
88
89echo "Installing dependencies ..."
90
91apt-get -y install uae wine dosbox zenity
92
93echo '... done'
94
95echo 'Installation of pappi complete.'
  
1#!/bin/bash
2# ==============================================================================
3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
5# the Free Software Foundation; version 3 of the License.
6#
7# This program is distributed in the hope that it will be useful,
8# but WITHOUT ANY WARRANTY; without even the implied warranty of
9# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10# GNU General Public License for more details.
11# ==============================================================================
12# (C) 2010 Maximilian Seesslen <mes(at)seesslen.net>
13
14# Installation
15
16# Just use the general Debian installer
17source "$INSTALLER_DIR/Debian_general"
  
1#!/bin/bash
2# ==============================================================================
3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
5# the Free Software Foundation; version 3 of the License.
6#
7# This program is distributed in the hope that it will be useful,
8# but WITHOUT ANY WARRANTY; without even the implied warranty of
9# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10# GNU General Public License for more details.
11# ==============================================================================
12# (C) 2010 Maximilian Seesslen <mes(at)seesslen.net>
13
14# Installation
15
16# Just use the general Debian installer
17# BTW: lsb_release seems to show the actual stable release code on a testing
18# installation, not the "next" stable.
19source "$INSTALLER_DIR/Debian_general"