@shockpkg/ria-packager
Version:
Package for creating Adobe AIR packages
136 lines (135 loc) • 3.66 kB
TypeScript
import { Packager } from '../packager.ts';
export interface IIcon {
image16x16: string | null;
image29x29: string | null;
image32x32: string | null;
image36x36: string | null;
image48x48: string | null;
image50x50: string | null;
image57x57: string | null;
image58x58: string | null;
image72x72: string | null;
image96x96: string | null;
image100x100: string | null;
image114x114: string | null;
image128x128: string | null;
image144x144: string | null;
image512x512: string | null;
image732x412: string | null;
image1024x1024: string | null;
}
export interface IFileTypeInfo {
name: string;
contentType: string;
description: string | null;
icon: IIcon | null;
}
/**
* PackagerBundle object.
*/
export declare abstract class PackagerBundle extends Packager {
/**
* Path to the SDK, an archive or directory.
*/
sdkPath: string | null;
/**
* Application info from the id tag.
*/
protected _applicationInfoId: string | null;
/**
* Application info from the versionNumber tag.
*/
protected _applicationInfoVersionNumber: string | null;
/**
* Application info from the filename tag.
*/
protected _applicationInfoFilename: string | null;
/**
* Application info from the copyright tag.
*/
protected _applicationInfoCopyright: string | null;
/**
* Application info from the icon tag.
*/
protected _applicationInfoIcon: Readonly<IIcon> | null;
/**
* Application info from the fileTypes tag.
*/
protected _applicationInfoFileTypes: Map<string, IFileTypeInfo> | null;
/**
* Application info from the supportedLanguages tag.
*/
protected _applicationInfoSupportedLanguages: string | null;
/**
* Application info from the initialWindow.requestedDisplayResolution tag.
*/
protected _applicationInfoRequestedDisplayResolution: string | null;
/**
* Application info from the architecture tag.
*/
protected _applicationInfoArchitecture: string | null;
/**
* PackagerBundle constructor.
*
* @param path Output path.
*/
constructor(path: string);
/**
* Package mimetype.
*
* @returns Mimetype string.
*/
get mimetype(): string;
/**
* Package signed.
*
* @returns Boolean for if package is signed or not.
*/
get signed(): boolean;
/**
* Init application info from descriptor data.
*
* @param applicationData The application descriptor data.
*/
protected _applicationInfoInit(applicationData: Readonly<Uint8Array>): void;
/**
* Get the application ID.
*
* @returns The ID.
*/
protected _getId(): string;
/**
* Get the application version number.
*
* @returns The version number.
*/
protected _getVersionNumber(): string;
/**
* Get the application filename.
*
* @returns The filename.
*/
protected _getFilename(): string;
/**
* Get the application copyright if present.
*
* @returns Copyright string or null.
*/
protected _getCopyright(): string | null;
/**
* Get the application icon.
*
* @returns Application icon.
*/
protected _getIcon(): Readonly<IIcon> | null;
/**
* The the application file types if present.
*
* @returns File types map or null.
*/
protected _getFileTypes(): Map<string, IFileTypeInfo> | null;
/**
* Clear application info from descriptor data.
*/
protected _applicationInfoClear(): void;
}