feat: add Tauri desktop builds, improve gameplay UX, and clean repo
This commit is contained in:
26
README.md
26
README.md
@@ -5,7 +5,6 @@ Endless Sea is a small browser survival game built with HTML5 canvas, jQuery, an
|
||||
## Play
|
||||
|
||||
- Live demo: https://zbww.github.io/EndlessSea
|
||||
- Project report: https://zbww.github.io/EndlessSea/report.pdf
|
||||
- Original source reference: https://github.com/zbww/EndlessSea/blob/master/js/main.js
|
||||
|
||||
## How To Play
|
||||
@@ -36,6 +35,31 @@ This project is static and does not require a build step.
|
||||
|
||||
If your browser blocks autoplay audio, start the game with a click so music playback can begin normally.
|
||||
|
||||
## Desktop Build
|
||||
|
||||
The project now includes a Tauri desktop wrapper.
|
||||
|
||||
Requirements:
|
||||
|
||||
- Rust and Cargo
|
||||
- Bun
|
||||
- Linux desktop build dependencies required by Tauri on your distribution
|
||||
|
||||
Useful commands:
|
||||
|
||||
```bash
|
||||
bun install
|
||||
bun run build:web
|
||||
bun run tauri:build
|
||||
```
|
||||
|
||||
Build artifacts are generated under `src-tauri/target/release/bundle/`.
|
||||
|
||||
CI:
|
||||
|
||||
- A Gitea Actions workflow now lives in `.gitea/workflows/desktop-builds.yml`.
|
||||
- Linux runners build native Linux bundles and cross-compile the Windows release target.
|
||||
|
||||
## Project Notes
|
||||
|
||||
- Most visible game elements are generated dynamically in JavaScript.
|
||||
|
||||
Reference in New Issue
Block a user