Fix MacOS DMG Location #171

Merged
dan merged 4 commits from fyne/cwtch-ui:fix-macos-dmg-location into trunk 2021-09-09 00:24:09 +00:00
1 changed files with 3 additions and 0 deletions
Showing only changes of commit b53f43d946 - Show all commits

View File

@ -119,6 +119,9 @@ class CwtchFfi implements Cwtch {
bundledTor = "/Applications/Cwtch.app/Contents/MacOS/Tor/tor.real";
} else if (await File("/Volumes/Cwtch/Cwtch.app/Contents/MacOS/Tor/tor.real").exists()) {
bundledTor = "/Volumes/Cwtch/Cwtch.app/Contents/MacOS/Tor/tor.real";
} else if (await File("/Applications/Tor Browser.app/Contents/MacOS/Tor/tor.real").exists()) {
bundledTor = "/Applications/Tor Browser.app/Contents/MacOS/Tor/tor.real";
print("We couldn't find Tor in the Cwtch app directory, however we can fall back to the Tor Browser binary");
} else {
var splitPath = path.split(dirname(Platform.script.path));
if (splitPath[0] == "/" && splitPath[1] == "Applications"){