@shockpkg/ria-packager
Version:
Package for creating Adobe AIR packages
102 lines (101 loc) • 2.75 kB
TypeScript
import { IZipperWriteStream, Zipper, ZipperEntry } from '../zipper.ts';
import { IPackagerResourceOptions, Packager } from '../packager.ts';
/**
* PackagerAir object.
*/
export declare abstract class PackagerAir extends Packager {
/**
* Zipper instance.
*/
protected _zipper: Zipper | null;
/**
* Zipper hash entry to be updated.
*/
protected _zipperEntryHash: ZipperEntry | null;
/**
* PackagerAir constructor.
*
* @param path Output path.
*/
constructor(path: string);
/**
* ZIP file Ux metadata user ID.
*
* @returns User ID.
*/
protected get _zipUxUid(): number;
/**
* ZIP file Ux metadata group ID.
*
* @returns Group ID.
*/
protected get _zipUxGid(): number;
/**
* ZIP file metadata create version number.
*
* @returns Version number.
*/
protected get _zipCreateVersion(): number;
/**
* ZIP file metadata create host OS.
*
* @returns OS ID.
*/
protected get _zipCreateHostOS(): number;
/**
* ZIP file internal attributes.
*
* @returns Internal attributes.
*/
protected get _zipInternalAttributes(): number;
/**
* ZIP file external attributes.
*
* @param executable Is the entry executable.
* @returns External attributes.
*/
protected _zipGetExternalAttributes(executable: boolean): 2179792896 | 2175008768;
/**
* Create a Zipper instance.
*
* @param writable Writable stream.
* @returns Zipper instance.
*/
protected _createZipper(writable: IZipperWriteStream): Zipper;
/**
* Get the active Zipper.
*
* @returns Zipper instance.
*/
protected _activeZipper(): Zipper;
/**
* Check if resource is compressable file.
*
* @param destination Resource destination.
* @returns Returne true if not a match for the excluded files.
*/
protected _isResourceCompressible(destination: string): boolean;
/**
* Check if resource is hash file.
*
* @param destination Resource destination.
* @returns Returns true if match.
*/
protected _isResourceHash(destination: string): boolean;
/**
* Open implementation.
*/
protected _open(): Promise<void>;
/**
* 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>;
}