D 2017-03-20T00:22:33.964 L howto N text/x-markdown P 4d4fc1c576d6cc0c60622985f18c564a690442bd U aspect W 1947
You will need sdx.kit from the front page of this repo. See tclkits for sources of pre-built kits
# grab a tclkit curl -O http://www.rkeene.org/devel/kitcreator/kitbuild/nightly/tclkit-fossil_trunk-linux-amd64 # make a copy of tclkit to run sdx with cp tclkit-fossil_trunk-linux-amd64 tclkit chmod +x tclkit # extract the vfs ./tclkit sdx.kit extract tclkit-fossil_trunk-linux-amd64 # add some code echo 'puts "Hello, Tclkit"' >> tclkit-fossil_trunk-linux-amd64.vfs/boot.tcl # sync changes back to tclkit ./tclkit sdx.kit sync tclkit-fossil_trunk-linux-amd64 tclkit-fossil_trunk-linux-amd64.vfs
boot.tcl is run on tclkit startup. Since there is no main.tcl, the tclkit will give you a Tcl shell.
# grab a tclkit curl -O http://www.rkeene.org/devel/kitcreator/kitbuild/nightly/tclkit-fossil_trunk-linux-amd64 # make a copy of tclkit to run sdx with cp tclkit-fossil_trunk-linux-amd64 tclkit chmod +x tclkit # create your application mkdir myapp.vfs echo 'puts "Hello, Starkit!"' > myapp/main.tcl # wrap it! ./tclkit sdx.kit wrap myapp -runtime tclkit-fossil_trunk-linux-amd64
Share the new executable myapp with your friends!
The above steps are easily elaborated to ...