Skip to content

Commit 2ac868b

Browse files
authored
Use semver gte check (#51)
1 parent b1303c6 commit 2ac868b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/foreman.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function chooseAsset(release: GitHubRelease): GitHubAsset | null {
5757
name.includes("win32");
5858
} else if (process.platform === "darwin") {
5959
if (arch === "x64") {
60-
if (release.tag_name >= "v1.0.5") {
60+
if (semver.gte(release.tag_name, "v1.0.5")) {
6161
platformMatcher = name => name.includes("macos-x86_64");
6262
} else {
6363
platformMatcher = name => name.includes("macos");
@@ -67,7 +67,7 @@ function chooseAsset(release: GitHubRelease): GitHubAsset | null {
6767
}
6868
} else if (process.platform === "linux") {
6969
if (arch === "x64") {
70-
if (release.tag_name >= "v1.6.4") {
70+
if (semver.gte(release.tag_name, "v1.6.4")) {
7171
platformMatcher = name => name.includes("linux-x86_64");
7272
} else {
7373
platformMatcher = name => name.includes("linux");

0 commit comments

Comments
 (0)