1
0
mirror of https://github.com/janet-lang/janet synced 2025-01-11 16:10:27 +00:00

Fix binscripts on windows.

This commit is contained in:
Calvin Rose 2019-08-25 16:54:54 -04:00
parent 29054e8072
commit 4aa6afbf47

View File

@ -691,10 +691,9 @@ int main(int argc, const char **argv) {
(def name (last (string/split sep main))) (def name (last (string/split sep main)))
(def bat (string "@echo off\r\njanet %~dp0\\" name "%*")) (def bat (string "@echo off\r\njanet %~dp0\\" name "%*"))
(def newname (string binpath sep name ".bat")) (def newname (string binpath sep name ".bat"))
(array/push (dyn :installed-files) newname)
(add-body "install" (add-body "install"
(spit newname bat)) (spit newname bat))))
(add-body "uninstall"
(os/rm newname))))
(defn declare-archive (defn declare-archive
"Build a janet archive. This is a file that bundles together many janet "Build a janet archive. This is a file that bundles together many janet