mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 19:19:53 +00:00
Update cook tool.
This commit is contained in:
parent
f8935b0692
commit
03e3ecb0a1
@ -177,14 +177,19 @@
|
|||||||
|
|
||||||
(defn make-archive
|
(defn make-archive
|
||||||
"Build a janet archive. This is a file that bundles together many janet
|
"Build a janet archive. This is a file that bundles together many janet
|
||||||
scripts into a janet form. This file can the be moved to any machine with
|
scripts into a janet image. This file can the be moved to any machine with
|
||||||
a janet vm and the required dependencies and run there."
|
a janet vm and the required dependencies and run there."
|
||||||
[& opts]
|
[& opts]
|
||||||
(error "Not Yet Implemented."))
|
(def opt-table (table ;opts))
|
||||||
|
(os/mkdir "build")
|
||||||
|
(def entry (opt-table :entry))
|
||||||
|
(def name (opt-table :name))
|
||||||
|
(spit (string name ".jimage") (make-image (require entry))))
|
||||||
|
|
||||||
(defn make-binary
|
(defn make-binary
|
||||||
"Make a binary executable that can be run on the current platform. This function
|
"Make a binary executable that can be run on the current platform. This function
|
||||||
generates a self contained binary that can be run of the same architecture as the
|
generates a self contained binary that can be run of the same architecture as the
|
||||||
build machine, as the current janet vm will be packaged with the output binary."
|
build machine, as the current janet vm will be packaged with the output binary."
|
||||||
[& opts]
|
[& opts]
|
||||||
|
(def
|
||||||
(error "Not Yet Implemented."))
|
(error "Not Yet Implemented."))
|
||||||
|
Loading…
Reference in New Issue
Block a user