From 14cb70376f3e4ca616924a5fffa4a7a9f0db3a94 Mon Sep 17 00:00:00 2001 From: Thomas Balthazar Date: Thu, 22 Nov 2018 18:09:48 +0100 Subject: [PATCH] Publish version 0.2.3 - update the `upgrade` script - add instruction about how to upgrade in the README - update the index.html file so it doesn't contain information that might change often (link to our website instead) --- README.md | 5 +++++ scripts/upgrade | 6 ++++++ sources/index.html | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5f5383b..fea87e6 100644 --- a/README.md +++ b/README.md @@ -40,3 +40,8 @@ After `Running command 'yunohost app setting vpnclient login_passphrase -v "xxxx Failed to open /dev/tty: No such device or address It doesn't prevent the script from running. + +# Publish a new version of the app + +- edit the [upgrade](scripts/upgrade) script to bump the version +- update the `revision` with the current `sha` on the `master` branch, update the `lastUpdate` field in the [apps.json](https://neutrinet.be/apps.json) file diff --git a/scripts/upgrade b/scripts/upgrade index c5ae14c..295ad40 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -40,3 +40,9 @@ EOF sudo chown root:root /etc/cron.daily/neutrinet-renew-cert sudo chmod 0755 /etc/cron.daily/neutrinet-renew-cert fi + +# 0.2.2 -> 0.2.3 +if [[ "$version" == "0.2.2" ]]; then + sudo yunohost app setting neutrinet version -v "0.2.3" + version="0.2.3" +fi diff --git a/sources/index.html b/sources/index.html index 4713c9c..cc0f612 100644 --- a/sources/index.html +++ b/sources/index.html @@ -22,7 +22,7 @@