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