1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-24 12:17:41 +00:00

Update installer and make things build on windows.

We can now build windows executables with jpm.
This commit is contained in:
Calvin Rose
2019-07-28 01:05:15 -04:00
parent 7e97687c9e
commit ec32d11b76
7 changed files with 48 additions and 230 deletions

View File

@@ -464,7 +464,13 @@ int main(int argc, const char **argv) {
(defn clear-cache
"Clear the global git cache."
[]
(rm (find-cache)))
(def cache (find-cache))
(print "clearing " cache "...")
(if is-win
# Git for windows decided that .git should be hidden and everything in it read-only.
# This means we can't delete things easily.
(os/shell (string `rmdir /S /Q "` cache `"`))
(rm cache)))
(defn install-git
"Install a bundle from git. If the bundle is already installed, the bundle