mirror of
https://github.com/CCBlueX/LiquidBounce.git
synced 2025-09-04 08:16:18 +00:00
LiquidBounce Default Theme
This directory contains the source code of LiquidBounce's default theme built with Svelte.
Development
Prerequisites
- Node.js (latest or stable version)
Setup
-
Install dependencies
npm install
-
Configure development mode
- Set
IN_DEV
totrue
in host.ts
- Set
-
Launch the client
-
Start development server
npm run dev
-
Set theme in client
.client theme set http://localhost:5173/
Important: Do not commit changes made to host.ts
and NettyServer.kt
when pushing to the repository.
Building for Production
To build the theme for production use, follow these steps:
-
Ensure development mode is disabled
- Set
IN_DEV
tofalse
in host.ts
- Set
-
Build the theme
npm run build
-
Locate build output
- The production build will be generated in the
dist
folder - This folder contains all the optimized and minified theme files
- The production build will be generated in the
-
Deploy to themes directory
- Copy the entire
dist
folder to your themes directory - You can open the themes directory by typing
.client theme browse
in the client - Rename the
dist
folder to your preferred theme name
- Copy the entire
-
Apply the theme
.client theme set <your-theme-name>
Marketplace Publishing
-
Get API token
- Go to https://liquidbounce.net/account
- Generate your API token
-
Get marketplace item ID
- Navigate to https://liquidbounce.net/marketplace
- Go to your item page
- Copy the ID from the "Item ID" field on the right side
-
Configure repository
- Add
API_TOKEN
as a repository secret in Settings → Secrets and variables → Actions - Update
MARKETPLACE_ITEM_ID
andZIP_NAME
in the workflow file with your values
- Add
-
Enable publishing
- Uncomment the GitHub release and marketplace upload sections in
.github/workflows/build.yml
- Uncomment the GitHub release and marketplace upload sections in