A simple self-updating application written using TypeScript and designed to run on BrightSign players.
bs-app-updater is a lightweight utility that allows an application running on BrightSign players to update itself by downloading and applying a new autorun.zip package. This enables remote updates and maintenance of deployed applications with minimal effort.
- Calls a configurable server endpoint to download the
autorun.zipapplication to run on the player.- See
SERVER_URLinindex.ts.
- See
- Unzips the downloaded package and executes the
autorun.brsfile from the unzipped package. - Makes periodic calls to the server to check for any updates to the
autorun.zipfile.
- Node.js (v18 or later recommended)
- Yarn (for package management)
- Clone this repository or copy the code to your project directory.
- Install dependencies (if any):
yarn install
Run the following command to compile the TypeScript code into JavaScript:
yarn build- Copy the
autorun.brsfile anddist/index.jsfiles to the root of an SD card.- /storage/sd/autorun.brs
- /storage/sd/index.js
- Insert the SD card into the BrightSign player.
- Boot up the player.
You can run a simple Node.js server locally to serve the autorun.zip file expected by the JS app. This is useful for development and testing.
- Navigate to the
serverdirectory:cd server - Install dependencies:
yarn install
- Start the server:
yarn start
- The server will listen on port 7000 by default and has a single endpoint to serve the
autorun.zipfile:http://localhost:7000/autorun.zip