@pubm/plugin-brew 0.4.6 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/brew-core.d.ts +3 -0
- package/dist/brew-tap.d.ts +3 -0
- package/dist/formula.d.ts +65 -0
- package/dist/git-identity.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +24 -34326
- package/dist/types.d.ts +13 -0
- package/package.json +2 -2
- package/dist/keyring.linux-x64-gnu-62qs1shy.node +0 -0
- package/dist/keyring.linux-x64-musl-n4e0vcy6.node +0 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { ReleaseAsset } from "@pubm/core";
|
|
2
|
+
import type { AssetPlatformMatcher } from "./types.js";
|
|
3
|
+
export interface FormulaAsset {
|
|
4
|
+
platform: "darwin-arm64" | "darwin-x64" | "darwin-x64-baseline" | "linux-arm64" | "linux-arm64-musl" | "linux-x64" | "linux-x64-baseline" | "linux-x64-musl" | "linux-x64-musl-baseline";
|
|
5
|
+
url: string;
|
|
6
|
+
sha256: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GenerateFormulaOptions {
|
|
9
|
+
name: string;
|
|
10
|
+
desc: string;
|
|
11
|
+
homepage: string;
|
|
12
|
+
license: string;
|
|
13
|
+
version: string;
|
|
14
|
+
assets: FormulaAsset[];
|
|
15
|
+
}
|
|
16
|
+
export declare function generateFormula(opts: GenerateFormulaOptions): string;
|
|
17
|
+
export declare function updateFormula(content: string, version: string, assets: FormulaAsset[]): string;
|
|
18
|
+
declare const FORMULA_PLATFORMS: {
|
|
19
|
+
readonly "darwin-arm64": {
|
|
20
|
+
readonly os: "darwin";
|
|
21
|
+
readonly arch: "arm64";
|
|
22
|
+
};
|
|
23
|
+
readonly "darwin-x64": {
|
|
24
|
+
readonly os: "darwin";
|
|
25
|
+
readonly arch: "x64";
|
|
26
|
+
};
|
|
27
|
+
readonly "darwin-x64-baseline": {
|
|
28
|
+
readonly os: "darwin";
|
|
29
|
+
readonly arch: "x64";
|
|
30
|
+
readonly variant: "baseline";
|
|
31
|
+
};
|
|
32
|
+
readonly "linux-arm64": {
|
|
33
|
+
readonly os: "linux";
|
|
34
|
+
readonly arch: "arm64";
|
|
35
|
+
};
|
|
36
|
+
readonly "linux-arm64-musl": {
|
|
37
|
+
readonly os: "linux";
|
|
38
|
+
readonly arch: "arm64";
|
|
39
|
+
readonly abi: "musl";
|
|
40
|
+
};
|
|
41
|
+
readonly "linux-x64": {
|
|
42
|
+
readonly os: "linux";
|
|
43
|
+
readonly arch: "x64";
|
|
44
|
+
};
|
|
45
|
+
readonly "linux-x64-baseline": {
|
|
46
|
+
readonly os: "linux";
|
|
47
|
+
readonly arch: "x64";
|
|
48
|
+
readonly variant: "baseline";
|
|
49
|
+
};
|
|
50
|
+
readonly "linux-x64-musl": {
|
|
51
|
+
readonly os: "linux";
|
|
52
|
+
readonly arch: "x64";
|
|
53
|
+
readonly abi: "musl";
|
|
54
|
+
};
|
|
55
|
+
readonly "linux-x64-musl-baseline": {
|
|
56
|
+
readonly os: "linux";
|
|
57
|
+
readonly arch: "x64";
|
|
58
|
+
readonly abi: "musl";
|
|
59
|
+
readonly variant: "baseline";
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export type FormulaPlatformKey = keyof typeof FORMULA_PLATFORMS;
|
|
63
|
+
export declare function matchAssetToPlatform(assets: ReleaseAsset[], formulaPlatform: FormulaPlatformKey, customMatcher?: AssetPlatformMatcher): ReleaseAsset | undefined;
|
|
64
|
+
export declare function releaseAssetsToFormulaAssets(assets: ReleaseAsset[], customMatchers?: Record<string, AssetPlatformMatcher>): FormulaAsset[];
|
|
65
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ensureGitIdentity(cwd?: string): void;
|
package/dist/index.d.ts
ADDED