Fix bug with Zip file creation and extraction

This commit is contained in:
OttoLidenbrock 2015-05-10 19:23:35 +10:00
parent a497e87a96
commit 9c43faae05
2 changed files with 4 additions and 4 deletions

View File

@ -664,9 +664,9 @@ assets : $(ASSETS_TIMESTAMP)
ls -R | grep ":$$" | sed -e 's/:$$//' -e 's/\.//' -e 's/^\///' > "index.txt"; \ ls -R | grep ":$$" | sed -e 's/:$$//' -e 's/\.//' -e 's/^\///' > "index.txt"; \
find MultiCraft >"filelist.txt"; \ find MultiCraft >"filelist.txt"; \
cp ${ROOT}/${ASSETS_TIMESTAMP} ${ROOT}/${ASSETS_TIMESTAMP}.old; \ cp ${ROOT}/${ASSETS_TIMESTAMP} ${ROOT}/${ASSETS_TIMESTAMP}.old; \
pushd ${ROOT}/assets/; \ pushd ${ROOT}/assets/MultiCraft; \
echo "Creating Files.zip"; \ echo "Creating Files.zip"; \
zip -r -X -q Files.zip MultiCraft/*; \ zip -r -X -q ../Files.zip *; \
popd; \ popd; \
else \ else \
echo "nothing to be done for assets"; \ echo "nothing to be done for assets"; \

View File

@ -35,7 +35,7 @@ public class MainActivity extends Activity implements IUtilitiesCallback {
private ProgressDialog mProgressDialog; private ProgressDialog mProgressDialog;
private TextView mProgressTextView; private TextView mProgressTextView;
private String unzipLocation = Environment.getExternalStorageDirectory() private String unzipLocation = Environment.getExternalStorageDirectory()
+ "/Minetest/"; + "/MultiCraft/";
private File version; private File version;
private Utilities util; private Utilities util;
private ProgressBar mProgressBar; private ProgressBar mProgressBar;