Skip to content

Commit

Permalink
Different approach for auto-updater, as current one broke
Browse files Browse the repository at this point in the history
  • Loading branch information
EmeraldLoc committed May 7, 2022
1 parent 18eda1d commit 1d7aef5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sm_osx/LauncherView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct LauncherView: View {
@FetchRequest(sortDescriptors:[SortDescriptor(\.title)]) var launcherRepos: FetchedResults<LauncherRepos>
@State var existingRepo = URL(string: "")
@State var repoTitle = ""
@State var currentVersion = "v1.1.9\n"
@State var currentVersion = "v1.1.91\n"
@State var updateAlert = false
@State var latestVersion = ""
@State var repoArgs = ""
Expand Down Expand Up @@ -394,7 +394,7 @@ struct LauncherView: View {
}

do {
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")
latestVersion = try shell.shell("curl -s https://raw.githubusercontent.com/EmeraldLoc/sm_osx/main/CurVer")
}
catch {
print("Failed: \(error)")
Expand Down

0 comments on commit 1d7aef5

Please sign in to comment.