refactor: Fix macOS standalone application
This commit is contained in:
@@ -113,5 +113,13 @@
|
||||
<string>As a universal proxy platform, sing-box configures routing according to your configuration.</string>
|
||||
<key>NSCameraUsageDescription</key>
|
||||
<string>Camera access is required to scan QR codes for importing profiles.</string>
|
||||
<key>NSLocationUsageDescription</key>
|
||||
<string>sing-box uses the Location permission to provide users with routing based on WIFI SSID and BSSID rules, without reading your location.</string>
|
||||
<key>NSLocationWhenInUseUsageDescription</key>
|
||||
<string>sing-box uses the Location permission to provide users with routing based on WIFI SSID and BSSID rules, without reading your location.</string>
|
||||
<key>NSLocationAlwaysUsageDescription</key>
|
||||
<string>sing-box uses the Location permission to provide users with routing based on WIFI SSID and BSSID rules, without reading your location.</string>
|
||||
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
|
||||
<string>sing-box uses the Location permission to provide users with routing based on WIFI SSID and BSSID rules, without reading your location.</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
@@ -20,17 +20,13 @@
|
||||
<array>
|
||||
<string>iCloud.io.nekohasekai.sfavt</string>
|
||||
</array>
|
||||
<key>com.apple.security.app-sandbox</key>
|
||||
<true/>
|
||||
<key>com.apple.security.application-groups</key>
|
||||
<array>
|
||||
<string>$(TeamIdentifierPrefix)$(BASE_PACKAGE_IDENTIFIER)</string>
|
||||
</array>
|
||||
<key>com.apple.security.files.user-selected.read-write</key>
|
||||
<key>com.apple.developer.networking.wifi-info</key>
|
||||
<true/>
|
||||
<key>com.apple.security.network.client</key>
|
||||
<true/>
|
||||
<key>com.apple.security.device.camera</key>
|
||||
<key>com.apple.security.personal-information.location</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import AppKit
|
||||
import Foundation
|
||||
import Libbox
|
||||
import Library
|
||||
import MacLibrary
|
||||
|
||||
@@ -7,6 +8,8 @@ class StandaloneApplicationDelegate: ApplicationDelegate {
|
||||
func applicationWillFinishLaunching(_: Notification) {
|
||||
Variant.useSystemExtension = true
|
||||
Variant.isBeta = false
|
||||
LibboxSetXPCDialer(CommandXPCDialer.shared)
|
||||
UserServiceEndpointPublisher.shared.start()
|
||||
Task {
|
||||
await setupSystemExtension()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user