diff --git a/release.sh b/release.sh index 513a034..a95f4cf 100755 --- a/release.sh +++ b/release.sh @@ -21,7 +21,7 @@ perl -pi -e "s/\"version\": \"[^\"]*\"/\"version\": \"$version\"/" src/manifest. ./build.sh "$version" perl -pi -e "s/\"version\": \"[^\"]*\",/\"version\": \"${version}\",/" updates.json -perl -pi -e "s/\"update_link\": \"[^\"]*\",/\"update_link\": \"https:\/\/github.com\/UB-Mannheim\/zotero-ocr\/releases\/tag\/${version}\/zotero-ocr-${version}.xpi\",/" updates.json +perl -pi -e "s/\"update_link\": \"[^\"]*\",/\"update_link\": \"https:\/\/github.com\/UB-Mannheim\/zotero-ocr\/releases\/download\/${version}\/zotero-ocr-${version}.xpi\",/" updates.json perl -pi -e "s/\"update_hash\": \"[^\"]*\",/\"update_hash\": \"sha256:$(shasum -a 256 build\/zotero-ocr-${version}.xpi | cut -d' ' -f1)\",/" updates.json cp updates.json update.rdf diff --git a/update.rdf b/update.rdf index 2d14a2b..86daa1f 100644 --- a/update.rdf +++ b/update.rdf @@ -4,7 +4,7 @@ "updates": [ { "version": "0.7.0", - "update_link": "https://github.com/UB-Mannheim/zotero-ocr/releases/tag/0.7.0/zotero-ocr-0.7.0.xpi", + "update_link": "https://github.com/UB-Mannheim/zotero-ocr/releases/download/0.7.0/zotero-ocr-0.7.0.xpi", "update_hash": "sha256:b649b6a7b75138b65896eca1142999fd5dfa2e0db056c0cea17917a867cc095b", "applications": { "gecko": { diff --git a/updates.json b/updates.json index 2d14a2b..86daa1f 100644 --- a/updates.json +++ b/updates.json @@ -4,7 +4,7 @@ "updates": [ { "version": "0.7.0", - "update_link": "https://github.com/UB-Mannheim/zotero-ocr/releases/tag/0.7.0/zotero-ocr-0.7.0.xpi", + "update_link": "https://github.com/UB-Mannheim/zotero-ocr/releases/download/0.7.0/zotero-ocr-0.7.0.xpi", "update_hash": "sha256:b649b6a7b75138b65896eca1142999fd5dfa2e0db056c0cea17917a867cc095b", "applications": { "gecko": {