Skip to main content

LinuxVelopackLocator 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 LinuxVelopackLocator : VelopackLocator, IVelopackLocator

Inherits: VelopackLocator
Implements: IVelopackLocator

Constructors

ConstructorSummary
LinuxVelopackLocatorCreates a new OsxVelopackLocator and auto-detects the

LinuxVelopackLocator(processImpl, customLog)

public LinuxVelopackLocator(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.
ChannelThe release channel this package was built for.
AppTempDirThe temporary directory for this application.
PackagesDirThe directory in which nupkg files are stored for this application.
PersistentTempDir/var/tmp/{velopack}/{appid}, for storing app specific files which need to be preserved.
PersistentVelopackDirA pointer to /var/tmp/{velopack}, a location on linux which is semi-persistent.
AppImagePathFile path of the .AppImage which mounted and ran this application.

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.

Channel

public override string? Channel { get; }

The release channel this package was built for.

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.

PersistentTempDir

public string? PersistentTempDir { get; }

/var/tmp/{velopack}/{appid}, for storing app specific files which need to be preserved.

PersistentVelopackDir

public string? PersistentVelopackDir { get; }

A pointer to /var/tmp/{velopack}, a location on linux which is semi-persistent.

AppImagePath

public string? AppImagePath { get; }

File path of the .AppImage which mounted and ran this application.


Generated from Velopack 1.1.1