jazzdotdev / jazz

The Scripting Engine that Combines Speed, Safety, and Simplicity
Apache License 2.0
146 stars 11 forks source link

how to install a torchbear app #164

Open naturallymitchell opened 5 years ago

naturallymitchell commented 5 years ago

since #148 , @sineemore said in https://github.com/foundpatterns/machu-picchu/pull/9

Link to mp (ln -s ...) can be placed in the PATH as well.

I don't fully get this plan

and what about torchbear apps as directories? I didn't see any example of a /usr/bin/* /bin/* app installed as a directory. they all seem to be compiled into a single binary. could a nested chmod +x script work?

sineemore commented 5 years ago

Linux

  1. install all files under /usr/share/<app name>/ and create a link in /usr/bin
  2. if there is only a single file -- install directly to /usr/bin
  3. if all files are Lua scripts -- concat them (involves magic) and install directly to /usr/bin

In all cases it is possible to have a custom directory in /usr/share for static files.

The actual installation process depends on the distribution and should be handled by the package manager (like apt or yum). I'm heavily against using installers on Linux.

Windows

Dunno about this one, probably an installer. Maybe something like chocolatey as well.

MacOS

Homebrew

naturallymitchell commented 5 years ago

Ok.. then I'm thinking to extend Torchbear's installer to give the option to install mp this way, and then at least for now, use mp to install other apps.

https://github.com/foundpatterns/machu-picchu/issues/12