From 4aa6afbf4715946c22e0a8d9d380126fc81b73c9 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sun, 25 Aug 2019 16:54:54 -0400 Subject: [PATCH] Fix binscripts on windows. --- auxlib/cook.janet | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/auxlib/cook.janet b/auxlib/cook.janet index 94064df6..84ba47f4 100644 --- a/auxlib/cook.janet +++ b/auxlib/cook.janet @@ -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