Skip to content

Commit

Permalink
fix: Compatible with paths containing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
zcf0508 committed Oct 23, 2024
1 parent f7efce6 commit 2ef8dff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/autocut/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ function unzip(
cb("error", `解压失败:${err},请重试`)
} else {
if(os.platform().indexOf("darwin") === 0){
execSync(`chmod -R 777 ${path.resolve(excutePath, "..")}`)
execSync(`cd ${path.resolve(excutePath, "..")} && bash ./build.sh`)
execSync(`chmod -R 777 "${path.resolve(excutePath, "..")}"`)
execSync(`cd "${path.resolve(excutePath, "..")}" && bash ./build.sh`)
}
cb("success", excutePath )
}
Expand Down

1 comment on commit 2ef8dff

@zcf0508
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

close #69

Please sign in to comment.