mirror of
https://github.com/YunoHost-Apps/cesium_ynh.git
synced 2024-09-03 18:06:25 +02:00
Update helper-update-manifest-readme
Add git pull && request-pull
This commit is contained in:
parent
cd1ccb8737
commit
ade0171124
1 changed files with 9 additions and 5 deletions
|
@ -1,13 +1,17 @@
|
||||||
# Retrieve sources, get sha256sum, parse package version and update these strings in manifest, README and conf/app.src
|
#!/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)
|
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
|
wget -nc --quiet $url -P /tmp
|
||||||
CHECKSUM=$(sudo sha256sum /tmp/cesium-*-web.zip | head -c 64)
|
CHECKSUM=$(sudo sha256sum /tmp/cesium-*-web.zip | head -c 64)
|
||||||
sed -i "s/SOURCE_SUM=.*/SOURCE_SUM=${CHECKSUM}/" /conf/app.src
|
sed -i "s/SOURCE_SUM=.*/SOURCE_SUM=${CHECKSUM}/" ./conf/app.src
|
||||||
|
|
||||||
PACKAGE_VERSION=$(curl -s https://api.github.com/repos/duniter/cesium/releases/latest | grep "tag_name" | head -1 | cut -d\" -f4)
|
PACKAGE_VERSION=$(curl -s https://api.github.com/repos/duniter/cesium/releases/latest | grep "tag_name" | head -1 | cut -d\" -f4)
|
||||||
sed -i "s/SOURCE_URL=.*/SOURCE_URL="https://github.com/duniter/cesium/releases/download/"${PACKAGE_VERSION}"/cesium-"${PACKAGE_VERSION}"-web.zip"/" /conf/app.src
|
sed -i "s/SOURCE_URL=.*/SOURCE_URL="https://github.com/duniter/cesium/releases/download/"${PACKAGE_VERSION}"/cesium-"${PACKAGE_VERSION}"-web.zip"/" ./conf/app.src
|
||||||
sed -i "s/"\*\*Shipped version:\*\* ".*/"\*\*Shipped version:\*\* ${PACKAGE_VERSION}/" /README.md
|
sed -i "s/"\*\*Shipped version:\*\* ".*/"\*\*Shipped version:\*\* ${PACKAGE_VERSION}/" ./README.md
|
||||||
sed -i "s/" \"version\": \"v".*/" \"version\": \"v${PACKAGE_VERSION}\~ynh1\","/" /manifest.json
|
sed -i "s/" \"version\": \"v".*/" \"version\": \"v${PACKAGE_VERSION}\~ynh1\","/" ./manifest.json
|
||||||
|
|
||||||
sudo rm -f /tmp/cesium-*-web.zip
|
sudo rm -f /tmp/cesium-*-web.zip
|
||||||
|
|
||||||
|
git push
|
||||||
|
git request-pull
|
||||||
|
|
Loading…
Add table
Reference in a new issue