sqlcipher compatibilty

This commit is contained in:
Yuxin Wu
2020-06-26 19:01:18 -07:00
parent 249b2cf229
commit a82bd281a7
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ elif [[ $1 == "db" || $1 == "res" ]]; then
echo "Pulling resources... "
for d in avatar image2 voice2 emoji video sfs; do
adb shell "cd $RES_DIR/$chooseUser &&
busybox tar czf - $d 2>/dev/null | busybox base64" |
tar czf - $d 2>/dev/null | base64" |
base64 -di | tar xzf -
# Old Slow Way:
+3 -1
View File
@@ -49,6 +49,8 @@ if __name__ == '__main__':
with open(output_file, 'w') as f:
print >> f, htmls[0].encode('utf-8')
else:
assert output_file.endswith(".html")
basename = output_file[:-5]
for idx, html in enumerate(htmls):
with open(output_file + '.{}'.format(idx), 'w') as f:
with open(basename + '.{}'.format(idx) + '.html', 'w') as f:
print >> f, html.encode('utf-8')