Skip to content

Commit

Permalink
fix inject apk for armeabi
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Apr 29, 2020
1 parent 7491ee4 commit 7a85a8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lua/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ function _inject_apk(inputfile, outputfile, libraries)
arch = "arm64-v8a"
end
local libdir = path.join(tmpdir, "lib", arch)
if not os.isdir(libdir) then
arch = "armeabi"
libdir = path.join(tmpdir, "lib", arch)
end
assert(os.isdir(libdir), "%s not found!", libdir)

-- inject libraries to 'lib/arch/*.so'
Expand Down

0 comments on commit 7a85a8f

Please sign in to comment.