Distribution Files
KWordle is distributed as a ZIP file containing:kwordle/directory - All application fileskwordle.sh- Installation script for registering the app with Kindle
File Structure for Distribution
Building Process
Standard Build (Modern Kindles)
For Kindle firmware 5.7.0 and newer:Legacy Build (Older Kindles)
For Kindle firmware 5.6.1.1 and older, you may need additional polyfills or compatibility adjustments:Installation Script Details
Thekwordle.sh script performs these steps:
1. Copy Files to System Directory
2. Register with Kindle App Registry
- Registers the app interface
- Creates a handler ID
- Sets the LIPC ID for IPC communication
- Defines the launch command using Mesquite
- Sets supported orientation to “U” (upright)
3. Launch the Application
Testing Builds
Testing on Kindle
- Extract the ZIP to a temporary folder
- Connect Kindle via USB
- Copy files to Documents folder:
- Open KWordle booklet on Kindle to run the installation script
- Launch the app from the app menu or via:
Testing in Browser
For quick development testing:Version Management
Updating Version Number
Update the version in multiple places:-
config.xml - Widget version attribute:
-
index.html - Footer display:
Release Checklist
Before creating a release:- Test on at least one Kindle device
- Verify all languages load correctly
- Check statistics persistence
- Test physical keyboard input
- Test virtual keyboard
- Verify Chromebar menu works
- Check that game resets properly
- Validate word lists are complete
- Update version numbers
- Update credits if needed
- Test both standard and legacy builds
Distribution
GitHub Releases
- Create a new release on GitHub
- Upload both ZIP files:
kwordle.zip- Standard buildkwordle-legacy.zip- Legacy build
- Add release notes:
- New features
- Bug fixes
- Known issues
- Installation instructions
Installation Instructions for Users
Include these instructions with releases:- Download the appropriate ZIP file:
- Legacy models (5.6.1.1 or older):
kwordle-legacy.zip - Newer models:
kwordle.zip
- Legacy models (5.6.1.1 or older):
- Unzip the downloaded file
- Connect Kindle to computer via USB
- Copy
kwordlefolder andkwordle.shto Documents folder - Safely eject Kindle
- On Kindle, open the KWordle booklet to start playing
Build Automation
You can automate the build process with a script:Troubleshooting Builds
App Doesn’t Launch
- Check that
config.xmlis valid XML - Verify app ID matches in all files
- Ensure all JavaScript files use ES5 syntax
- Check Kindle logs at
/var/log/messages
Missing Word Lists
- Verify
js/words.jsis included - Check file size (should be several hundred KB)
- Ensure array syntax is correct (commas, brackets)
Statistics Not Saving
- Confirm localStorage quota in
config.xml - Check localStorage permissions
- Verify JSON serialization works