1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ntfy_ynh.git synced 2024-09-03 19:46:27 +02:00

Switch to manifest src handling (#26)

* Switch to manifest src handling - take 1

* Switch to manifest src handling - take 2

* Switch to manifest src handling - take 3

* Update pkg to 2.7.0~ynh2
This commit is contained in:
Alexander Wühr 2023-09-04 22:31:24 +02:00 committed by GitHub
parent efc30f6e7a
commit 74004f765e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 19 additions and 40 deletions

View file

@ -1,6 +0,0 @@
SOURCE_URL=https://github.com/binwiederhier/ntfy/releases/download/v2.7.0/ntfy_2.7.0_linux_amd64.tar.gz
SOURCE_SUM=2218bea3204348700034cff652437e317b8ed2466aa58d8b2444b41b68eaf5e2
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=ntfy_2.7.0_linux_amd64

View file

@ -1,6 +0,0 @@
SOURCE_URL=https://github.com/binwiederhier/ntfy/releases/download/v2.7.0/ntfy_2.7.0_linux_arm64.tar.gz
SOURCE_SUM=1e0e1bc4183e3ffecbe8d8b1b91b5df8965d907968588c19b7a591719bd146fb
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=ntfy_2.7.0_linux_arm64

View file

@ -1,6 +0,0 @@
SOURCE_URL=https://github.com/binwiederhier/ntfy/releases/download/v2.7.0/ntfy_2.7.0_linux_armv7.tar.gz
SOURCE_SUM=84981fe6f4234fb8e6429b0c6cbe7090bab1f773e1994b42237c40c244cdd326
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=ntfy_2.7.0_linux_armv7

View file

@ -5,7 +5,7 @@ name = "ntfy"
description.en = "Open Source Push Notification Server" description.en = "Open Source Push Notification Server"
description.fr = "Serveur open source de notification" description.fr = "Serveur open source de notification"
version = "2.7.0~ynh1" version = "2.7.0~ynh2"
maintainers = ["Alexander Wühr"] maintainers = ["Alexander Wühr"]
@ -43,6 +43,23 @@ ram.runtime = "50M"
type = "password" type = "password"
[resources] [resources]
[resources.sources]
[resources.sources.main]
autoupdate.strategy = "latest_github_release"
autoupdate.asset.amd64 = '.*_linux_amd64\.tar\.gz'
autoupdate.asset.arm64 = '.*_linux_arm64\.tar\.gz'
autoupdate.asset.armhf = '.*_linux_armv7\.tar\.gz'
amd64.url = "https://github.com/binwiederhier/ntfy/releases/download/v2.7.0/ntfy_2.7.0_linux_amd64.tar.gz"
amd64.sha256 = "2218bea3204348700034cff652437e317b8ed2466aa58d8b2444b41b68eaf5e2"
arm64.url = "https://github.com/binwiederhier/ntfy/releases/download/v2.7.0/ntfy_2.7.0_linux_arm64.tar.gz"
arm64.sha256 = "1e0e1bc4183e3ffecbe8d8b1b91b5df8965d907968588c19b7a591719bd146fb"
armhf.url = "https://github.com/binwiederhier/ntfy/releases/download/v2.7.0/ntfy_2.7.0_linux_armv7.tar.gz"
armhf.sha256 ="84981fe6f4234fb8e6429b0c6cbe7090bab1f773e1994b42237c40c244cdd326"
[resources.system_user] [resources.system_user]
[resources.install_dir] [resources.install_dir]

View file

@ -9,7 +9,7 @@
#================================================= #=================================================
ntfy_setup_source() { ntfy_setup_source() {
ynh_setup_source -d "$install_dir" -s "$YNH_ARCH" ynh_setup_source -d "$install_dir"
mkdir -p "$install_dir/data" mkdir -p "$install_dir/data"
chown -R $app:$app "$install_dir" chown -R $app:$app "$install_dir"
chmod -R 750 "$install_dir/data" chmod -R 750 "$install_dir/data"

View file

@ -1,20 +0,0 @@
#!/bin/bash
VERSION=$1
CHECKSUMS=`wget https://github.com/binwiederhier/ntfy/releases/download/v$VERSION/checksums.txt -q -O -`
src() {
cat << SH > conf/$1.src
SOURCE_URL=https://github.com/binwiederhier/ntfy/releases/download/v${VERSION}/ntfy_${VERSION}_linux_${2}.tar.gz
SOURCE_SUM=`echo "$CHECKSUMS" | grep ${VERSION}_linux_${2}.tar.gz | cut -d " " -f 1`
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=ntfy_${VERSION}_linux_${2}
SH
}
src amd64 amd64
src arm64 arm64
src armhf armv7