add luajit binary wrappers

This commit is contained in:
Mikhail Kochegarov
2022-12-23 21:19:08 +10:00
parent 9a1f8a577e
commit a0cfb6e565
7 changed files with 140 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/bin/sh
# luajit wrapper that looks for libraries only relative to the current directory
# and relative to the executable's directory, making the distribution portable.
# get full path of $0 without spawning a new process (this wrapper process is bad enough)
bindir="${0%luajit}"
curdir="$PWD"
cd "$bindir"
bindir="$PWD"
cd "$curdir"
luadir="$bindir/../.." # platform-indep. Lua modules
platform_dir="$bindir/lua" # platform-specific Lua modules
export LUA_CPATH="./?.so;$bindir/clib/?.so"
export LUA_PATH="./?.lua;$platform_dir/?.lua;$luadir/?.lua;$luadir/?/init.lua"
export TERRA_PATH="./?.t;$luadir/?.t;$luadir/?/init.t"
exec "$bindir/luajit-bin" "$@"
+18
View File
@@ -0,0 +1,18 @@
#!/bin/sh
# luajit wrapper that looks for libraries only relative to the current directory
# and relative to the executable's directory, making the distribution portable.
# get full path of $0 without spawning a new process (this wrapper process is bad enough)
bindir="${0%luajit}"
curdir="$PWD"
cd "$bindir"
bindir="$PWD"
cd "$curdir"
luadir="$bindir/../.." # platform-indep. Lua modules
platform_dir="$bindir/lua" # platform-specific Lua modules
export LUA_CPATH="./?.so;$bindir/clib/?.so"
export LUA_PATH="./?.lua;$platform_dir/?.lua;$luadir/?.lua;$luadir/?/init.lua"
export TERRA_PATH="./?.t;$luadir/?.t;$luadir/?/init.t"
exec "$bindir/luajit-bin" "$@"
BIN
View File
Binary file not shown.
+43
View File
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="*"
name="LuaJIT"
type="win32"
/>
<description>LuaJIT</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- Windows 10 -->
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
<!-- Windows 8.1 -->
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
<!-- Windows Vista -->
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
<!-- Windows 7 -->
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
<!-- Windows 8 -->
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
</application>
</compatibility>
</assembly>
BIN
View File
Binary file not shown.
+43
View File
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="*"
name="LuaJIT"
type="win32"
/>
<description>LuaJIT</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- Windows 10 -->
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
<!-- Windows 8.1 -->
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
<!-- Windows Vista -->
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
<!-- Windows 7 -->
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
<!-- Windows 8 -->
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
</application>
</compatibility>
</assembly>
+18
View File
@@ -0,0 +1,18 @@
#!/bin/sh
# luajit wrapper that looks for libraries only relative to the current directory
# and relative to the executable's directory, making the distribution portable.
# get full path of $0 without spawning a new process (this wrapper process is bad enough)
bindir="${0%luajit}"
curdir="$PWD"
cd "$bindir"
bindir="$PWD"
cd "$curdir"
luadir="$bindir/../.." # platform-indep. Lua modules
platform_dir="$bindir/lua" # platform-specific Lua modules
export LUA_CPATH="./?.so;$bindir/clib/?.so"
export LUA_PATH="./?.lua;$platform_dir/?.lua;$luadir/?.lua;$luadir/?/init.lua"
export TERRA_PATH="./?.t;$luadir/?.t;$luadir/?/init.t"
exec "$bindir/luajit-bin" "$@"