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:
parent
54c541e2da
commit
640fa2770a
3 changed files with 15 additions and 17 deletions
|
@ -1,10 +1,10 @@
|
||||||
# Cesium package for YunoHost
|
# Cesium package for YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/cesium)  
|
[](https://dash.yunohost.org/appci/app/cesium)  
|
||||||
[](https://install-app.yunohost.org/?app=cesium)
|
[](https://install-app.yunohost.org/?app=cesium)
|
||||||
|
|
||||||
|
|
||||||
> *This package allow you to install Cesium quickly and simply on a YunoHost server.
|
> *This package allow you to install Cesium quickly and simply on a YunoHost server.
|
||||||
If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to know how to install and enjoy it.*
|
If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to know how to install and enjoy it.*
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
@ -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.
|
[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 !
|
It allows you to manage your wallet, certify your friends, and more !
|
||||||
|
|
||||||
**Shipped version:** v1.6.3
|
**Shipped version:** v1.6.7
|
||||||
|
|
||||||
## Links
|
## Links
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Retrieve sources, get sha256sum, parse package version and update these strings in manifest, README and /conf/app.src
|
# 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
|
|
||||||
|
|
||||||
VERSION=$(echo $URL | sed "s#https://github.com/duniter/cesium/releases/download/\(.*\)/cesium.*#\1#")
|
# URL=$(curl -s https://api.github.com/repos/duniter/cesium/releases/ | grep "browser_" | grep "web" | head -1 | cut -d\" -f4)
|
||||||
sed -i "s#\*\*Shipped version:\*\*.*#\*\*Shipped version:\*\* ${VERSION}#" ./README.md
|
# wget -nc --quiet $URL -P ./tmp
|
||||||
sed -i "s# \"version\": \".*# \"version\": \"${VERSION}\~ynh1\",#" ./manifest.json
|
# 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
|
||||||
|
|
||||||
rm -f -R ./tmp
|
# 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
|
||||||
|
|
||||||
git commit README.md manifest.json conf/app.src -m "$VERSION"
|
# rm -f -R ./tmp
|
||||||
|
|
||||||
|
# git commit README.md manifest.json conf/app.src -m "$VERSION"
|
||||||
|
|
|
@ -33,14 +33,12 @@ sed -i "s@YNH_WWW_PATH@$path@g" $nginx_conf
|
||||||
sed -i "s@YNH_WWW_ALIAS@$src_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
|
cp $nginx_conf /etc/nginx/conf.d/$domain.d/$app.conf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# If app is public, add url to SSOWat conf as skipped_uris
|
# If app is public, add url to SSOWat conf as skipped_uris
|
||||||
if [[ $is_public -eq 1 ]]; then
|
if [[ $is_public -eq 1 ]]; then
|
||||||
# unprotected_uris allows SSO credentials to be passed anyway.
|
# unprotected_uris allows SSO credentials to be passed anyway.
|
||||||
ynh_app_setting_set "$app" unprotected_uris "/"
|
ynh_app_setting_set "$app" unprotected_uris "/"
|
||||||
# activate read-only
|
# activate read-only
|
||||||
ynh_replace_string --match_string='"readonly": false,' --replace_string='"readonly": true,' --target_file="$src_path/config.js"
|
ynh_replace_string --match_string='"readonly": false,' --replace_string='"readonly": true,' --target_file="$src_path/config.js"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Reload nginx service
|
# Reload nginx service
|
||||||
|
|
Loading…
Add table
Reference in a new issue