-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
faa6795
commit dce60b2
Showing
7 changed files
with
538 additions
and
370 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/sh | ||
|
||
# 文件来源于https://github.com/UB-Mannheim/zotero-ocr/blob/master/release.sh | ||
# 和https://github.com/UB-Mannheim/zotero-ocr/blob/master/build.sh | ||
read -p "Enter new version number: " version | ||
|
||
|
||
############## | ||
## Update install.rdf | ||
############## | ||
|
||
perl -pi -e "s/em:version=\"[^\"]*/em:version=\"$version/;" "install.rdf" | ||
# rm "install.rdf.bak" | ||
git add "install.rdf" | ||
|
||
|
||
############## | ||
## Update update.rdf | ||
############## | ||
|
||
perl -pi -e "s/<em:version>[^<]*/<em:version>$version/;" \ | ||
-e "s/<em:updateLink>[^<]*/<em:updateLink>https:\/\/github.com\/redleafnew\/delitemwithatt\/releases\/download\/$version\/delitemwithatt.xpi/;" \ | ||
-e "s/<em:updateInfoURL>[^<]*/<em:updateInfoURL>https:\/\/github.com\/redleafnew\/delitemwithatt\/releases\/tag\/$version/;" \ | ||
update.rdf | ||
git add "update.rdf" | ||
# rm "update.rdf.bak" | ||
|
||
git commit -m "Release $version" 1>&2 | ||
|
||
############## | ||
## 生成xpi | ||
############## | ||
#./build.sh "$version" | ||
|
||
#version="$1" | ||
#if [ -z "$version" ]; then | ||
# read -p "Enter new version number: " version | ||
#fi | ||
|
||
rm -f delitemwithatt.xpi | ||
zip -r delitemwithatt.xpi chrome/* chrome.manifest install.rdf |