Skip to content

Commit 1d7aef5

Browse files
committed
Different approach for auto-updater, as current one broke
1 parent 18eda1d commit 1d7aef5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sm_osx/LauncherView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ struct LauncherView: View {
1818
@FetchRequest(sortDescriptors:[SortDescriptor(\.title)]) var launcherRepos: FetchedResults<LauncherRepos>
1919
@State var existingRepo = URL(string: "")
2020
@State var repoTitle = ""
21-
@State var currentVersion = "v1.1.9\n"
21+
@State var currentVersion = "v1.1.91\n"
2222
@State var updateAlert = false
2323
@State var latestVersion = ""
2424
@State var repoArgs = ""
@@ -394,7 +394,7 @@ struct LauncherView: View {
394394
}
395395

396396
do {
397-
latestVersion = try shell.shell("curl https://github.com/EmeraldLoc/sm_osx/releases/latest -s | grep -o 'v[0-9].[0-9].[0-9]*' | sort -u")
397+
latestVersion = try shell.shell("curl -s https://raw.githubusercontent.com/EmeraldLoc/sm_osx/main/CurVer")
398398
}
399399
catch {
400400
print("Failed: \(error)")

0 commit comments

Comments
 (0)