This is a python package which checks the zip file structure against an Excel file to see whether the zip file satisfies the commcare app required structure (as laid out in the Excel file).
INSTALLATION STEPS [only necessary once]
Install python for your Operating System(windows, Ubuntu, Mac Os). Steps are here: https://confluence.dimagi.com/display/internal/CommCare+Translation+Checker
Download script folder from here (https://drive.google.com/open?id=1GOJONlKri4Hn8jliVi0vbPYDIXtf98TQ). It should have the following file structure:
For windows: ‘cd %UserProfile%\Desktop\./zip_checker’
Otherwise: ‘cd ~/Desktop/zip_checker’
INSTRUCTIONS FOR USE
Paste the zip and excel files on your desktop.
Access the command line
Go to your desktop in the cmd line (as described in installation instructions step 5, type only till ‘Desktop’ )
In the cmd line type: ‘python -m zip_checker commcare.zip test.excel’ (change the file names as appropriate)
Script will tell whether the zip is validated or not.
If the zip is not validated. It will create an excel file ‘zipper_result.xlsx’ in same directory(in this case Desktop) which will have two sheets giving info about:
Files which are not found in zip
Extra files present in the zip