Skip to content

Commit

Permalink
Add support for apps installed with scoop (https://scoop.sh/) (#237)
Browse files Browse the repository at this point in the history
* BeyondCompare
* Diffinity
  • Loading branch information
0xced authored Jul 10, 2021
1 parent 348286d commit 0e90fe7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/DiffEngine/Implementation/BeyondCompare.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static string OsxLinuxArguments(string temp, string target) =>
"tiff",
"rtf"
},
windows: new(WindowsArguments, @"%ProgramFiles%\Beyond Compare *\BCompare.exe"),
windows: new(WindowsArguments, @"%ProgramFiles%\Beyond Compare *\BCompare.exe", @"%UserProfile%\scoop\apps\beyondcompare\current\BCompare.exe"),
linux: new(OsxLinuxArguments, "/usr/lib/beyondcompare/bcomp"),
osx: new(OsxLinuxArguments, "/Applications/Beyond Compare.app/Contents/MacOS/bcomp"),
notes: @"
Expand Down
3 changes: 2 additions & 1 deletion src/DiffEngine/Implementation/Diffinity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ public static Definition Diffinity()
binaryExtensions: Array.Empty<string>(),
windows: new(
(temp, target) => $"\"{temp}\" \"{target}\"",
@"%ProgramFiles%\Diffinity\Diffinity.exe"),
@"%ProgramFiles%\Diffinity\Diffinity.exe",
@"%UserProfile%\scoop\apps\diffinity\current\Diffinity.exe"),
notes: @"
* Disable single instance:
\ Preferences \ Tabs \ uncheck `Use single instance and open new diffs in tabs`.");
Expand Down

0 comments on commit 0e90fe7

Please sign in to comment.