Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
yanue committed Feb 9, 2020
1 parent 4e022fd commit 381be18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions V2rayU/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ class AppDelegate: NSObject, NSApplicationDelegate {
// url scheme
NSAppleEventManager.shared().setEventHandler(self, andSelector: #selector(self.handleAppleEvent(event:replyEvent:)), forEventClass: AEEventClass(kInternetEventClass), andEventID: AEEventID(kAEGetURL))

let path = FileManager.default.currentDirectoryPath
print("working dir", path)

let path = Bundle.main.bundlePath
// /Users/yanue/Library/Developer/Xcode/DerivedData/V2rayU-cqwhqdwsnxsplqgolfwfywalmjps/Build/Products/Debug
// working dir must be: /Applications/V2rayU.app
NSLog(String.init(format: "working dir:%@", path))

if !(path.contains("Developer/Xcode") || path.contains("/Applications/V2rayU.app")) {
makeToast(message: "Please drag 'V2rayU' to '/Applications' directory", displayDuration: 5.0)
DispatchQueue.main.asyncAfter(deadline: .now() + 5.5) {
Expand Down
2 changes: 2 additions & 0 deletions V2rayU/MainMenu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ func SwitchProxyMode() {

// regenerate All Config when base setting changed
func regenerateAllConfig() {
NSLog("regenerateAllConfig.")

for (idx, item) in V2rayServer.list().enumerated() {
if !item.isValid {
continue
Expand Down

0 comments on commit 381be18

Please sign in to comment.