1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/UMS_ynh.git synced 2024-10-01 13:35:01 +02:00

source in manifest.toml

This commit is contained in:
Krakinou 2023-04-30 13:42:57 +02:00
parent 91c21f5305
commit 1a329c4931

View file

@ -99,16 +99,11 @@ else
extension=${filename##*.} extension=${filename##*.}
fi fi
# Rewrite source file #update manifest
cat <<EOT > conf/$src.src sed -i "s/\A$src.url =.*/$src.url = \"$asset_url\"/" manifest.toml
SOURCE_URL=$asset_url sed -i "s/\A$src.sha256 =*./$src.sha256 = \"$checksum\"/" manifest.toml
SOURCE_SUM=$checksum
SOURCE_SUM_PRG=sha256sum echo "... Source updated in manifest.toml"
SOURCE_FORMAT=tar.gz
SOURCE_EXTRACT=true
SOURCE_IN_SUBDIR=true
EOT
echo "... conf/$src.src updated"
else else
echo "... asset ignored" echo "... asset ignored"