Merge pull request #205 from YunoHost/new-sources

Replace app.src with new 'sources' resources
This commit is contained in:
Éric Gaspar 2023-03-09 22:00:49 +01:00 committed by GitHub
commit d3de6c0a1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 9 deletions

View file

@ -1,7 +0,0 @@
SOURCE_URL=url of app's source
SOURCE_SUM=sha256 checksum
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=
SOURCE_EXTRACT=true

View file

@ -23,7 +23,7 @@ cpe = "???"
fund = "???"
[integration]
yunohost = ">= 11.1.6"
yunohost = ">= 11.1.14"
# FIXME: can be replaced by a list of supported archs using the dpkg --print-architecture nomenclature (amd64/i386/armhf/arm64), for example: ["amd64", "i386"]
architectures = "all"
multi_instance = true
@ -74,6 +74,15 @@ ram.runtime = "50M"
# See the packaging documentation for the full set
# of explanation regarding the behavior and properties for each of those
[resources.sources]
[resources.sources.main]
# This will pre-fetch the asset which can then be deployed during the install/upgrade scripts with :
# ynh_setup_source --dest_dir="$install_dir"
# You can also define other assets than "main" and add --source_id="foobar" in the previous command
url = "https://github.com/foo/bar/archive/refs/tags/v1.2.3.tar.gz"
sha256 = "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
[resources.system_user]
# This will provision/deprovision a unix system user
@ -91,7 +100,7 @@ ram.runtime = "50M"
main.url = "/"
[resources.ports]
# This will pick a random port for reverse-proxying and store it as the $port setting
# This will pick a random port for reverse-proxying and store it as the $port setting
[resources.apt]
# This will automatically install/uninstall the following apt packages