Prevent build fail when APK is first built without out folder

This commit is contained in:
topjohnwu 2018-07-19 16:25:11 +08:00
parent 4b6285e5c2
commit c8cc652b71

View File

@ -214,6 +214,7 @@ def build_apk(args):
header('Output: ' + release)
rm(unsigned)
# Dump the stub APK to header
mkdir(os.path.join('native', 'out'))
with open(os.path.join('native', 'out', 'binaries_xz.h'), 'w') as out:
with open(release, 'rb') as src:
xz_dump(src, out, 'manager_xz')