feat: electron can read/write files now

This commit is contained in:
Tienson Qin
2021-01-22 21:20:04 +08:00
parent 5fa0295ba3
commit cf68a2ba80
20 changed files with 231 additions and 148 deletions

View File

@@ -35,7 +35,7 @@
(gobj/get js/window "workerThread")
(gobj/get js/window.workerThread "getChangedFiles"))
(->
(p/let [files (js/window.workerThread.getChangedFiles (util/get-repo-dir repo))
(p/let [files (js/window.workerThread.getChangedFiles (config/get-repo-dir repo))
files (bean/->clj files)]
(->
(p/let [remote-latest-commit (get-remote-ref repo)