Saltar al contenido principal

OsxVelopackLocator class

Namespace: Velopack.Locators

The default for OSX. All application files will remain in the '.app'. All additional files (log, etc) will be placed in a temporary directory.

public class OsxVelopackLocator : VelopackLocator, IVelopackLocator

Inherits: VelopackLocator
Implements: IVelopackLocator

Constructors

ConstructorSummary
OsxVelopackLocatorCreates a new OsxVelopackLocator and auto-detects the

OsxVelopackLocator(processImpl, customLog)

public OsxVelopackLocator(IProcessImpl? processImpl, IVelopackLogger? customLog)

Creates a new OsxVelopackLocator and auto-detects the app information from metadata embedded in the .app.

Parameters

NameTypeDescription
processImplIProcessImpl
customLogIVelopackLogger

Properties

PropertySummary
AppIdThe unique application Id. This is used in various app paths.
RootAppDirThe root directory of the application. On Windows, this folder contains all
UpdateExePathThe path to the current Update.exe or similar on other operating systems.
ProcessProvides an abstraction for dealing with the dotnet Process API. This is used to start processes and
CurrentlyInstalledVersionThe currently installed version of the application, or null if the app is not installed.
AppContentDirThe directory in which versioned application files are stored.
AppTempDirThe temporary directory for this application.
PackagesDirThe directory in which nupkg files are stored for this application.
ChannelThe release channel this package was built for.

AppId

public override string? AppId { get; }

The unique application Id. This is used in various app paths.

RootAppDir

public override string? RootAppDir { get; }

The root directory of the application. On Windows, this folder contains all the application files, but that may not be the case on other operating systems.

UpdateExePath

public override string? UpdateExePath { get; }

The path to the current Update.exe or similar on other operating systems.

Process

public override IProcessImpl Process { get; }

Provides an abstraction for dealing with the dotnet Process API. This is used to start processes and get information about the current process.

CurrentlyInstalledVersion

public override SemanticVersion? CurrentlyInstalledVersion { get; }

The currently installed version of the application, or null if the app is not installed.

AppContentDir

public override string? AppContentDir { get; }

The directory in which versioned application files are stored.

AppTempDir

public override string? AppTempDir { get; }

The temporary directory for this application.

PackagesDir

public override string? PackagesDir { get; }

The directory in which nupkg files are stored for this application.

Channel

public override string? Channel { get; }

The release channel this package was built for.


Generated from Velopack 1.1.1