@motionharness/cli 0.1.3 → 0.1.4
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 +10 -9
- package/bin/npm-resolve.mjs +1 -0
- package/package.json +7 -5
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# MotionHarness CLI
|
|
2
2
|
|
|
3
|
-
Install the CLI with npm on macOS (Apple Silicon or Intel)
|
|
3
|
+
Install the CLI with npm on macOS (Apple Silicon or Intel), Windows 10/11 x64,
|
|
4
|
+
or Ubuntu 24.04 x64:
|
|
4
5
|
|
|
5
6
|
Some versions are published for only one platform. Install a version that includes
|
|
6
7
|
your platform; if `latest` omits it, select an older compatible version explicitly
|
|
@@ -26,11 +27,12 @@ dependencies. Run `mh skill` for the authoring and Agent guide.
|
|
|
26
27
|
|
|
27
28
|
Use `mh render ./clip.wav --project ./my-project` to export the audio mix, or
|
|
28
29
|
`mh render ./frames.zip --project ./my-project` for a numbered PNG sequence.
|
|
29
|
-
The
|
|
30
|
-
|
|
30
|
+
The macOS and Windows packages include standalone LGPL FFmpeg and ffprobe,
|
|
31
|
+
extracted automatically on first use. Corresponding
|
|
31
32
|
sources, licenses and the rebuild recipe are included under licenses/media in
|
|
32
|
-
the runtime resource directory reported by mh doctor.
|
|
33
|
-
|
|
33
|
+
the runtime resource directory reported by mh doctor. On Ubuntu, install
|
|
34
|
+
the system tools with `sudo apt install ffmpeg`. ProRes requires FFmpeg 7+;
|
|
35
|
+
use `MH_FFMPEG` and `MH_FFPROBE` to select compatible alternatives. PNG, APNG, PNG sequences and WAV use native
|
|
34
36
|
writers. Studio also offers MP4
|
|
35
37
|
(H.264 or HEVC), ProRes MOV, GIF and WebP when the host supports the encoder.
|
|
36
38
|
|
|
@@ -43,17 +45,16 @@ configuration status and an off switch; reinstalling preserves a previous opt-ou
|
|
|
43
45
|
|
|
44
46
|
`@motionharness/cli` provides the `mh` command and selects an exactly matching
|
|
45
47
|
platform package. `@motionharness/cli-darwin-arm64` and
|
|
46
|
-
`@motionharness/cli-darwin-x64` contain `MotionHarness`;
|
|
48
|
+
`@motionharness/cli-darwin-x64` and `@motionharness/cli-linux-x64` contain `MotionHarness`;
|
|
47
49
|
`@motionharness/cli-win32-x64` contains `MotionHarness.exe`. The native process uses
|
|
48
50
|
this full product name; the command remains `mh`. Install the main package
|
|
49
|
-
for the command.
|
|
50
|
-
can run from source. Keep optional dependencies enabled. Installation works with
|
|
51
|
+
for the command. The Linux package targets x64 with glibc. Keep optional dependencies enabled. Installation works with
|
|
51
52
|
`--ignore-scripts`: there are no postinstall hooks or extra binary downloads.
|
|
52
53
|
|
|
53
54
|
For installations predating this native filename, update with
|
|
54
55
|
`npm install -g @motionharness/cli@latest --include=optional`.
|
|
55
56
|
|
|
56
|
-
The npm command verifies the platform package and its version. On macOS it uses
|
|
57
|
+
The npm command verifies the platform package and its version. On macOS and Linux it uses
|
|
57
58
|
experimental `process.execve()` to replace Node with Rust; unavailable API support
|
|
58
59
|
produces an upgrade prompt. On Windows it starts and waits for `MotionHarness.exe`, preserving
|
|
59
60
|
arguments, stdin/stdout/stderr and exit status.
|
package/bin/npm-resolve.mjs
CHANGED
|
@@ -8,6 +8,7 @@ export const platforms = Object.freeze({
|
|
|
8
8
|
'darwin-arm64': '@motionharness/cli-darwin-arm64',
|
|
9
9
|
'darwin-x64': '@motionharness/cli-darwin-x64',
|
|
10
10
|
'win32-x64': '@motionharness/cli-win32-x64',
|
|
11
|
+
'linux-x64': '@motionharness/cli-linux-x64',
|
|
11
12
|
});
|
|
12
13
|
|
|
13
14
|
export function resolveBinary(packageJson, platform = process.platform, arch = process.arch) {
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.1.
|
|
2
|
+
"version": "0.1.4",
|
|
3
3
|
"license": "UNLICENSED",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
@@ -16,16 +16,18 @@
|
|
|
16
16
|
},
|
|
17
17
|
"os": [
|
|
18
18
|
"darwin",
|
|
19
|
-
"win32"
|
|
19
|
+
"win32",
|
|
20
|
+
"linux"
|
|
20
21
|
],
|
|
21
22
|
"cpu": [
|
|
22
23
|
"arm64",
|
|
23
24
|
"x64"
|
|
24
25
|
],
|
|
25
26
|
"optionalDependencies": {
|
|
26
|
-
"@motionharness/cli-darwin-arm64": "0.1.
|
|
27
|
-
"@motionharness/cli-darwin-x64": "0.1.
|
|
28
|
-
"@motionharness/cli-win32-x64": "0.1.
|
|
27
|
+
"@motionharness/cli-darwin-arm64": "0.1.4",
|
|
28
|
+
"@motionharness/cli-darwin-x64": "0.1.4",
|
|
29
|
+
"@motionharness/cli-win32-x64": "0.1.4",
|
|
30
|
+
"@motionharness/cli-linux-x64": "0.1.4"
|
|
29
31
|
},
|
|
30
32
|
"files": [
|
|
31
33
|
"bin/mh",
|