use of data tag in app.info

Posted on
  • Could I check if I specify a json file in apps.json that the file will not be overwritten when updating to the latest version of the app - but would be created if it does not exist and removed on an uninstall ?

    "data": [
          {"name":"waypoints.json","url":"waypoint­s.json"}
    ]
    
  • maybe this conversation gives you an idea for you code

    http://forum.espruino.com/conversations/­351636/#comment15470464

  • Yes, that should be correct. I made some changes recently to make sure that's what happened with data files.

    I guess the only issue you have is if you're sharing one file between multiple apps (as I think you are?) deleting just one app would end up deleting the file.

  • Yes I am sharing waypoints.json with other Apps but they are not installed. However I did not specify that the file was data and now realise this is what I need to do. Another check in at some point then :)

  • However I did not specify that the file was data and now realise this is what I need to do

    I may have actually updated apps.json for you already? I can't remember...

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

use of data tag in app.info

Posted by Avatar for HughB @HughB

Actions