build: add platform settings
This commit is contained in:
@@ -1,9 +1,26 @@
|
|||||||
|
export interface Platform {
|
||||||
|
/**
|
||||||
|
* The architecture
|
||||||
|
*/
|
||||||
|
arch: 'x86_64' | 'aarch64' | string;
|
||||||
|
};
|
||||||
|
|
||||||
|
type PackagePhase = (task: PackageTask) => Promise<void>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sufficient information for representing current packaging platform.
|
||||||
|
*/
|
||||||
|
export interface PackagePlatform {
|
||||||
|
hostPlatform: Platform;
|
||||||
|
buildPlatform: Platform;
|
||||||
|
}
|
||||||
|
|
||||||
export interface PackageTask {
|
export interface PackageTask {
|
||||||
name: string;
|
name: string;
|
||||||
patchPhase?: (task: PackageTask) => Promise<void>;
|
patchPhase?: PackagePhase;
|
||||||
configurePhase?: (task: PackageTask) => Promise<void>;
|
configurePhase?: PackagePhase;
|
||||||
buildPhase?: (task: PackageTask) => Promise<void>;
|
buildPhase?: PackagePhase;
|
||||||
installPhase?: (task: PackageTask) => Promise<void>;
|
installPhase?: PackagePhase;
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user