Skip to content

Commit

Permalink
安定版のアップデートの確認時に開発版も含まれてしまうバグ #178 (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
Robot-Inventor authored May 10, 2021
1 parent 475d4e7 commit 000b991
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ Edition: ORIZIN Agent HTML

## リリース

### [v5.1.146.1dev-Eagle] - 2021-05-11

#### 修正

- 安定版のアップデートの確認時にアップデートとして開発版が表示されることがあるバグを修正しました [#178](https://github.com/Robot-Inventor/ORIZIN-Agent-HTML/issues/178)

### [v5.1.145.0dev-Eagle] - 2021-05-10

#### 追加
Expand Down
2 changes: 1 addition & 1 deletion release_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def get_latest_version(channel: typing.Literal["stable", "develop"]) -> str:

atom_file = html.unescape(urllib.request.urlopen(RSS_URL).read().decode())
if channel == "stable":
if(latest_version := re.search("<title>v(\d|\.).*?(?!dev)-\w*?</title>", atom_file)):
if(latest_version := re.search("<title>v(\d|\.).*?(?<!dev)-\w*?</title>", atom_file)):
return latest_version.group().replace("<title>", "").replace("</title>", "")
else:
raise ValueError("指定されたチャンネルの最新バージョンを取得できませんでした。")
Expand Down
4 changes: 2 additions & 2 deletions resource/information.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"Series Name": "ORIZIN Agent",
"Edition": "ORIZIN Agent HTML",
"Version": "v5.1.145.0dev",
"Version": "v5.1.146.1dev",
"Channel": "develop",
"Code Name": "Eagle",
"Date": "2021-05-10 JST"
"Date": "2021-05-11 JST"
}

0 comments on commit 000b991

Please sign in to comment.