fix: fix uv and bun install on linux (#3514)

This commit is contained in:
happyZYM
2025-03-18 13:58:20 +08:00
committed by GitHub
parent b4c71b4dd3
commit 4939fc8b03
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -110,7 +110,8 @@ async function downloadBunBinary(platform, arch, version = DEFAULT_BUN_VERSION,
const sourcePath = path.join(sourceDir, file)
const destPath = path.join(binDir, file)
fs.renameSync(sourcePath, destPath)
fs.copyFileSync(sourcePath, destPath)
fs.unlinkSync(sourcePath)
// Set executable permissions for non-Windows platforms
if (platform !== 'win32') {
+2 -1
View File
@@ -123,7 +123,8 @@ async function downloadUvBinary(platform, arch, version = DEFAULT_UV_VERSION, is
for (const file of files) {
const sourcePath = path.join(sourceDir, file)
const destPath = path.join(binDir, file)
fs.renameSync(sourcePath, destPath)
fs.copyFileSync(sourcePath, destPath)
fs.unlinkSync(sourcePath)
// Set executable permissions for non-Windows platforms
if (platform !== 'win32') {