From 5fbed01f9368315877a705c4d567381e32fbfb71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Tue, 30 Jan 2024 10:24:51 +0100 Subject: [PATCH] Fix manifest, add schema --- manifest.toml | 51 ++++++++++++++++++++++++++++++++++++--------------- tests.toml | 2 ++ 2 files changed, 38 insertions(+), 15 deletions(-) diff --git a/manifest.toml b/manifest.toml index df86f32..526c4ba 100644 --- a/manifest.toml +++ b/manifest.toml @@ -1,3 +1,5 @@ +#:schema https://raw.githubusercontent.com/YunoHost/apps/master/schemas/manifest.v2.schema.json + packaging_format = 2 id = "photoprism" @@ -19,7 +21,7 @@ code = "https://github.com/photoprism/photoprism" fund = "https://www.photoprism.app/membership" [integration] -yunohost = ">= 11.1.21" +yunohost = ">= 11.2" architectures = ["amd64", "arm64", "armhf"] multi_instance = false ldap = false @@ -45,7 +47,7 @@ ram.runtime = "50M" [install.language] ask.en = "Choose the application language" ask.fr = "Choisissez la langue de l'application" - type = "string" + type = "select" choices = ["fr", "en"] default = "fr" @@ -56,20 +58,20 @@ ram.runtime = "50M" [resources] [resources.sources] - [resources.sources.main] - format = "docker" - extract = true - prefetch = false + [resources.sources.main] + format = "docker" + extract = true + prefetch = false - amd64.url = "photoprism/photoprism:220901-bullseye" - amd64.sha256 = "3381d40181ecdf62932e9530c6b81e6e0f8828a3d373d8dedf662aab96dafba4" - - arm64.url = "photoprism/photoprism:220901-bullseye" - arm64.sha256 = "3dcffda0a2b58c91479c883205025edee4ea799fc35be419f9bec708ccb54b7f" + amd64.url = "photoprism/photoprism:220901-bullseye" + amd64.sha256 = "3381d40181ecdf62932e9530c6b81e6e0f8828a3d373d8dedf662aab96dafba4" + + arm64.url = "photoprism/photoprism:220901-bullseye" + arm64.sha256 = "3dcffda0a2b58c91479c883205025edee4ea799fc35be419f9bec708ccb54b7f" + + armhf.url = "photoprism/photoprism:220901-bullseye" + armhf.sha256 = "a74f4d0a220af9a5291307bfba36f662d97c4df143f04d951e3c30111916317e" - armhf.url = "photoprism/photoprism:220901-bullseye" - armhf.sha256 = "a74f4d0a220af9a5291307bfba36f662d97c4df143f04d951e3c30111916317e" - [resources.system_user] [resources.install_dir] @@ -89,7 +91,26 @@ ram.runtime = "50M" main.default = 8095 [resources.apt] - packages = "libc6-dev, libssl-dev, libxft-dev, libhdf5-serial-dev, libpng-dev, libheif-examples, librsvg2-bin, libx264-dev, libx265-dev, libnss3, libfreetype6, libfreetype6-dev, libfontconfig1, libfontconfig1-dev, libzmq3-dev, ffmpeg, libimage-exiftool-perl, mariadb-server" + packages = [ + "libc6-dev", + "libssl-dev", + "libxft-dev", + "libhdf5-serial-dev", + "libpng-dev", + "libheif-examples", + "librsvg2-bin", + "libx264-dev", + "libx265-dev", + "libnss3", + "libfreetype6", + "libfreetype6-dev", + "libfontconfig1", + "libfontconfig1-dev", + "libzmq3-dev", + "ffmpeg", + "libimage-exiftool-perl", + "mariadb-server", + ] [resources.database] type = "mysql" diff --git a/tests.toml b/tests.toml index 08e2532..63cc1b8 100644 --- a/tests.toml +++ b/tests.toml @@ -1,3 +1,5 @@ +#:schema https://raw.githubusercontent.com/YunoHost/apps/master/schemas/tests.v1.schema.json + test_format = 1.0 [default]