Class MNPackagerAppImage
java.lang.Object
com.io7m.montarre.nativepack.internal.MNPackagerAbstract
com.io7m.montarre.nativepack.internal.app_image.MNPackagerAppImage
- All Implemented Interfaces:
MNativePackagerServiceType
public final class MNPackagerAppImage
extends MNPackagerAbstract
implements MNativePackagerServiceType
A native packager that produces jpackage "app-images".
-
Constructor Summary
ConstructorsConstructorDescriptionMNPackagerAppImage(MNativePackagerServiceProviderType inProvider) A native packager that produces jpackage "app-images". -
Method Summary
Modifier and TypeMethodDescriptionexecute(MNativeWorkspaceType workspace, MPackageReaderType packageV) Execute the packaging service.unsupportedReason(Optional<MPackageDeclaration> packageV) Determine if the service can run on the current platform, and return the reason why it cannot (if it cannot).Methods inherited from class MNPackagerAbstract
describe, error, findBestIcon, findLicense, name, setAttribute, takeAttributes, translateVersion, unpackIcon, unpackLicense, writeReplaceOptionsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MNativePackagerServiceType
describe, name
-
Constructor Details
-
MNPackagerAppImage
A native packager that produces jpackage "app-images".- Parameters:
inProvider- The provider
-
-
Method Details
-
unsupportedReason
public Optional<com.io7m.seltzer.api.SStructuredErrorType<String>> unsupportedReason(Optional<MPackageDeclaration> packageV) 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:
packageV- The package declaration- Returns:
- The reason that this service is unsupported
-
execute
Description copied from interface:MNativePackagerServiceTypeExecute the packaging service.- Specified by:
executein interfaceMNativePackagerServiceType- Parameters:
workspace- The workspacepackageV- The package- Returns:
- The output file
- Throws:
MException- On errors
-
appImageRoot
- Returns:
- The app image root directory
-