mirror of
https://github.com/AssetRipper/AssetRipper.NativeDialogs.git
synced 2026-11-13 18:06:41 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
49e71fc0a5 | ||
|
|
0ca1fdb1dc | ||
|
|
63278e1a51 |
No files matched your search
@@ -61,6 +61,11 @@ internal static class ProcessExecutor
|
||||
[SupportedOSPlatform("linux")]
|
||||
public static async Task<bool> HasCommand(string command)
|
||||
{
|
||||
ArgumentException.ThrowIfNullOrEmpty(command);
|
||||
if (!File.Exists("/bin/bash"))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
string? result = await TryRun("/bin/bash", "-c", $"command -v {EscapeString(command)}");
|
||||
return !string.IsNullOrEmpty(result);
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
|
||||
|
||||
<VersionPrefix>1.1.0</VersionPrefix>
|
||||
<VersionPrefix>1.1.1</VersionPrefix>
|
||||
<Copyright>Copyright (c) 2026 ds5678</Copyright>
|
||||
<Authors>ds5678</Authors>
|
||||
<Company>AssetRipper</Company>
|
||||
|
||||
@@ -6,7 +6,7 @@ A cross-platform library for picking files and folders in .NET applications.
|
||||
|
||||
On Windows, downstream projects must disable `CETCompat`. Leaving it enabled may cause crashes when opening native file dialogs.
|
||||
|
||||
Add the following to the consuming project’s `.csproj`:
|
||||
Add the following to the consuming project `.csproj` file:
|
||||
|
||||
```xml
|
||||
<PropertyGroup>
|
||||
|
||||
Reference in new issue
Block a user