Skip to content

Commit

Permalink
Rename script prepare to preparescript
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsEeleeya committed Dec 9, 2024
1 parent c7ff615 commit b8ee00f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions apps/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "@cap/desktop",
"type": "module",
"scripts": {
"dev": "dotenv -e ../../.env -- pnpm run prepare && tauri dev",
"build:tauri": "dotenv -e ../../.env -- pnpm run prepare && tauri build",
"prepare": "node scripts/prepare.js",
"dev": "dotenv -e ../../.env -- pnpm run preparescript && tauri dev",
"build:tauri": "dotenv -e ../../.env -- pnpm run preparescript && tauri build",
"preparescript": "node scripts/prepare.js",
"localdev": "dotenv -e ../../.env -- vinxi dev --port 3001",
"build": "vinxi build",
"tauri": "tauri"
Expand Down
1 change: 0 additions & 1 deletion apps/desktop/scripts/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ async function prepareFfmpegSidecar() {
const progress = ((downloadedBytes / totalBytes) * 100).toFixed(2);
process.stdout.write(`\rDownloading: ${progress}%`);
}

console.log("\nDownload complete.");
const archive = Buffer.concat(archiveBuffer);
await fs.writeFile(ffmpegDownloadPath, archive);
Expand Down

0 comments on commit b8ee00f

Please sign in to comment.