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:
- Run the
buildcommand to generate production assets. - Use
PyInstallerto bundle the FastAPI application and a Python interpreter into a single executable. - Clean up unnecessary source files (like
input.cssand non-minified.jsfiles) from the final package. - Create a
vocaloid-rate-release.zipfile in dist directory, containing the executable and all necessary files for an end-user to run the application.