Skip to main content
This guide covers building KWordle for distribution on Kindle e-readers.

Distribution Files

KWordle is distributed as a ZIP file containing:
  1. kwordle/ directory - All application files
  2. kwordle.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

The kwordle.sh script performs these steps:

1. Copy Files to System Directory

2. Register with Kindle App Registry

This:
  • 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

  1. Extract the ZIP to a temporary folder
  2. Connect Kindle via USB
  3. Copy files to Documents folder:
  4. Open KWordle booklet on Kindle to run the installation script
  5. Launch the app from the app menu or via:

Testing in Browser

For quick development testing:
Note: Kindle-specific features (Chromebar, LIPC) won’t work in browser.

Version Management

Updating Version Number

Update the version in multiple places:
  1. config.xml - Widget version attribute:
  2. 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

  1. Create a new release on GitHub
  2. Upload both ZIP files:
    • kwordle.zip - Standard build
    • kwordle-legacy.zip - Legacy build
  3. Add release notes:
    • New features
    • Bug fixes
    • Known issues
    • Installation instructions

Installation Instructions for Users

Include these instructions with releases:
  1. Download the appropriate ZIP file:
    • Legacy models (5.6.1.1 or older): kwordle-legacy.zip
    • Newer models: kwordle.zip
  2. Unzip the downloaded file
  3. Connect Kindle to computer via USB
  4. Copy kwordle folder and kwordle.sh to Documents folder
  5. Safely eject Kindle
  6. On Kindle, open the KWordle booklet to start playing

Build Automation

You can automate the build process with a script:
Make it executable:

Troubleshooting Builds

App Doesn’t Launch

  • Check that config.xml is 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.js is 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