Commit Graph

201 Commits (8cb20f771c954661471b01d7d621c41c042e99b3)

Author SHA1 Message Date
Richard de Boer 0a7f3abb08
apploader.js: don't hide errors while loading 'noble'
Loading the module can also fail when e.g. compiled against a different
Node.js version, don't hide those errors.
2022-09-09 15:01:46 +02:00
Gordon Williams 23eb487024 quick update to make initial error easier to find if noble not installed 2022-09-09 09:41:00 +01:00
Gordon Williams faf879c59c Fix app loader after previous core changes 2022-09-09 09:38:52 +01:00
Gordon Williams 425930f2ec add line numbers for loadWidgets error message, and provide a way to ignore messages we know about 2022-09-05 13:38:34 +01:00
Gordon Williams 84819f5cae Add sanity check for clocks calling loadWidgets before setUI 2022-09-05 11:03:41 +01:00
ash 5a6b37f3cc Use /usr/bin/env as shebang everywhere
It's not guaranteed that bash will be available at /bin/bash; it's even
less likely that node will always be installed at /usr/bin/node{,js}.
Always indirecting through /usr/bin/env means that there is only one
such path that needs to be available.
2022-08-17 23:03:21 +01:00
Gordon Williams 91728c147f Big refactor to attempt to merge all the waypoints code into one place. At least 3 apps had basically identical interface.html files, and yet wpmoto had a great map-based editor. 2022-07-26 16:14:04 +01:00
Gordon Williams 66fa53b809 Add check for files expected in certain app types - remove warnings about `textinput` 2022-07-26 14:54:34 +01:00
BartS23 bf2613c440
Output app name, reset lcd and intervals
flow app sets LCDMode to 120x120 wich will break image export (TypeError: FUNCTION_TABLE[(HEAPU8[(($0 + 52) | 0)] | (HEAPU8[(($0 + 53) | 0)] << 8) | ((HEAPU8[(($0 + 54) | 0)] << 16) | (HEAPU8[(($0 + 55) | 0)] << 24)))] is not a function)

Some applications use a very short timeout, which also break the export.
2022-07-13 21:23:33 +02:00
BartS23 5f4db2e78c
Don't treat "Uncaught Storage Updated!" as error 2022-07-12 14:14:49 +02:00
BartS23 b580fa2f84
Require espruinotools as Espruino
To avoid the error below:

ReferenceError: Espruino is not defined
    at parseJS (eval at <anonymous> (/home/romek/Bangle/BangleApps/bin/thumbnailer.js:43:1), <anonymous>:95:5)
    at eval (eval at <anonymous> (/home/romek/Bangle/BangleApps/bin/thumbnailer.js:43:1), <anonymous>:166:37)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Promise.all (index 0)
2022-07-12 13:46:25 +02:00
Gordon Williams b6f501b6bf check for badly named changelogs, fix some more (ref #2024) 2022-07-06 09:30:44 +01:00
Gordon Williams 44905c795e include sched in installed apps - bin/firmwaremaker_c.js 2022-07-01 08:10:29 +01:00
Gordon Williams fe707c335e Add (hopefully!) github actions compatible error messages so we get files marked 2022-06-28 11:51:25 +01:00
Martin Boonk 834b606f63 apploader - Ignore empty folder instead of creating invalid json 2022-06-19 19:29:40 +02:00
Gordon Williams e1cc59ec4f bootloader CRC 2022-06-09 17:06:52 +01:00
Gordon Williams 3a3a01136b mylocation 0.07: Move mylocation app into 'Settings -> Apps' 2022-05-26 12:50:44 +01:00
Gordon Williams 9d758075da Add extra checks for app type and dependencies, document available types, and fix invalid app types 2022-04-29 09:29:02 +01:00
Gordon Williams 1e09140515 check icons is a bit more resilient 2022-04-19 10:03:46 +01:00
Eskild Hustvedt c10bd83c9f Autogenerate apps.json if needed 2022-04-10 16:04:31 +02:00
Eskild Hustvedt aaefe390b0 Added basic command-line parameter handling 2022-04-10 12:17:14 +02:00
Eskild Hustvedt adb053ef1c Let language_scan optionally add stubbed translations
This lets it refresh existing languages with the latest strings, without using
the auto-translate feature. The strings will all simply be the English
equivalent.
2022-04-08 16:50:41 +02:00
copoer 187821bf49 Removed auto /*LANG*/, Added more languages 2022-02-10 09:30:00 -04:00
copoer d54fdaa9e8 Fixed settings files 2022-02-09 21:12:55 -04:00
copoer 4ce761dab9 Updated script to add more accurate string finding and auto translation 2022-02-09 19:52:49 -04:00
Alessandro Cocco 6676b32f9a Improve language_scan tool 2022-02-07 22:28:02 +01:00
Alessandro Cocco 2190926242 use the correct key to check for translations 2022-01-30 22:27:49 +01:00
Gordon Williams 1a92cc2557 fix broken scripts after metadata.json update 2022-01-27 16:36:45 +00:00
Gordon Williams a0e631a9dd fix script 2022-01-27 14:34:39 +00:00
Richard de Boer 46fbccf711
tell git to ignore modified `apps.json` when running create_apps.json.sh
Only if no arguments given: `create_apps_json.sh apps.json` will leave
it alone if someone really wants to overwrite+commit apps.json.
2022-01-20 20:41:30 +01:00
Richard de Boer e75a828fce
always use shell script to generate apps.json, remove js version
Gets rid of duplicated functionality, but allows passing a filename
argument to write to a different file instead of `apps.json`.
2022-01-20 20:41:30 +01:00
Richard de Boer a3b49a0d82
Support for localhost appstore
- Adds a script to generate `apps.local.json` from all metadata
- Makes the loader use `apps.local.json` when serving from localhost
- Adds npm `local` script to watch for changed metadata, while serving
  from localhost
2022-01-20 20:41:29 +01:00
Gordon Williams e997ad59ed more compatible app loader 2022-01-20 17:08:31 +00:00
Adam Schmalhofer 38170905ca Port firmwaremake*.js to metadata.json 2022-01-19 18:24:49 +01:00
Gordon Williams 752f8f6b29 oops - remove debug code 2022-01-19 16:48:38 +00:00
Gordon Williams 2a813e221a Updated docs! 2022-01-19 16:21:07 +00:00
Gordon Williams 020e575ec7 Tweaks after 5e5d23c921 2022-01-19 15:56:33 +00:00
Adam Schmalhofer d3af80efc9 Merge branch 'master' into jekyll-apps.json 2022-01-19 15:21:50 +01:00
Gordon Williams bb8c291755 making language scan pop up more useful info 2022-01-19 11:30:18 +00:00
Gordon Williams 1b266f7279 Better support for translation, added some more common translations to German translation 2022-01-19 11:09:12 +00:00
Gordon Williams 85be6af02e Add menu option for language translations (fix #136) 2022-01-18 16:21:30 +00:00
Adam Schmalhofer 3de7692e2c Merge branch 'master' into jekyll-apps.json 2022-01-13 21:41:39 +01:00
Gordon Williams fc8e089fbe improve sanity checking - no false warnings for apps files with `supports` field 2022-01-12 11:05:27 +00:00
Adam Schmalhofer 6f9cd73425 Port sanitychess.js to metadata.json 2022-01-07 01:14:18 +01:00
Gordon Williams 36a8623810 check for duplicate apps 2022-01-04 09:37:59 +00:00
Gordon Williams a8ccc840b7 allow slightly lower than 48px icons before erroring 2021-12-17 14:16:35 +00:00
Ben Whittaker 0944f73281 sanitycheck: error for newly added mis-sized icons 2021-12-16 22:16:29 -05:00
Ben Whittaker a588280af7 sanitycheck: Warn about incorrectly sized js icons 2021-12-16 21:52:48 -05:00
Gordon Williams e408345249 Scan text strings for #136 2021-12-14 10:57:48 +00:00
Gordon Williams a45f7506ff more app.json fixes, remove warning about settings as it seems nobody cares 2021-12-09 17:16:55 +00:00
Richard de Boer efd12d627a Settings library: use `appid.json`, update README.md and sanitycheck.js 2021-11-20 17:52:44 +01:00
Gordon Williams ffc290cd6a welcome as a default app 2021-11-09 20:13:55 +00:00
Gordon Williams 4a3ef4829c alarm 0.14: Order of 'back' menu item 2021-11-08 10:03:33 +00:00
Gordon Williams 0a527c08c6 fix sanity check 2021-11-04 19:38:24 +00:00
Gordon Williams ed9daa139a ensure non-ascii is converted properly 2021-11-01 11:38:58 +00:00
Gordon Williams 011b4bc975 Change default apps 2021-10-29 08:33:13 +01:00
Gordon Williams 577bcd39b1 Merge bangle 1 and 2 welcome screens 2021-10-28 14:28:30 +01:00
Gordon Williams eefa209af4 support for 'supports:["DEVICEID"]` for files in apps, merge launchb2 and launch 2021-10-28 12:14:02 +01:00
Gordon Williams 0161b1a8d2 Added screenshot display in app list (automatic screenshots should follow soonish) 2021-10-26 13:15:21 +01:00
Gordon Williams 8b9d43dece automatic thumbnailing 2021-10-26 12:40:08 +01:00
Gordon Williams cc821be6ef make running this less destructive 2021-10-26 12:38:58 +01:00
Gordon Williams 481f3c7965 include ID widget in bangle2 2021-10-26 09:19:13 +01:00
Gordon Williams 9c7f734afe Add BETA thumbnailer code that can use the JS emulator to create thumbnails for Bangle.js 1 and 2 2021-10-23 21:21:36 +01:00
Gordon Williams a94790391a Get rid of "b2" and "bno2" tags and add "supports" array.
Use the opportunity to refactor apps.json so everything looks pretty
2021-10-20 15:11:04 +01:00
Gordon Williams ad2baeb651 work for bangle.js 1 too 2021-10-04 16:30:37 +01:00
Gordon Williams 634de9d4bb squashing warnings 2021-09-02 13:38:04 +01:00
Gordon Williams d551e9d78c Evaluate images before they get to Bangle.js 2021-07-28 16:30:16 +01:00
Gordon Williams c9559961b4 ability to package all files up into a binary blob 2021-07-08 11:12:49 +01:00
Gordon Williams 039024c4ad Allow 'data' style app files to be uploaded with the app (and switch over settings files for various apps) 2021-04-09 09:58:38 +01:00
Gordon Williams dbbf4c3136 tweak to make sanity test pass 2021-03-01 11:47:58 +00:00
Gordon Williams 917ed6bb67 tweak for making firmware 2020-09-22 15:33:55 +01:00
Gordon Williams f417f8b1c9 Fixed bin/firmwaremaker and bin/apploader CLI to handle binary file uploads correctly 2020-08-25 11:46:33 +01:00
Gordon Williams 99dcd7868c Fix apploader node.js app issues - invalid length when uploading (base64 encode issues) and path (when run from directory other than the root) 2020-06-09 09:23:55 +01:00
Gordon Williams 001eea27e1 apploader tweaks 2020-06-05 15:13:04 +01:00
Gordon Williams 8a83eb3140 Misc fixes for apploader 2020-06-05 15:05:56 +01:00
Gordon Williams 8c230be70a oops - fix sanity check 2020-06-04 15:48:27 +01:00
Simon Weis 7f83f2afd4 Require correct module in apploader.js and fix typo in appinfo.js 2020-05-26 22:42:13 +02:00
Gordon Williams 116635b20d minor tweak for systems without node-legacy 2020-05-13 11:27:04 +01:00
Gordon Williams 746ea6c129 Allow sorting by modified as well as created date 2020-05-13 11:25:08 +01:00
Gordon Williams d03fb00f2d * URL fetch is now async
* Adding '#search' after the URL (when not the name of a 'filter' chip) will set up search for that term
* If `bin/pre-publish.sh` has been run and recent.csv created, add 'Sort By' chip* URL fetch is now async
2020-05-12 22:01:22 +01:00
Gordon Williams 25d824fa6c Add very rough CLI apploader 2020-05-04 14:09:38 +01:00
Gordon Williams 8c9233d27f Fix firmwaremaker.js regression under Node.js 2020-05-04 14:07:17 +01:00
Gordon Williams 7c870a304f Don't produce errors for duplicate files if they are for tensorflow 2020-05-04 09:32:50 +01:00
Gordon Williams d206ff07c7 more info on bad JSON 2020-05-04 09:28:27 +01:00
Richard de Boer 9f0adf1900 Data files: remove settings magic, some more sanitychecks 2020-04-16 20:42:23 +02:00
Richard de Boer 9e0fd91339 Data files: save all data files as a single string
Separate regular and storage files by a semicolon
2020-04-16 14:30:37 +02:00
Richard de Boer 217d198154 Add a "data" section to apps.json, with data files to clean on uninstall
These are added to `appid.info` as "dataFiles" or "storageFiles", and
can contain wildcards.
2020-04-16 14:30:37 +02:00
Richard de Boer da2c2dba59 Sanity check: fix warning about app without id, check for unknown keys 2020-04-12 01:11:47 +02:00
Gordon Williams dbf2d31316 update checks 2020-04-07 09:04:06 +01:00
Gordon Williams 7ff958ad2c Fixing sanitycheck errors from recent PRs 2020-03-30 16:23:45 +01:00
Gordon Williams 5bcff17dc2 remove unused code 2020-03-11 16:30:36 +00:00
Gordon Williams 503e370f70 firmware tweaks 2020-03-10 15:33:41 +00:00
Gordon Williams 9bae225fd2 Firmware maker tweaks 2020-03-09 17:06:13 +00:00
Gordon Williams a772280871 Add ChangeLog checking 2020-03-05 13:15:03 +00:00
Gordon Williams 3998688179 Tweaks - now try and parse files 2020-02-28 17:01:29 +00:00
Gordon Williams 8220765c11 Added bin/sanitycheck.js to perform a bunch of tests to make sure everything is correct 2020-02-28 14:17:22 +00:00
Gordon Williams 8992ad545a Add demo app 2020-01-30 17:05:53 +00:00
Gordon Williams 33c8079a97 tweak installed apps 2019-12-10 15:43:13 +00:00
Gordon Williams 61ccf32cc9 updated firmware info 2019-11-10 17:01:40 +00:00
Gordon Williams c02e388cd9 more tweaking 2019-11-10 14:01:12 +00:00
Gordon Williams e7a6cbedfd firmware maker 2019-11-10 10:22:33 +00:00