Class BootstrapConfig
- Namespace
- ZeroInstall.Bootstrap
- Assembly
- ZeroInstall.Bootstrap.dll
Represents configuration bundled with the bootstrapper. This can be used to create a customized bootstrapper that uses Zero Install to run or integrate another application.
public record BootstrapConfig : IEquatable<BootstrapConfig>
- Inheritance
-
objectBootstrapConfig
- Implements
Constructors
BootstrapConfig(IniData, string?, FeedUri?, string?, string?, string?, FeedUri?, bool, long?)
Represents configuration bundled with the bootstrapper. This can be used to create a customized bootstrapper that uses Zero Install to run or integrate another application.
public BootstrapConfig(IniData IniData, string? KeyFingerprint, FeedUri? AppUri, string? AppName, string? AppArgs, string? IntegrateArgs, FeedUri? CatalogUri, bool CustomizableStorePath, long? EstimatedRequiredSpace)
Parameters
IniDataIniDataThe raw INI data parsed from the config file.
KeyFingerprintstringThe GnuPG key fingerprint to trust for signing SelfUpdateUri or
AppUri.AppUriFeedUriThe feed URI of the target application to bootstrap.
AppNamestringThe name of the target application to bootstrap.
AppArgsstringAdditional command-line arguments to pass to the application.
IntegrateArgsstringCommand-line arguments to pass to
0install integrate.nullto not call0install integrateat all.CatalogUriFeedUriThe URI of the catalog to replace the default catalog. Only applies if Zero Install is not already deployed.
CustomizableStorePathboolOffer the user to choose a custom path for storing implementations.
EstimatedRequiredSpacelong?Show the estimated disk space required (in bytes). Only works when CustomizableStorePath is
true.
BootstrapConfig(BootstrapConfig)
protected BootstrapConfig(BootstrapConfig original)
Parameters
originalBootstrapConfig
Properties
AppArgs
Additional command-line arguments to pass to the application.
public string? AppArgs { get; init; }
Property Value
AppName
The name of the target application to bootstrap.
public string? AppName { get; init; }
Property Value
AppUri
The feed URI of the target application to bootstrap.
public FeedUri? AppUri { get; init; }
Property Value
CatalogUri
The URI of the catalog to replace the default catalog. Only applies if Zero Install is not already deployed.
public FeedUri? CatalogUri { get; init; }
Property Value
CustomizableStorePath
Offer the user to choose a custom path for storing implementations.
public bool CustomizableStorePath { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
EstimatedRequiredSpace
Show the estimated disk space required (in bytes). Only works when CustomizableStorePath is true.
public long? EstimatedRequiredSpace { get; init; }
Property Value
- long?
IniData
The raw INI data parsed from the config file.
public IniData IniData { get; init; }
Property Value
- IniData
Instance
Provides a single instance of the BootstrapConfig loaded from an embedded or bundled file.
public static BootstrapConfig Instance { get; }
Property Value
Exceptions
- IOException
A problem occurred while reading the file.
- UnauthorizedAccessException
Read access to the file is not permitted.
- InvalidDataException
The file contains invalid config values.
IntegrateArgs
Command-line arguments to pass to 0install integrate. null to not call 0install integrate at all.
public string? IntegrateArgs { get; init; }
Property Value
KeyFingerprint
The GnuPG key fingerprint to trust for signing SelfUpdateUri or AppUri.
public string? KeyFingerprint { get; init; }
Property Value
Methods
Deconstruct(out IniData, out string?, out FeedUri?, out string?, out string?, out string?, out FeedUri?, out bool, out long?)
public void Deconstruct(out IniData IniData, out string? KeyFingerprint, out FeedUri? AppUri, out string? AppName, out string? AppArgs, out string? IntegrateArgs, out FeedUri? CatalogUri, out bool CustomizableStorePath, out long? EstimatedRequiredSpace)
Parameters
IniDataIniDataKeyFingerprintstringAppUriFeedUriAppNamestringAppArgsstringIntegrateArgsstringCatalogUriFeedUriCustomizableStorePathboolEstimatedRequiredSpacelong?
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(BootstrapConfig?)
public virtual bool Equals(BootstrapConfig? other)
Parameters
otherBootstrapConfig
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(BootstrapConfig?, BootstrapConfig?)
public static bool operator ==(BootstrapConfig? left, BootstrapConfig? right)
Parameters
leftBootstrapConfigrightBootstrapConfig
Returns
operator !=(BootstrapConfig?, BootstrapConfig?)
public static bool operator !=(BootstrapConfig? left, BootstrapConfig? right)
Parameters
leftBootstrapConfigrightBootstrapConfig