Skip to content

Commit

Permalink
Use Grin-Get for installation
Browse files Browse the repository at this point in the history
  • Loading branch information
ElvishJerricco committed Oct 5, 2014
1 parent d286bc4 commit d6f1dfa
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build
3 changes: 3 additions & 0 deletions LuaLua/grin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"startup": "load.lua"
}
3 changes: 1 addition & 2 deletions LuaLua/load.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
local ls = loadstring
local me = shell.getRunningProgram()
local dir = fs.combine("", me:sub(1, -1 - #(fs.getName(me)))) -- fs.combine to remove / if this is in a directory
local dir = fs.getDir(shell.getRunningProgram())
local files = {}


Expand Down
35 changes: 35 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<project name="LUALUA" default="main">
<condition property="is_windows">
<os family="windows"/>
</condition>
<condition property="is_unix">
<os family="unix" />
</condition>

<target name="make_archive">
<copy todir="build/LuaLua">
<fileset dir="LuaLua" />
</copy>
<zip zip64Mode="never" destfile="build/LuaLua.zip" basedir="build/LuaLua" />
</target>

<target name="if_windows" if="is_windows" depends="make_archive">
<exec executable="certutil">
<arg value="-encode" />
<arg value="build/LuaLua.zip" />
<arg value="build/LuaLua.zip.base64" />
</exec>
</target>

<target name="if_unix" if="is_unix" depends="make_archive">
<exec executable="base64">
<arg value="-i" />
<arg value="build/LuaLua.zip" />
<arg value="-o" />
<arg value="build/LuaLua.zip.base64" />
</exec>
</target>

<target name="main" depends="if_windows, if_unix">
</target>
</project>

0 comments on commit d6f1dfa

Please sign in to comment.