2019-07-30 23:07:27 +02:00
|
|
|
#!/bin/bash
|
|
|
|
# Retrieve sources, get sha256sum, parse package version and update these strings in manifest, README and /conf/app.src
|
|
|
|
|
2020-06-03 23:41:51 +02:00
|
|
|
# URL=$(curl -s https://api.github.com/repos/duniter/cesium/releases/latest | grep "browser_" | grep "web" | head -1 | cut -d\" -f4)
|
2020-06-03 19:42:02 +02:00
|
|
|
# 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
|
2019-07-30 23:07:27 +02:00
|
|
|
|
2020-06-03 19:42:02 +02:00
|
|
|
# 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
|
2019-07-30 23:07:27 +02:00
|
|
|
|
2020-06-03 19:42:02 +02:00
|
|
|
# rm -f -R ./tmp
|
|
|
|
|
|
|
|
# git commit README.md manifest.json conf/app.src -m "$VERSION"
|