mirror of
https://github.com/Tooloop/Tooloop-Packages.git
synced 2026-04-27 20:41:37 +02:00
started work on media handling in the app center
This commit is contained in:
@@ -1,22 +1,39 @@
|
|||||||
# DEB packaging store
|
# Tooloop Packages
|
||||||
|
|
||||||
http://packaging.ubuntu.com/html/packaging-new-software.html
|
This repository contains all apps, that come bundled with Tooloop OS.
|
||||||
https://blog.serverdensity.com/how-to-create-a-debian-deb-package/
|
It’s also a great place to get information on how to build your own package.
|
||||||
https://www.debian.org/doc/debian-policy/ch-binary.html
|
|
||||||
|
|
||||||
|
|
||||||
## Creating a 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**
|
**Debian package**
|
||||||
|
|
||||||
Create a folder structure with your stuff:
|
Create a folder structure with your stuff:
|
||||||
|
|
||||||
package/
|
Your-App
|
||||||
│
|
│
|
||||||
|
├─ media/ (your image files)
|
||||||
|
│ ├─ some-image.jpg
|
||||||
|
│ └─ ...
|
||||||
|
│
|
||||||
|
package/ (the Debian package)
|
||||||
├─ DEBIAN/
|
├─ DEBIAN/
|
||||||
│ ├─ control (mandatory)
|
│ ├─ control (mandatory)
|
||||||
│ ├─ postinst (mandatory)
|
│ ├─ postinst (optional)
|
||||||
│ ├─ postrm (mandatory)
|
│ ├─ postrm (optional)
|
||||||
│ └─ ...
|
│ └─ ...
|
||||||
│
|
│
|
||||||
├─ assets/
|
├─ assets/
|
||||||
@@ -44,6 +61,9 @@ All other folders except simply copied to disk for you.
|
|||||||
|
|
||||||
**The DEBIAN/control file**
|
**The DEBIAN/control file**
|
||||||
|
|
||||||
|
This file contains all the information about your package.
|
||||||
|
It’s used to display information in the app center.
|
||||||
|
|
||||||
https://linux.die.net/man/5/deb-control
|
https://linux.die.net/man/5/deb-control
|
||||||
|
|
||||||
Package: tooloop-processing-example
|
Package: tooloop-processing-example
|
||||||
@@ -63,6 +83,12 @@ https://linux.die.net/man/5/deb-control
|
|||||||
# All following lines are used as detailed description.
|
# All following lines are used as detailed description.
|
||||||
Description: A simple example, how to make a processing app
|
Description: A simple example, how to make a processing app
|
||||||
Longer description…
|
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**
|
**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
|
## 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
|
||||||
@@ -10,9 +10,12 @@ for folder in *; do
|
|||||||
arch="$(cat $folder/package/DEBIAN/control | grep 'Architecture: ')"
|
arch="$(cat $folder/package/DEBIAN/control | grep 'Architecture: ')"
|
||||||
version="$(cat $folder/package/DEBIAN/control | grep 'Version: ')"
|
version="$(cat $folder/package/DEBIAN/control | grep 'Version: ')"
|
||||||
packagename="${package#*: }_${version#*: }_${arch#*: }"
|
packagename="${package#*: }_${version#*: }_${arch#*: }"
|
||||||
|
|
||||||
# Build Debian package
|
# Build Debian package
|
||||||
dpkg --build $folder/package $folder/$packagename.deb
|
dpkg --build $folder/package $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
|
# Bundle it with media files for the Tooloop app center
|
||||||
|
# cd $folder
|
||||||
|
# zip -9 --exclude=*package* ../$packagename.zip $packagename.deb media/*
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -1,14 +1,19 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# move them to the repository
|
# move them to the repository
|
||||||
for folder in *; do
|
for archive in *; do
|
||||||
if [ -d $folder ] && [ ${folder:0:1} != "#" ]; then
|
# if [ -d $folder ] && [ ${folder:0:1} != "#" ]; then
|
||||||
mv $folder/*.deb /assets/packages
|
# mv $folder/*.deb /assets/packages
|
||||||
|
# fi
|
||||||
|
if [[ $archive =~ \.zip$ ]] && [ ${archive:0:1} != "#" ]; then
|
||||||
|
unzip -o $archive -d /assets/packages/
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# update local package repository
|
# update local package repository
|
||||||
/opt/tooloop/scripts/tooloop-update-packages
|
#/opt/tooloop/scripts/tooloop-update-packages
|
||||||
|
|
||||||
# list available 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.
|
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
|
2007 and newer). You can try uninstalling this driver and let the
|
||||||
server use it's builtin modesetting driver instead.
|
server use it's builtin modesetting driver instead.
|
||||||
|
Thumbnail: intel-display-driver.png
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 12 KiB |
@@ -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.
|
|
||||||
Reference in New Issue
Block a user