Class MNPackagerAbstract
java.lang.Object
com.io7m.montarre.nativepack.internal.MNPackagerAbstract
- All Implemented Interfaces:
MNativePackagerServiceType
- Direct Known Subclasses:
MNPackagerAppImage,MNPackagerDeb,MNPackagerFlatpak,MNPackagerMSI,MNPackagerShell
An abstract packager.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMNPackagerAbstract(MNativePackagerServiceProviderType inProvider) -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringdescribe()protected final MExceptionfindBestIcon(MNativeWorkspaceType workspace, MPackageReaderType reader) findLicense(MPackageReaderType reader) final com.io7m.lanark.core.RDottedNamename()protected final voidsetAttribute(String name, Object value) protected final com.io7m.verona.core.VersiontranslateVersion(MNativeWorkspaceType workspace, com.io7m.verona.core.Version version) unpackIcon(MNativeWorkspaceType workspace, MPackageReaderType packageV, Path directory) unpackLicense(MPackageReaderType packageV, Path directory) protected final OpenOption[]Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.io7m.montarre.api.natives.MNativePackagerServiceType
execute, unsupportedReason
-
Constructor Details
-
MNPackagerAbstract
-
-
Method Details
-
writeReplaceOptions
-
describe
- Specified by:
describein interfaceMNativePackagerServiceType- Returns:
- A description of the service
-
name
public final com.io7m.lanark.core.RDottedName name()- Specified by:
namein interfaceMNativePackagerServiceType- Returns:
- The name of the packager
-
takeAttributes
-
setAttribute
-
error
-
findLicense
-
findBestIcon
protected final Optional<MResource> findBestIcon(MNativeWorkspaceType workspace, MPackageReaderType reader) -
unpackIcon
protected final Optional<Path> unpackIcon(MNativeWorkspaceType workspace, MPackageReaderType packageV, Path directory) throws IOException, MException - Throws:
IOExceptionMException
-
unpackLicense
protected final Optional<Path> unpackLicense(MPackageReaderType packageV, Path directory) throws IOException, MException - Throws:
IOExceptionMException
-
translateVersion
protected final com.io7m.verona.core.Version translateVersion(MNativeWorkspaceType workspace, com.io7m.verona.core.Version version)
-