Browse Source

creating debian package

master
Flutter 5 months ago
parent
commit
8939796c0f
34 changed files with 51 additions and 60 deletions
  1. +8
    -0
      debian/eggnoggpi/DEBIAN/control
  2. +8
    -0
      debian/eggnoggpi/DEBIAN/postinst
  3. +12
    -0
      debian/eggnoggpi/DEBIAN/preinst
  4. +0
    -0
      debian/eggnoggpi/etc/systemd/system/antimicrox.service
  5. +17
    -0
      debian/eggnoggpi/etc/systemd/system/eggnoggpi.service
  6. +2
    -1
      debian/eggnoggpi/etc/systemd/system/mpv.service
  7. +0
    -0
      debian/eggnoggpi/home/pi/.config/antimicrox/A.gamecontroller.amgp
  8. +0
    -0
      debian/eggnoggpi/home/pi/.config/antimicrox/B.gamecontroller.amgp
  9. +4
    -4
      debian/eggnoggpi/home/pi/.config/antimicrox/antimicrox_settings.ini
  10. +0
    -0
      debian/eggnoggpi/home/pi/.madgarden/eggnoggplus/settings.nogg
  11. BIN
      debian/eggnoggpi/home/pi/.madgarden/settings.nogg
  12. +0
    -0
      debian/eggnoggpi/home/pi/intro.ogg
  13. +0
    -0
      debian/eggnoggpi/home/pi/music.ogg
  14. +0
    -0
      debian/eggnoggpi/usr/local/games/eggnoggplus-linux/README.txt
  15. +0
    -0
      debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/font8x8.png
  16. +0
    -0
      debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/glow.png
  17. +0
    -0
      debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/greetz.txt
  18. +0
    -0
      debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/misc.png
  19. +0
    -0
      debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/sprites.png
  20. +0
    -0
      debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/tiles.png
  21. +0
    -0
      debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/tune-work.txt
  22. +0
    -0
      debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/tune.txt
  23. +0
    -0
      debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/tune1.txt
  24. +0
    -0
      debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/tune2.txt
  25. +0
    -0
      debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/tune3.txt
  26. +0
    -0
      debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/tune4.txt
  27. +0
    -0
      debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/tune5.txt
  28. +0
    -0
      debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/tune6.txt
  29. +0
    -0
      debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/tune7.txt
  30. +0
    -0
      debian/eggnoggpi/usr/local/games/eggnoggplus-linux/eggnoggplus
  31. BIN
      eggnoggpi.deb
  32. +0
    -5
      files/etc/default/eggnogg
  33. +0
    -32
      files/etc/default/nodm
  34. +0
    -18
      files/etc/systemd/system/eggnoggpi.service

+ 8
- 0
debian/eggnoggpi/DEBIAN/control View File

@@ -0,0 +1,8 @@
Package: eggnoggpi
Version: 1.0
Priority: standard
Section: games
Architecture: aarch64
Depends: nodm, libsdl2-2.0-0, mpv, antimicrox, box64-arm64
Maintainer: flutterbrony <flutterbrony@admtz.fr>
Description: Eggnogg on a pi

+ 8
- 0
debian/eggnoggpi/DEBIAN/postinst View File

@@ -0,0 +1,8 @@
#!/bin/bash

echo "Install the service"

systemctl daemon-reload
systemctl enable antimicrox eggnoggpi mpv
systemctl start antimicrox mpv eggnoggpi
echo "@reboot root /sbin/service eggnoggpi start" >> /etc/crontab

+ 12
- 0
debian/eggnoggpi/DEBIAN/preinst View File

@@ -0,0 +1,12 @@
#!/bin/bash

echo "Setup swap to no ..."
dphys-swapfile swapoff
dphys-swapfile uninstall
systemctl disable dphys-swapfile

echo "Install box64 repository"
wget https://ryanfortner.github.io/box64-debs/box64.list -O /etc/apt/sources.list.d/box64.list
wget -qO- https://ryanfortner.github.io/box64-debs/KEY.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/box64-debs-archive-keyring.gpg
apt update


files/etc/systemd/system/antimicrox.service → debian/eggnoggpi/etc/systemd/system/antimicrox.service View File


+ 17
- 0
debian/eggnoggpi/etc/systemd/system/eggnoggpi.service View File

@@ -0,0 +1,17 @@
[Unit]
Description=Eggnogg Plus on a Raspberry Pi
Requires=antimicrox.service
After=antimicrox.service

[Service]
Restart=always
User=pi
Group=pi
EnvironmentFile=/etc/default/eggnogg

WorkingDirectory=/home/pi/eggnoggplus-linux
ExecStartPre=sleep 10
ExecStart=/usr/local/games/eggnoggplus-linux/eggnoggplus

[Install]
WantedBy=multi-user.target

files/etc/systemd/system/mpv.service → debian/eggnoggpi/etc/systemd/system/mpv.service View File

@@ -7,7 +7,8 @@ User=pi
Group=pi
EnvironmentFile=/etc/default/eggnogg

ExecStart=/usr/bin/mpv --loop=inf --no-audio-display /home/pi/music.opus
ExecStartPre=/usr/bin/mpv --no-audio-display /home/pi/intro.ogg
ExecStart=/usr/bin/mpv --loop=inf --no-audio-display --volume=80 /home/pi/music.ogg

[Install]
WantedBy=multi-user.target

files/home/A.gamecontroller.amgp → debian/eggnoggpi/home/pi/.config/antimicrox/A.gamecontroller.amgp View File


files/home/B.gamecontroller.amgp → debian/eggnoggpi/home/pi/.config/antimicrox/B.gamecontroller.amgp View File


files/home/.config/antimicrox/antimicrox_settings.ini → debian/eggnoggpi/home/pi/.config/antimicrox/antimicrox_settings.ini View File

@@ -4,7 +4,7 @@ WindowPosition=@Point(0 0)
WindowSize=@Size(650 580)

[Controllers]
Controller0300000079000000110000001001000012117ConfigFile1=/home/pi/A.gamecontroller.amgp
Controller0300000079000000110000001001000012117LastSelected=/home/pi/A.gamecontroller.amgp
Controller0300000079000000110000001001000012119ConfigFile1=/home/pi/B.gamecontroller.amgp
Controller0300000079000000110000001001000012119LastSelected=/home/pi/B.gamecontroller.amgp
Controller0300000079000000110000001001000012117ConfigFile1=/home/pi/.config/antimicrox/A.gamecontroller.amgp
Controller0300000079000000110000001001000012117LastSelected=/home/pi/.config/antimicrox/A.gamecontroller.amgp
Controller0300000079000000110000001001000012119ConfigFile1=/home/pi/.config/antimicrox/B.gamecontroller.amgp
Controller0300000079000000110000001001000012119LastSelected=/home/pi/.config/antimicrox/B.gamecontroller.amgp

files/home/.madgarden/eggnoggplus/settings.nogg → debian/eggnoggpi/home/pi/.madgarden/eggnoggplus/settings.nogg View File


BIN
debian/eggnoggpi/home/pi/.madgarden/settings.nogg View File


files/home/intro.ogg → debian/eggnoggpi/home/pi/intro.ogg View File


files/home/music.ogg → debian/eggnoggpi/home/pi/music.ogg View File


files/home/eggnoggplus-linux/README.txt → debian/eggnoggpi/usr/local/games/eggnoggplus-linux/README.txt View File


files/home/eggnoggplus-linux/data/font8x8.png → debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/font8x8.png View File


files/home/eggnoggplus-linux/data/glow.png → debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/glow.png View File


files/home/eggnoggplus-linux/data/greetz.txt → debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/greetz.txt View File


files/home/eggnoggplus-linux/data/misc.png → debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/misc.png View File


files/home/eggnoggplus-linux/data/sprites.png → debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/sprites.png View File


files/home/eggnoggplus-linux/data/tiles.png → debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/tiles.png View File


files/home/eggnoggplus-linux/data/tune-work.txt → debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/tune-work.txt View File


files/home/eggnoggplus-linux/data/tune.txt → debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/tune.txt View File


files/home/eggnoggplus-linux/data/tune1.txt → debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/tune1.txt View File


files/home/eggnoggplus-linux/data/tune2.txt → debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/tune2.txt View File


files/home/eggnoggplus-linux/data/tune3.txt → debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/tune3.txt View File


files/home/eggnoggplus-linux/data/tune4.txt → debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/tune4.txt View File


files/home/eggnoggplus-linux/data/tune5.txt → debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/tune5.txt View File


files/home/eggnoggplus-linux/data/tune6.txt → debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/tune6.txt View File


files/home/eggnoggplus-linux/data/tune7.txt → debian/eggnoggpi/usr/local/games/eggnoggplus-linux/data/tune7.txt View File


files/home/eggnoggplus-linux/eggnoggplus → debian/eggnoggpi/usr/local/games/eggnoggplus-linux/eggnoggplus View File


BIN
eggnoggpi.deb View File


+ 0
- 5
files/etc/default/eggnogg View File

@@ -1,5 +0,0 @@
# X-Windows screen identifier
DISPLAY=:0
XDG_SESSION_CLASS=user
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
XDG_RUNTIME_DIR=/run/user/1001

+ 0
- 32
files/etc/default/nodm View File

@@ -1,32 +0,0 @@
# nodm configuration

# Set NODM_ENABLED to something different than 'false' to enable nodm
NODM_ENABLED=true

# User to autologin for
NODM_USER=pi

# First vt to try when looking for free VTs
NODM_FIRST_VT='7'

# X session
NODM_XSESSION=/etc/X11/Xsession

# Options for nodm itself
NODM_OPTIONS=

# Options for the X server.
#
# Format: [/usr/bin/<Xserver>] [:<disp>] <Xserver-options>
#
# The Xserver executable and the display name can be omitted, but should
# be placed in front, if nodm's defaults shall be overridden.
NODM_X_OPTIONS='-nolisten tcp'

# If an X session will run for less than this time in seconds, nodm will wait an
# increasing bit of time before restarting the session.
NODM_MIN_SESSION_TIME=60

# Timeout (in seconds) to wait for X to be ready to accept connections. If X is
# not ready before this timeout, it is killed and restarted.
NODM_X_TIMEOUT=300

+ 0
- 18
files/etc/systemd/system/eggnoggpi.service View File

@@ -1,18 +0,0 @@
[Unit]
Description=Eggnogg Plus on a Raspberry Pi
Requires=nodm.service
After=nodm.service

[Service]
Restart=always
User=pi
Group=pi
EnvironmentFile=/etc/default/eggnogg

WorkingDirectory=/home/pi/eggnoggplus-linux
ExecStartPre=/usr/bin/mpv --loop-file=inf --background-color=black /home/pi/music.opus &
ExecStart=/home/pi/eggnoggplus-linux/eggnoggplus

[Install]
WantedBy=graphical.target


Loading…
Cancel
Save