pu.sh: generate a JSON apps file.