diff options
| -rwxr-xr-x | init | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -5,7 +5,7 @@ if [ -e libluajit.a ]; then | |||
| 5 | fi | 5 | fi |
| 6 | mkdir lua | 6 | mkdir lua |
| 7 | tar -xvzf lua-*.tar.gz --directory="lua" --strip-components=1 | 7 | tar -xvzf lua-*.tar.gz --directory="lua" --strip-components=1 |
| 8 | mv luarocks-packaging/hardcoded.lua luarocks/src/luarocks/core/hardcoded.lua | 8 | cp luarocks-packaging/hardcoded.lua luarocks/src/luarocks/core/hardcoded.lua |
| 9 | cd luarocks | 9 | cd luarocks |
| 10 | mkdir build-binary | 10 | mkdir build-binary |
| 11 | sed -i 's/local program_version = "dev"/local program_version = "lua4.win"/g' /root/luarocks/src/luarocks/core/cfg.lua | 11 | sed -i 's/local program_version = "dev"/local program_version = "lua4.win"/g' /root/luarocks/src/luarocks/core/cfg.lua |
| @@ -15,6 +15,7 @@ patch -i /root/luarocks-packaging/luarocks.exe.c.patch build-binary/luarocks.exe | |||
| 15 | cat build-binary/luarocks.exe.c | wc -l | 15 | cat build-binary/luarocks.exe.c | wc -l |
| 16 | gcc -o build-binary/luarocks.exe -Oz build-binary/luarocks.exe.c -I/root/lua/src /root/libbz2.a /root/libssl.a /root/libz.a /root/liblua.a -mconsole -mwindows -lm | 16 | gcc -o build-binary/luarocks.exe -Oz build-binary/luarocks.exe.c -I/root/lua/src /root/libbz2.a /root/libssl.a /root/libz.a /root/liblua.a -mconsole -mwindows -lm |
| 17 | # For some reason we have to do this twice to actually compile in all the modules | 17 | # For some reason we have to do this twice to actually compile in all the modules |
| 18 | cp /root/luarocks-packaging/hardcoded.lua src/luarocks/core/hardcoded.lua | ||
| 18 | LUAROCKS_CROSS_COMPILING=1 lua5.4 binary/all_in_one | 19 | LUAROCKS_CROSS_COMPILING=1 lua5.4 binary/all_in_one |
| 19 | patch -i /root/luarocks-packaging/luarocks.exe.c.patch build-binary/luarocks.exe.c | 20 | patch -i /root/luarocks-packaging/luarocks.exe.c.patch build-binary/luarocks.exe.c |
| 20 | cat build-binary/luarocks.exe.c | wc -l | 21 | cat build-binary/luarocks.exe.c | wc -l |
