fix(ci,build.sh): un-hardcode lua subproject detection

This commit is contained in:
takase1121
2023-11-30 11:24:42 +08:00
parent 5c5c77219b
commit 43643a16c0
2 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -181,7 +181,7 @@ main() {
# download the subprojects so we can start patching before configure.
# this will prevent reconfiguring the project.
meson subprojects download
lua_subproject_path=$(echo subprojects/lua-*/)
lua_subproject_path="subprojects/$(awk -F ' *= *' '/directory/ { printf $2 }' subprojects/lua.wrap)"
if [[ -d $lua_subproject_path ]]; then
patch -d $lua_subproject_path -p1 --forward < resources/windows/001-lua-unicode.diff
fi