@ricsam/r5d-macos-vm 0.0.0 → 0.0.55
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/README.md +53 -28
- package/bootstrap/Install r5d.command +81 -0
- package/bootstrap/README.txt +7 -0
- package/bootstrap/dev.r5d.worker-terminal.plist.template +23 -0
- package/bootstrap/install-worker-launch-agent.sh +47 -0
- package/bootstrap/start-worker.command.template +71 -0
- package/dist/cjs/artifact-manifest.cjs +224 -0
- package/dist/cjs/cli.cjs +179 -0
- package/dist/cjs/host.cjs +62 -0
- package/dist/cjs/main.cjs +10 -0
- package/dist/cjs/native-runtime.cjs +464 -0
- package/dist/cjs/package.json +5 -0
- package/dist/mjs/artifact-manifest.mjs +176 -0
- package/dist/mjs/cli.mjs +144 -0
- package/dist/mjs/host.mjs +37 -0
- package/dist/mjs/main.mjs +9 -0
- package/dist/mjs/native-runtime.mjs +421 -0
- package/dist/mjs/package.json +5 -0
- package/dist/types/artifact-manifest.d.ts +33 -0
- package/dist/types/cli.d.ts +23 -0
- package/dist/types/host.d.ts +7 -0
- package/dist/types/main.d.ts +2 -0
- package/dist/types/native-runtime.d.ts +28 -0
- package/native-artifact.json +14 -0
- package/package.json +39 -7
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type HostInformation = {
|
|
2
|
+
platform: NodeJS.Platform;
|
|
3
|
+
architecture: string;
|
|
4
|
+
macOSVersion: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function readHostInformation(): Promise<HostInformation>;
|
|
7
|
+
export declare function validateHostInformation(host: HostInformation): void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { NativeArtifactManifest } from "./artifact-manifest";
|
|
2
|
+
export type CommandResult = {
|
|
3
|
+
exitCode: number;
|
|
4
|
+
stdout: string;
|
|
5
|
+
stderr: string;
|
|
6
|
+
};
|
|
7
|
+
export type CommandRunner = (executable: string, args: readonly string[]) => Promise<CommandResult>;
|
|
8
|
+
export type RuntimeDependencies = {
|
|
9
|
+
cacheRoot?: string;
|
|
10
|
+
commandRunner?: CommandRunner;
|
|
11
|
+
download?: (manifest: NativeArtifactManifest, destination: string) => Promise<void>;
|
|
12
|
+
lockPollMs?: number;
|
|
13
|
+
lockTimeoutMs?: number;
|
|
14
|
+
staleLockMs?: number;
|
|
15
|
+
};
|
|
16
|
+
export declare function defaultCacheRoot(): string;
|
|
17
|
+
export declare function runtimeDirectory(cacheRoot: string, manifest: NativeArtifactManifest): string;
|
|
18
|
+
export declare function nativeExecutablePath(runtimeDir: string, manifest: NativeArtifactManifest): string;
|
|
19
|
+
export declare function pruneObsoleteNativeRuntimes(currentExecutable: string, cacheRoot?: string): Promise<string[]>;
|
|
20
|
+
export declare const runCommand: CommandRunner;
|
|
21
|
+
export declare function downloadNativeArtifact(manifest: NativeArtifactManifest, destination: string): Promise<void>;
|
|
22
|
+
export declare function inspectMachOExecutable(filePath: string): {
|
|
23
|
+
architecture: "arm64";
|
|
24
|
+
minimumMacOSVersion: string;
|
|
25
|
+
};
|
|
26
|
+
export declare function codeSignatureUsesHardenedRuntime(output: string): boolean;
|
|
27
|
+
export declare function verifyNativeApp(appPath: string, manifest: NativeArtifactManifest, runner?: CommandRunner): Promise<void>;
|
|
28
|
+
export declare function ensureNativeRuntime(manifest: NativeArtifactManifest, dependencies?: RuntimeDependencies): Promise<string>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"packageVersion": "0.0.55",
|
|
4
|
+
"url": "https://downloads.r5d.dev/r5d-macos-vm/0.0.55/R5DMacOSVM.app.zip",
|
|
5
|
+
"sha256": "67654675d47df67e89524b4481a12a022bf4e4cebaaa3803cd0423383cafaa9b",
|
|
6
|
+
"byteLength": 185983,
|
|
7
|
+
"archiveName": "R5DMacOSVM.app.zip",
|
|
8
|
+
"appName": "R5DMacOSVM.app",
|
|
9
|
+
"executableName": "R5DMacOSVM",
|
|
10
|
+
"bundleIdentifier": "dev.r5d.macos-vm",
|
|
11
|
+
"teamIdentifier": "W4NSLT4HKD",
|
|
12
|
+
"architecture": "arm64",
|
|
13
|
+
"minimumMacOSVersion": "14.0"
|
|
14
|
+
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ricsam/r5d-macos-vm",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
"version": "0.0.55",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/cjs/cli.cjs",
|
|
6
|
+
"module": "./dist/mjs/cli.mjs",
|
|
7
|
+
"types": "./dist/types/cli.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/types/cli.d.ts",
|
|
11
|
+
"import": "./dist/mjs/cli.mjs",
|
|
12
|
+
"require": "./dist/cjs/cli.cjs"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/ricsam/r5d-dev.git",
|
|
18
|
+
"directory": "packages/r5d-macos-vm"
|
|
19
|
+
},
|
|
20
|
+
"bin": {
|
|
21
|
+
"r5d-macos-vm": "dist/cjs/main.cjs"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"bootstrap",
|
|
26
|
+
"native-artifact.json",
|
|
27
|
+
"README.md"
|
|
28
|
+
],
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"access": "public"
|
|
31
|
+
},
|
|
32
|
+
"engines": {
|
|
33
|
+
"node": ">=18"
|
|
34
|
+
},
|
|
35
|
+
"os": [
|
|
36
|
+
"darwin"
|
|
37
|
+
],
|
|
38
|
+
"cpu": [
|
|
39
|
+
"arm64"
|
|
40
|
+
],
|
|
41
|
+
"sideEffects": false
|
|
10
42
|
}
|