1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cesium_ynh.git synced 2024-09-03 18:06:25 +02:00

commnet helper-update-version

This commit is contained in:
Robles Rodolphe 2020-06-03 19:42:02 +02:00
parent 54c541e2da
commit 640fa2770a
3 changed files with 15 additions and 17 deletions

View file

@ -12,7 +12,7 @@ If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to
[Cesium](https://cesium.app) is an [Unhosted webapp](https://unhosted.org) client for any [Duniter](https://duniter.org) crypto-currency.
It allows you to manage your wallet, certify your friends, and more !
**Shipped version:** v1.6.3
**Shipped version:** v1.6.7
## Links

View file

@ -1,16 +1,16 @@
#!/bin/bash
# Retrieve sources, get sha256sum, parse package version and update these strings in manifest, README and /conf/app.src
URL=$(curl -s https://api.github.com/repos/duniter/cesium/releases/latest | grep "browser_" | grep "web" | head -1 | cut -d\" -f4)
wget -nc --quiet $URL -P ./tmp
CHECKSUM=$(sha256sum ./tmp/cesium-*-web.zip | head -c 64)
sed -i "s/SOURCE_SUM=.*/SOURCE_SUM=${CHECKSUM}/" ./conf/app.src
sed -i "s#SOURCE_URL=.*#SOURCE_URL=$URL#" ./conf/app.src
# URL=$(curl -s https://api.github.com/repos/duniter/cesium/releases/ | grep "browser_" | grep "web" | head -1 | cut -d\" -f4)
# wget -nc --quiet $URL -P ./tmp
# CHECKSUM=$(sha256sum ./tmp/cesium-*-web.zip | head -c 64)
# sed -i "s/SOURCE_SUM=.*/SOURCE_SUM=${CHECKSUM}/" ./conf/app.src
# sed -i "s#SOURCE_URL=.*#SOURCE_URL=$URL#" ./conf/app.src
VERSION=$(echo $URL | sed "s#https://github.com/duniter/cesium/releases/download/\(.*\)/cesium.*#\1#")
sed -i "s#\*\*Shipped version:\*\*.*#\*\*Shipped version:\*\* ${VERSION}#" ./README.md
sed -i "s# \"version\": \".*# \"version\": \"${VERSION}\~ynh1\",#" ./manifest.json
# VERSION=$(echo $URL | sed "s#https://github.com/duniter/cesium/releases/download/\(.*\)/cesium.*#\1#")
# sed -i "s#\*\*Shipped version:\*\*.*#\*\*Shipped version:\*\* ${VERSION}#" ./README.md
# sed -i "s# \"version\": \".*# \"version\": \"${VERSION}\~ynh1\",#" ./manifest.json
rm -f -R ./tmp
# rm -f -R ./tmp
git commit README.md manifest.json conf/app.src -m "$VERSION"
# git commit README.md manifest.json conf/app.src -m "$VERSION"

View file

@ -33,8 +33,6 @@ sed -i "s@YNH_WWW_PATH@$path@g" $nginx_conf
sed -i "s@YNH_WWW_ALIAS@$src_path/@g" $nginx_conf
cp $nginx_conf /etc/nginx/conf.d/$domain.d/$app.conf
# If app is public, add url to SSOWat conf as skipped_uris
if [[ $is_public -eq 1 ]]; then
# unprotected_uris allows SSO credentials to be passed anyway.