Skip to content

Instantly share code, notes, and snippets.

@bmeck
Last active August 29, 2015 13:57

Revisions

  1. bmeck revised this gist Mar 6, 2014. 2 changed files with 1 addition and 2 deletions.
    1 change: 0 additions & 1 deletion run_it.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,6 @@




    #
    # Still a lot to do, but it works!
    # Been looking at how to do this for a long time
    2 changes: 1 addition & 1 deletion updated.md
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    see (http://bmeck.github.io/)[http://bmeck.github.io/]
    see http://bmeck.github.io/ for prebuilt binaries
  2. bmeck revised this gist Mar 6, 2014. 2 changed files with 5 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions run_it.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,7 @@




    #
    # Still a lot to do, but it works!
    # Been looking at how to do this for a long time
    1 change: 1 addition & 0 deletions updated.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    see (http://bmeck.github.io/)[http://bmeck.github.io/]
  3. bmeck revised this gist Mar 6, 2014. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion run_it.sh
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,6 @@
    #
    # Todo: good quality ecryption
    # Todo: in memory resources (right now it is self extracting)
    # Todo: fs cleanup on close (leaves a tmp dir)
    # Todo: check windows, should work but probably needs some tweaking
    #
    # Many thanks to node-webkit for examples and zlib for including minizip
  4. bmeck revised this gist Mar 5, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions run_it.sh
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,7 @@
    # Todo: good quality ecryption
    # Todo: in memory resources (right now it is self extracting)
    # Todo: fs cleanup on close (leaves a tmp dir)
    # Todo: check windows, should work but probably needs some tweaking
    #
    # Many thanks to node-webkit for examples and zlib for including minizip
    #
  5. bmeck created this gist Mar 5, 2014.
    21 changes: 21 additions & 0 deletions run_it.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    #
    # Still a lot to do, but it works!
    # Been looking at how to do this for a long time
    #
    # Todo: good quality ecryption
    # Todo: in memory resources (right now it is self extracting)
    # Todo: fs cleanup on close (leaves a tmp dir)
    #
    # Many thanks to node-webkit for examples and zlib for including minizip
    #

    # --extracting sets up node to check if it is a self-extracting zip archive
    ./configure --extracting
    make
    # path to a module, main field in package.json will be executed on start
    zip -r bundle.zip $PATH_TO_MODULE
    cat node bundle.zip > bundled_node
    chmod +x bundle_node
    # run our bundled app
    # respects the $TMPDIR convention
    TMPDIR=$WHERE_TO_EXTRACT ./bundled_node