mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Passing in .app bundle should look in the MacOS dir for mainExe
This commit is contained in:
@@ -76,6 +76,10 @@ public abstract class PackageBuilder<T> : ICommand<T>
|
||||
if (!File.Exists(mainExePath) && VelopackRuntimeInfo.IsLinux)
|
||||
mainExePath = Path.Combine(packDirectory, "usr", "bin", mainExeName);
|
||||
|
||||
// TODO: since we already have a hack, here's another...
|
||||
if (!File.Exists(mainExePath) && VelopackRuntimeInfo.IsOSX && options.PackDirectory.EndsWith(".app"))
|
||||
mainExePath = Path.Combine(packDirectory, "Contents", "MacOS", mainExeName);
|
||||
|
||||
if (!File.Exists(mainExePath)) {
|
||||
throw new UserInfoException(
|
||||
$"Could not find main application executable (the one that runs 'VelopackApp.Build().Run()'). " + Environment.NewLine +
|
||||
|
||||
Reference in New Issue
Block a user