Skip to content

Commit

Permalink
Merge pull request #189 from depot/fix-permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie authored Sep 15, 2023
2 parents 58bbfcb + 99b4e36 commit fa666a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions npm/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ cp ../dist/windows_windows_386/bin/depot.exe packages/cli-win32-ia32/bin/
cp ../dist/windows_windows_amd64_v1/bin/depot.exe packages/cli-win32-x64/bin/
cp ../dist/windows_windows_arm_6/bin/depot.exe packages/cli-win32-arm/bin/
cp ../dist/windows_windows_arm64/bin/depot.exe packages/cli-win32-arm64/bin/

chmod +x packages/*/bin/*
2 changes: 1 addition & 1 deletion npm/src/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ function maybeOptimizePackage(binPath: string): void {
async function downloadDirectlyFromNPM(pkg: string, subpath: string, binPath: string): Promise<void> {
// If that fails, the user could have npm configured incorrectly or could not
// have npm installed. Try downloading directly from npm as a last resort.
const url = `https://registry.npmjs.org/${pkg}/-/${pkg.replace('@depot/cli-', '')}-${versionFromPackageJSON}.tgz`
const url = `https://registry.npmjs.org/${pkg}/-/${pkg.replace('@depot/', '')}-${versionFromPackageJSON}.tgz`
console.error(`[@depot/cli] Trying to download ${JSON.stringify(url)}`)
try {
fs.writeFileSync(binPath, extractFileFromTarGzip(await fetch(url), subpath))
Expand Down

0 comments on commit fa666a0

Please sign in to comment.