This commit is contained in:
Daniel Stock
2019-05-24 13:26:50 +02:00
2637 changed files with 78 additions and 59 deletions
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
+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
+12 -6
View File
@@ -5,14 +5,20 @@ set -e
# build packages
for folder in *; do
if [ -d $folder ] && [ ${folder:0:1} != "#" ]; then
cd $folder
# Get package infos
package="$(cat $folder/package/DEBIAN/control | grep 'Package: ')"
arch="$(cat $folder/package/DEBIAN/control | grep 'Architecture: ')"
version="$(cat $folder/package/DEBIAN/control | grep 'Version: ')"
package="$(cat package/DEBIAN/control | grep 'Package: ')"
arch="$(cat package/DEBIAN/control | grep 'Architecture: ')"
version="$(cat 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 package $packagename.deb
# Bundle it with media files for the Tooloop app center
zip -9 --exclude=*package* ../$packagename.zip $packagename.deb media/*
cd ..
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/

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

+2
View File
@@ -38,3 +38,5 @@ Description: Library for constructing graphs of media-handling components
GStreamer is a library for constructing graphs of media-handling components.
The applications it supports range from simple Ogg/Vorbis playback, audio/video
streaming to complex audio (mixing) and video (non-linear editing) processing.
Thumbnail: gstreamer-thumbnail.png

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

+2
View File
@@ -10,3 +10,5 @@ Name: Image slideshow
Description: Image slideshow with smooth transitions
A simple example app using the chromium browser and some javascript to display
a fullscreen image slideshow.
Thumbnail: image-slideshow-thumbnail.jpg

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

@@ -31,3 +31,5 @@ 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-thumbnail.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.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

+2
View File
@@ -11,3 +11,5 @@ Name: Kiosk Browser
Description: Full-screen browser for touch kiosks
A simple full-screen kiosk browser based on chromium.
You can define its homepage in the settings.
Thumbnail: kiosk-browser-thumbnail.jpg

Before

Width:  |  Height:  |  Size: 101 KiB

After

Width:  |  Height:  |  Size: 101 KiB

+2
View File
@@ -11,3 +11,5 @@ Description: Software sketchbook and a language for learning how to code
promoted software literacy within the visual arts and visual literacy within
technology. There are tens of thousands of students, artists, designers,
researchers, and hobbyists who use Processing for learning and prototyping.
Thumbnail: processing-3.4-thumbnail.png
View File
View File
View File

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Before

Width:  |  Height:  |  Size: 8.4 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before

Width:  |  Height:  |  Size: 7.6 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before

Width:  |  Height:  |  Size: 417 B

After

Width:  |  Height:  |  Size: 417 B

Before

Width:  |  Height:  |  Size: 417 B

After

Width:  |  Height:  |  Size: 417 B

Before

Width:  |  Height:  |  Size: 417 B

After

Width:  |  Height:  |  Size: 417 B

Before

Width:  |  Height:  |  Size: 464 B

After

Width:  |  Height:  |  Size: 464 B

Before

Width:  |  Height:  |  Size: 464 B

After

Width:  |  Height:  |  Size: 464 B

Before

Width:  |  Height:  |  Size: 464 B

After

Width:  |  Height:  |  Size: 464 B

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Before

Width:  |  Height:  |  Size: 402 B

After

Width:  |  Height:  |  Size: 402 B

Before

Width:  |  Height:  |  Size: 402 B

After

Width:  |  Height:  |  Size: 402 B

Before

Width:  |  Height:  |  Size: 402 B

After

Width:  |  Height:  |  Size: 402 B

Before

Width:  |  Height:  |  Size: 473 B

After

Width:  |  Height:  |  Size: 473 B

Before

Width:  |  Height:  |  Size: 473 B

After

Width:  |  Height:  |  Size: 473 B

Before

Width:  |  Height:  |  Size: 473 B

After

Width:  |  Height:  |  Size: 473 B

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Some files were not shown because too many files have changed in this diff Show More