1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-24 07:20: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 bat (string "@echo off\r\njanet %~dp0\\" name "%*"))
(def newname (string binpath sep name ".bat"))
(array/push (dyn :installed-files) newname)
(add-body "install"
(spit newname bat))
(add-body "uninstall"
(os/rm newname))))
(spit newname bat))))
(defn declare-archive
"Build a janet archive. This is a file that bundles together many janet