@shockpkg/ria-packager
Version:
Package for creating Adobe AIR packages
59 lines (58 loc) • 1.54 kB
TypeScript
import { IPackagerResourceOptions } from '../../packager.ts';
import { PackagerAdl } from '../adl.ts';
/**
* PackagerAdlMac object.
*
* @param path Output path.
*/
export declare class PackagerAdlMac extends PackagerAdl {
/**
* Optionally preserve resource mtime.
* The official packager does not preserve resource mtimes.
*/
preserveResourceMtime: boolean;
/**
* PackagerAdlMac constructor.
*
* @param path Output path.
*/
constructor(path: string);
/**
* Get app run path.
*
* @returns Resources path.
*/
get appRunPath(): string;
/**
* Get file mode value.
*
* @param executable Is the entry executable.
* @returns File mode.
*/
protected _getFileMode(executable: boolean): 484 | 420;
/**
* The SDK components to be copied.
*
* @returns Required and optional components.
*/
protected _sdkComponents(): {
required: string[][];
optional: string[][];
};
/**
* Close implementation.
*/
protected _close(): Promise<void>;
/**
* Write resource with data implementation.
*
* @param destination Packaged file relative destination.
* @param data Resource data.
* @param options Resource options.
*/
protected _writeResource(destination: string, data: Readonly<Uint8Array>, options: Readonly<IPackagerResourceOptions>): Promise<void>;
/**
* Write the run script.
*/
protected _writeRunScript(): Promise<void>;
}