Skip to content

Create Debian Installer

PeteManchester edited this page Aug 6, 2015 · 5 revisions

create folder /home/pi/mediaplayer_install
create debian folder
create home/pi/mediaplayer folder in debian folder
copy mediaplayer files to debian/home/pi/mediaplayer folder
create debian/DEBIAN
Create debian/DEBIAN/control file

Package: mediaplayer
Version: 1.0
Section: web
Priority: optional
Architecture: all
Maintainer: Pete Hoyle 
Description: Test Java MediaPlayer install 

Create debian/DEBIAN/postinst file

#!/bin/sh
# postinst script for mediaplayer
#
install -m 755 -T /home/pi/mediaplayer/scripts/mediaplayer.init /etc/init.d/mediaplayer
install -m 755 -T /home/pi/mediaplayer/scripts/mediaplayer.sh /usr/local/bin/mediaplayer
insserv mediaplayer
exit 0

dpkg --build debian

dpkg -i debian.deb