feat(electron): replace windows path \\ with /

This commit is contained in:
Tienson Qin
2021-01-27 22:05:56 +08:00
parent 2a633105dd
commit b61697e824
2 changed files with 20 additions and 13 deletions

View File

@@ -139,10 +139,9 @@
(utils/win32 file))
file
(and electron-local-repo? util/win32?)
(str (config/get-repo-dir repo-url) "\\" file)
(and electron-local-repo? (not= "/" (first file)))
(and electron-local-repo? (or
util/win32?
(not= "/" (first file))))
(str (config/get-repo-dir repo-url) "/" file)
:else