Skip to main content

Production and Release

Building for Production

To create a production-ready build of all static assets (minified CSS and JavaScript), run the following command:

bun run build

Creating a Distributable Release

To bundle the entire application into a simple, self-contained .zip file for end-users who do not have Python or Node.js installed, run the release script:

bun run release

This fully automated process will:

  1. Run the build command to generate production assets.
  2. Use PyInstaller to bundle the FastAPI application and a Python interpreter into a single executable.
  3. Clean up unnecessary source files (like input.css and non-minified .js files) from the final package.
  4. Create a vocaloid-rate-release.zip file in dist directory, containing the executable and all necessary files for an end-user to run the application.