Skip to content

Commit

Permalink
fix: do not chmod for 7za when process.env.USE_SYSTEM_7ZA is true (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
beyondkmp committed Mar 25, 2024
1 parent 8160363 commit a999da4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/selfish-experts-wonder.md
@@ -0,0 +1,5 @@
---
"builder-util": patch
---

should not chmod for 7za when process.env.USE_SYSTEM_7ZA is true
5 changes: 4 additions & 1 deletion packages/builder-util/src/7za.ts
@@ -1,8 +1,11 @@
import { path7x, path7za } from "7zip-bin"
import { chmod } from "fs-extra"
import * as fs from "fs"

export async function getPath7za(): Promise<string> {
await chmod(path7za, 0o755)
if (fs.existsSync(path7za)) {
await chmod(path7za, 0o755)
}
return path7za
}

Expand Down

0 comments on commit a999da4

Please sign in to comment.