Skip to content

Commit 8562d5e

Browse files
committed
Merge branch 'release/0.15.4'
2 parents 7bcc7f3 + f95cde6 commit 8562d5e

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

Copilot for Xcode/App.swift

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import Client
2+
import HostApp
3+
import LaunchAgentManager
24
import SwiftUI
35
import UpdateChecker
46
import XPCShared
5-
import HostApp
67

78
@main
89
struct CopilotForXcodeApp: App {
@@ -19,3 +20,4 @@ struct CopilotForXcodeApp: App {
1920
}
2021

2122
var isPreview: Bool { ProcessInfo.processInfo.environment["XCODE_RUNNING_FOR_PREVIEWS"] == "1" }
23+

Core/Sources/HostApp/TabContainer.swift

+15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Foundation
2+
import LaunchAgentManager
23
import SwiftUI
34
import UpdateChecker
45

@@ -67,6 +68,20 @@ public struct TabContainer: View {
6768
.environment(\.toast) { [toastController] content, type in
6869
toastController.toast(content: content, type: type)
6970
}
71+
.onAppear {
72+
#if DEBUG
73+
// do not auto install on debug build
74+
#else
75+
Task {
76+
do {
77+
try await LaunchAgentManager()
78+
.setupLaunchAgentForTheFirstTimeIfNeeded()
79+
} catch {
80+
toastController.toast(content: Text(error.localizedDescription), type: .error)
81+
}
82+
}
83+
#endif
84+
}
7085
}
7186
}
7287

Version.xcconfig

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
APP_VERSION = 0.15.3
2-
APP_BUILD = 153
1+
APP_VERSION = 0.15.4
2+
APP_BUILD = 154

0 commit comments

Comments
 (0)