started work on media handling in the app center

This commit is contained in:
vollstock
2019-05-23 15:26:45 +00:00
parent c71188cf93
commit 5683192c84
7 changed files with 57 additions and 56 deletions
+40 -23
View File
@@ -1,22 +1,39 @@
# DEB packaging store
# Tooloop Packages
http://packaging.ubuntu.com/html/packaging-new-software.html
https://blog.serverdensity.com/how-to-create-a-debian-deb-package/
https://www.debian.org/doc/debian-policy/ch-binary.html
This repository contains all apps, that come bundled with Tooloop OS.
Its also a great place to get information on how to build your own package.
## Creating a package
Tooloop Packages are ZIP files, containing a Debian package and additional images, displayed in the app center:
package.zip
├─ <package-name>_v.v.v_aaa.deb (mandatory)
└─ media/
├─ <preview_image>.jpg (mandatory)
├─ <optional-image>.png
├─ <optional-image>.jpg
└─ ...
**Debian package**
Create a folder structure with your stuff:
package/
Your-App
├─ media/ (your image files)
│ ├─ some-image.jpg
│ └─ ...
package/ (the Debian package)
├─ DEBIAN/
│ ├─ control (mandatory)
│ ├─ postinst (mandatory)
│ ├─ postrm (mandatory)
│ ├─ postinst (optional)
│ ├─ postrm (optional)
│ └─ ...
├─ assets/
@@ -44,6 +61,9 @@ All other folders except simply copied to disk for you.
**The DEBIAN/control file**
This file contains all the information about your package.
Its used to display information in the app center.
https://linux.die.net/man/5/deb-control
Package: tooloop-processing-example
@@ -63,6 +83,12 @@ https://linux.die.net/man/5/deb-control
# All following lines are used as detailed description.
Description: A simple example, how to make a processing app
Longer description…
# The thumbnail shown in the app center
Thumbnail: thumbnail.jpg
# The media files, shown in the detail view of the package
# can be JPGs and PNGs
Media: image1.jpg,
image2.png
**Scripts**
@@ -94,22 +120,6 @@ e.g.
**Packaging for Tooloop**
package.zip
├─ <package-name>_v.v.v_aaa.deb (mandatory)
└─ media/
├─ preview_image.jpg (mandatory)
├─ <package-name>_1.png
├─ <package-name>_2.jpg
└─ ...
media: png or jpg
preview_image.xxx: thumbnail
<packagename>xxxxx: app center media
## Setting up the local .deb repository
@@ -183,3 +193,10 @@ https://askubuntu.com/a/473511/873460
## Links
**DEB packaging**
http://packaging.ubuntu.com/html/packaging-new-software.html
https://blog.serverdensity.com/how-to-create-a-debian-deb-package/
https://www.debian.org/doc/debian-policy/ch-binary.html
+6 -3
View File
@@ -10,9 +10,12 @@ for folder in *; do
arch="$(cat $folder/package/DEBIAN/control | grep 'Architecture: ')"
version="$(cat $folder/package/DEBIAN/control | grep 'Version: ')"
packagename="${package#*: }_${version#*: }_${arch#*: }"
# Build Debian package
dpkg --build $folder/package $folder/$packagename.deb
# Bundle it with media files for Tooloop app center
zip -9 --exclude=*package* $packagename.zip $folder/$packagename.deb $folder/media/*.png $folder/media/*.jpg
dpkg --build $folder/package $packagename.deb
# Bundle it with media files for the Tooloop app center
# cd $folder
# zip -9 --exclude=*package* ../$packagename.zip $packagename.deb media/*
fi
done
+10 -5
View File
@@ -1,14 +1,19 @@
#!/bin/bash
# move them to the repository
for folder in *; do
if [ -d $folder ] && [ ${folder:0:1} != "#" ]; then
mv $folder/*.deb /assets/packages
for archive in *; do
# if [ -d $folder ] && [ ${folder:0:1} != "#" ]; then
# mv $folder/*.deb /assets/packages
# fi
if [[ $archive =~ \.zip$ ]] && [ ${archive:0:1} != "#" ]; then
unzip -o $archive -d /assets/packages/
fi
done
# update local package repository
/opt/tooloop/scripts/tooloop-update-packages
#/opt/tooloop/scripts/tooloop-update-packages
# list available packages
apt list tooloop*
#apt list tooloop*
tree /assets/packages/
Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

@@ -31,3 +31,4 @@ Description: X.Org X server -- Intel i8xx, i9xx display driver
The use of this driver is discouraged if your hw is new enough (ca.
2007 and newer). You can try uninstalling this driver and let the
server use it's builtin modesetting driver instead.
Thumbnail: intel-display-driver.png
Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

-25
View File
@@ -1,25 +0,0 @@
Package: tooloop-intel-video-driver
Maintainer: vollstock <daniel@vollstock.de>
Original-Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
Homepage: https://www.x.org/
Architecture: amd64
Version: 1.0
Section: tooloop/addon
Depends: xserver-xorg-video-intel
Provides: xorg-driver-video
Download-Size: 728 kB
Installed-Size: 3,259 kB
Name: Intel Video Driver
Description: X.Org X server -- Intel i8xx, i9xx display driver
This package provides the driver for the Intel i8xx and i9xx family
of chipsets, including i810, i815, i830, i845, i855, i865, i915, i945
and i965 series chips.
.
This package also provides XvMC (XVideo Motion Compensation) drivers
for i810/i815 and i9xx and newer chipsets.
.
This package is built from the X.org xf86-video-intel driver module.
.
The use of this driver is discouraged if your hw is new enough (ca.
2007 and newer). You can try uninstalling this driver and let the
server use it's builtin modesetting driver instead.