1
0
mirror of https://github.com/janet-lang/janet synced 2025-04-05 06:46:56 +00:00

Notify user when script is installed during a bundle installation.

Lets user know what to add to PATH.
This commit is contained in:
Calvin Rose 2025-04-01 18:52:23 -05:00
parent b458404b41
commit cf714ed591

View File

@ -4314,6 +4314,9 @@
(when check
(do-hook module bundle-name :check man)))
(print "installed " bundle-name)
(when (get man :has-bin-script)
(def binpath (string (dyn *syspath*) s "bin"))
(eprintf "executable scripts have been installed to %s" binpath))
bundle-name)
(defn- bundle/pack
@ -4447,6 +4450,7 @@
(default dest (last (string/split s src)))
(default chmod-mode 8r755)
(os/mkdir (string (dyn *syspath*) s "bin"))
(put manifest :has-bin-script true)
(bundle/add-file manifest src (string "bin" s dest) chmod-mode))
(defn bundle/update-all