Skip to content

Commit

Permalink
Fix download link for zotero-ocr-0.7.0.xpi
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Mar 26, 2024
1 parent c1aa3eb commit 4c554d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion update.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion updates.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 4c554d6

Please sign in to comment.