diff --git a/apps/twenties/ChangeLog b/apps/twenties/ChangeLog index 0fe82eb23f..d30be5ab8c 100644 --- a/apps/twenties/ChangeLog +++ b/apps/twenties/ChangeLog @@ -7,3 +7,4 @@ 0.07: Fix TypeError on scheduling for the next day. 0.08: Refactor to use the scheduling library. 0.09: Fix missing last buzz +0.10: Move setup script from boot file to run at install time from app loader. diff --git a/apps/twenties/boot.js b/apps/twenties/boot.js deleted file mode 100644 index 295bf42a8d..0000000000 --- a/apps/twenties/boot.js +++ /dev/null @@ -1,6 +0,0 @@ -{ // This boot script is deleted once the companion alarm is set up. - // The app will continue working by having the alarm rearm itself until - // the app is uninstalled. - require("twenties").setup(); - setTimeout(require("Storage").erase, 1000, "twenties.boot.js"); -} diff --git a/apps/twenties/metadata.json b/apps/twenties/metadata.json index 082255a50e..542a4a296b 100644 --- a/apps/twenties/metadata.json +++ b/apps/twenties/metadata.json @@ -2,7 +2,7 @@ "id": "twenties", "name": "Twenties", "shortName": "Twenties", - "version": "0.09", + "version": "0.10", "description": "Buzzes every 20m to stand / sit and look 20ft away for 20s.", "icon": "app.png", "type": "bootloader", @@ -12,7 +12,7 @@ "allow_emulator": true, "readme": "README.md", "storage": [ - { "name": "twenties.boot.js", "url": "boot.js" }, - { "name": "twenties", "url": "lib.js" } + { "name": "twenties", "url": "lib.js" }, + { "name": "RAM", "url": "setup.js", "evaluate":true } ] } diff --git a/apps/twenties/setup.js b/apps/twenties/setup.js new file mode 100644 index 0000000000..fb662677bf --- /dev/null +++ b/apps/twenties/setup.js @@ -0,0 +1 @@ +require('twenties').setup()