diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2023-06-20 15:26:23 -0400 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2023-06-20 15:26:23 -0400 |
commit | 4a0468e9c4c51c258d4f2c1ab8b3d33b29a0f4e4 (patch) | |
tree | ab021674093dd471fc0c2aa4684bdc24472641cf /build.sh | |
parent | 3ae700046f77fa3c674d5a2d5c810d0d8526dd64 (diff) | |
parent | dcb46d8e39b673b11cd6b225103291fc03003343 (diff) | |
download | lite-xl-plugin-manager-4a0468e9c4c51c258d4f2c1ab8b3d33b29a0f4e4.tar.gz lite-xl-plugin-manager-4a0468e9c4c51c258d4f2c1ab8b3d33b29a0f4e4.zip |
Merge branch 'master' of github.com:adamharrison/lite-xl-plugin-manager
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -39,7 +39,7 @@ fi # Build the pre-packaged lua file into the executbale. if [[ "$@" == *"-DLPM_STATIC"* ]]; then [[ ! -e "lua.exe" ]] && gcc -Ilib/lua -o lua.exe lib/lua/onelua.c -lm - ./lua.exe -e 'f = string.dump(assert(loadfile("src/lpm.lua"))) io.open("src/lpm.lua.c", "wb"):write("unsigned char lpm_luac[] = \"" .. f:gsub(".", function (c) return string.format("\\x%02X",string.byte(c)) end) .. "\";unsigned int lpm_luac_len = " .. #f .. ";")' + ./lua.exe -e 'io.open("src/lpm.lua.c", "wb"):write("unsigned char lpm_luac[] = \""..string.dump(loadfile("src/lpm.lua")):gsub(".",function(c) return string.format("\\x%02X",string.byte(c)) end).."\";unsigned int lpm_luac_len = sizeof(lpm_luac)-1;")' fi [[ $OSTYPE != 'msys'* && $CC != *'mingw'* && $CC != "emcc" ]] && CFLAGS="$CFLAGS -DLUA_USE_LINUX" && LDFLAGS="$LDFLAGS -ldl" |