Skip to content

Commit 6e8a6aa

Browse files
committed
fix: fix transcribe error on macOs
1 parent 67d2a21 commit 6e8a6aa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/autocut/download.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { execSync } from "child_process"
88

99
import { autocutCheck } from "./check"
1010

11-
const AUTOCUT_VERSION = "v0.0.3-build.2023.02.14"
11+
const AUTOCUT_VERSION = "v0.0.3-build.2023.04.20"
1212

1313
const DOWNLOAD_URL = {
1414
github: {
@@ -135,7 +135,8 @@ function unzip(
135135
cb("error", `解压失败:${err},请重试`)
136136
} else {
137137
if(os.platform().indexOf("darwin") === 0){
138-
execSync(`chmod 777 ${excutePath}`)
138+
execSync(`chmod -R 777 ${path.resolve(excutePath, "..")}`)
139+
execSync(`cd ${path.resolve(excutePath, "..")} && bash ./build.sh`)
139140
}
140141
cb("success", excutePath )
141142
}

0 commit comments

Comments
 (0)