0

I'm building an app using angular. The app will run on the clients computer. When an update is there it will download a zip file from the server and upgrade the required files.

I guess js and html is incapable of copying and modifying files. Our first idea was to run a background application on the os to check for updates and do the updates as necessary. But what other approaches are there to achieve this?

Captain Obvlious
  • 19,754
  • 5
  • 44
  • 74
astroanu
  • 3,901
  • 2
  • 36
  • 50
  • None. Not through in-browser JS alone anwyway. Can't you just host the app? Or get the client to download/update the zip? – CodingIntrigue Apr 14 '14 at 11:43
  • this post may help you : http://stackoverflow.com/questions/23056808/detect-application-version-change-on-a-single-page-application – Jscti Apr 14 '14 at 11:45

1 Answers1

2

Even if the application is offline, you can still host it, just use AppCache or something like it.

See this post for a tutorial:

http://www.sitepoint.com/creating-offline-html5-apps-with-appcache/
malix
  • 3,566
  • 1
  • 31
  • 41