mirror of
https://github.com/YunoHost-Apps/cesium_ynh.git
synced 2024-09-03 18:06:25 +02:00
Update helper-update-version
This commit is contained in:
parent
029f8b8d40
commit
c0b78e82d2
1 changed files with 0 additions and 3 deletions
|
@ -2,15 +2,12 @@
|
||||||
# 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)
|
URL=$(curl -s https://api.github.com/repos/duniter/cesium/releases/latest | grep "browser_" | grep "web" | head -1 | cut -d\" -f4)
|
||||||
echo $URL
|
|
||||||
wget -nc --quiet $URL -P ./tmp
|
wget -nc --quiet $URL -P ./tmp
|
||||||
CHECKSUM=$(sha256sum ./tmp/cesium-*-web.zip | head -c 64)
|
CHECKSUM=$(sha256sum ./tmp/cesium-*-web.zip | head -c 64)
|
||||||
echo $CHECKSUM
|
|
||||||
sed -i "s/SOURCE_SUM=.*/SOURCE_SUM=${CHECKSUM}/" ./conf/app.src
|
sed -i "s/SOURCE_SUM=.*/SOURCE_SUM=${CHECKSUM}/" ./conf/app.src
|
||||||
sed -i "s#SOURCE_URL=.*#SOURCE_URL=$URL#" ./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#")
|
VERSION=$(echo $URL | sed "s#https://github.com/duniter/cesium/releases/download/\(.*\)/cesium.*#\1#")
|
||||||
echo $VERSION
|
|
||||||
sed -i "s#\*\*Shipped version:\*\*.*#\*\*Shipped version:\*\* ${VERSION}#" ./README.md
|
sed -i "s#\*\*Shipped version:\*\*.*#\*\*Shipped version:\*\* ${VERSION}#" ./README.md
|
||||||
sed -i "s# \"version\": \".*# \"version\": \"${VERSION}\~ynh1\",#" ./manifest.json
|
sed -i "s# \"version\": \".*# \"version\": \"${VERSION}\~ynh1\",#" ./manifest.json
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue