Skip to content

🎥 Make videos programmatically with React

correct directory

Jonny Burger950c11b56ddd
diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml
index db7d841b46..ffbb445f10 100644
--- a/.github/workflows/push.yml
+++ b/.github/workflows/push.yml
@@ -81,7 +81,7 @@ jobs:
php-version: "8.4"
- run: pip install pylint boto3 pytest
- name: Turbo Cache
- uses: actions/[email protected]
+ uses: actions/cache@v4
with:
path: |
node_modules/.cache/turbo
diff --git a/packages/install-whisper-cpp/src/install-whisper-cpp.ts b/packages/install-whisper-cpp/src/install-whisper-cpp.ts
index a150b5aecd..ba3c04dcd5 100644
--- a/packages/install-whisper-cpp/src/install-whisper-cpp.ts
+++ b/packages/install-whisper-cpp/src/install-whisper-cpp.ts
@@ -140,14 +140,24 @@ export const getWhisperExecutablePath = (
whisperCppVersion: string,
) => {
// INFO: 'main.exe' is deprecated.
- let cppBin = 'main';
+ let cppBin: string[] = ['main'];
+ let cppFolder: string[] = [];
if (compareVersions(whisperCppVersion, '1.7.4') >= 0) {
- cppBin = 'whisper-cli';
+ cppBin = ['whisper-cli'];
+ cppFolder = ['build', 'bin'];
}
return os.platform() === 'win32'
- ? path.join(path.resolve(process.cwd(), whisperPath), `${cppBin}.exe`)
- : path.join(path.resolve(process.cwd(), whisperPath), `./${cppBin}`);
+ ? path.join(
+ path.resolve(process.cwd(), whisperPath),
+ ...cppFolder,
+ `${cppBin}.exe`,
+ )
+ : path.join(
+ path.resolve(process.cwd(), whisperPath),
+ ...cppFolder,
+ `./${cppBin}`,
+ );
};
export const installWhisperCpp = async ({