@remotion/install-whisper-cpp 4.0.520 → 4.0.522

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.
@@ -47,14 +47,14 @@ const utils_1 = require("./utils");
47
47
  const getIsSemVer = (str) => {
48
48
  return /^[\d]{1}\.[\d]{1,2}\.+/.test(str);
49
49
  };
50
- const execute = ({ printOutput, signal, cwd, shell, args, bin, }) => {
50
+ const execute = ({ printOutput, signal, cwd, env, args, bin, }) => {
51
51
  const stdio = printOutput ? 'inherit' : 'ignore';
52
52
  return new Promise((resolve, reject) => {
53
53
  const child = (0, child_process_1.spawn)(bin, args, {
54
54
  stdio,
55
55
  signal: signal !== null && signal !== void 0 ? signal : undefined,
56
56
  cwd: cwd !== null && cwd !== void 0 ? cwd : undefined,
57
- shell: shell !== null && shell !== void 0 ? shell : undefined,
57
+ env: env !== null && env !== void 0 ? env : undefined,
58
58
  });
59
59
  child.on('exit', (code, exitSignal) => {
60
60
  if (code !== 0) {
@@ -83,12 +83,23 @@ const installForWindows = async ({ version, to, printOutput, signal, }) => {
83
83
  signal,
84
84
  });
85
85
  await execute({
86
- shell: 'powershell',
86
+ env: {
87
+ ...process.env,
88
+ REMOTION_WHISPER_ARCHIVE: filePath,
89
+ REMOTION_WHISPER_DESTINATION: to,
90
+ },
87
91
  printOutput,
88
92
  signal,
89
93
  cwd: null,
90
- bin: 'Expand-Archive',
91
- args: ['-Force', filePath, to],
94
+ bin: 'powershell.exe',
95
+ args: [
96
+ '-NoProfile',
97
+ '-NonInteractive',
98
+ '-InputFormat',
99
+ 'None',
100
+ '-Command',
101
+ 'Expand-Archive -Force -LiteralPath $env:REMOTION_WHISPER_ARCHIVE -DestinationPath $env:REMOTION_WHISPER_DESTINATION -ErrorAction Stop',
102
+ ],
92
103
  });
93
104
  (0, fs_1.rmSync)(filePath);
94
105
  };
@@ -99,7 +110,7 @@ const installWhisperForUnix = async ({ version, to, printOutput, signal, }) => {
99
110
  printOutput,
100
111
  signal,
101
112
  cwd: null,
102
- shell: null,
113
+ env: null,
103
114
  });
104
115
  const ref = getIsSemVer(version) ? `v${version}` : version;
105
116
  await execute({
@@ -108,7 +119,7 @@ const installWhisperForUnix = async ({ version, to, printOutput, signal, }) => {
108
119
  printOutput,
109
120
  cwd: to,
110
121
  signal,
111
- shell: null,
122
+ env: null,
112
123
  });
113
124
  await execute({
114
125
  args: [],
@@ -116,7 +127,7 @@ const installWhisperForUnix = async ({ version, to, printOutput, signal, }) => {
116
127
  cwd: to,
117
128
  signal,
118
129
  printOutput,
119
- shell: null,
130
+ env: null,
120
131
  });
121
132
  };
122
133
  const getWhisperExecutablePath = (whisperPath, whisperCppVersion) => {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/install-whisper-cpp"
4
4
  },
5
5
  "name": "@remotion/install-whisper-cpp",
6
- "version": "4.0.520",
6
+ "version": "4.0.522",
7
7
  "description": "Helpers for installing and using Whisper.cpp",
8
8
  "main": "dist/index.js",
9
9
  "bugs": {
@@ -19,11 +19,11 @@
19
19
  "author": "Jonny Burger <jonny@remotion.dev>",
20
20
  "license": "SEE LICENSE IN LICENSE.md",
21
21
  "dependencies": {
22
- "@remotion/captions": "4.0.520"
22
+ "@remotion/captions": "4.0.522"
23
23
  },
24
24
  "peerDependencies": {},
25
25
  "devDependencies": {
26
- "@remotion/eslint-config-internal": "4.0.520",
26
+ "@remotion/eslint-config-internal": "4.0.522",
27
27
  "eslint": "9.19.0",
28
28
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
29
29
  },