Class MNPackagerFlatpak
java.lang.Object
com.io7m.montarre.nativepack.internal.MNPackagerAbstract
com.io7m.montarre.nativepack.internal.flatpak.MNPackagerFlatpak
- All Implemented Interfaces:
MNativePackagerServiceType
public final class MNPackagerFlatpak
extends MNPackagerAbstract
implements MNativePackagerServiceType
A native packager that produces Flatpak packages.
-
Constructor Summary
ConstructorsConstructorDescriptionMNPackagerFlatpak(MNativePackagerServiceProviderType inProvider, MNativeProcessesType inProcesses) A native packager that produces Debian packages. -
Method Summary
Modifier and TypeMethodDescriptionexecute(MNativeWorkspaceType workspace, MPackageReaderType reader) Execute the packaging service.unsupportedReason(Optional<MPackageDeclaration> packageVOpt) Determine if the service can run on the current platform, and return the reason why it cannot (if it cannot).Methods inherited from class com.io7m.montarre.nativepack.internal.MNPackagerAbstract
describe, error, findBestIcon, findLicense, name, setAttribute, takeAttributes, translateVersion, unpackIcon, unpackLicense, writeReplaceOptionsMethods 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
describe, name
-
Constructor Details
-
MNPackagerFlatpak
public MNPackagerFlatpak(MNativePackagerServiceProviderType inProvider, MNativeProcessesType inProcesses) A native packager that produces Debian packages.- Parameters:
inProvider- The providerinProcesses- The processes
-
-
Method Details
-
unsupportedReason
public Optional<com.io7m.seltzer.api.SStructuredErrorType<String>> unsupportedReason(Optional<MPackageDeclaration> packageVOpt) throws InterruptedException Description copied from interface:MNativePackagerServiceTypeDetermine if the service can run on the current platform, and return the reason why it cannot (if it cannot). Some services are unable to run outside specific platforms. For example, producing Windows MSI installers is limited to Windows platforms due to the requirement to run the Windows-only WiX toolkit.- Specified by:
unsupportedReasonin interfaceMNativePackagerServiceType- Parameters:
packageVOpt- The package declaration- Returns:
- The reason that this service is unsupported
- Throws:
InterruptedException- On interruption
-
execute
Description copied from interface:MNativePackagerServiceTypeExecute the packaging service.- Specified by:
executein interfaceMNativePackagerServiceType- Parameters:
workspace- The workspacereader- The package- Returns:
- The output file
- Throws:
MException- On errors
-