mirror of
https://github.com/janet-lang/janet
synced 2025-08-03 20:43:55 +00:00
Better shim for scripts on windows.
Arguments should be passed in properly.
This commit is contained in:
parent
4aa6afbf47
commit
c45bad9437
@ -689,7 +689,8 @@ int main(int argc, const char **argv) {
|
|||||||
# Create a dud batch file when on windows.
|
# Create a dud batch file when on windows.
|
||||||
(when is-win
|
(when is-win
|
||||||
(def name (last (string/split sep main)))
|
(def name (last (string/split sep main)))
|
||||||
(def bat (string "@echo off\r\njanet %~dp0\\" name "%*"))
|
(def fullname (string binpath sep name))
|
||||||
|
(def bat (string "@echo off\r\njanet " fullname " %*"))
|
||||||
(def newname (string binpath sep name ".bat"))
|
(def newname (string binpath sep name ".bat"))
|
||||||
(array/push (dyn :installed-files) newname)
|
(array/push (dyn :installed-files) newname)
|
||||||
(add-body "install"
|
(add-body "install"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user