webxdc / store

XDC store, migrated to codeberg
https://codeberg.org/webxdc/store
5 stars 0 forks source link

Build release tarballs for deployment #38

Closed link2xt closed 1 year ago

link2xt commented 1 year ago

Deploying the bot from the source code requires Node.js, Rust, pnpm and cargo. To make deployment on the server easy, we need release tarballs.

The bot is not in the releasable state yet, but as a first step we can make a scripts/dist.sh script which will build the frontend and the bot binary, put the binary together with the bot-data/ directory containing the frontend into a tarball and put a resulting .tar.gz into dist/ directory.

The resulting tarball can already be used to deploy the bot on machines without npm and Rust installed, and the script can be reused later to build release tarballs in CI.

Septias commented 1 year ago

I have no Idea how to do that, so would greatly appreciate help!

link2xt commented 1 year ago

PR with a script to create distribution tarballs: https://github.com/webxdc/appstore-bot/pull/39

link2xt commented 1 year ago

Tarball generation script is added in #39, closing the issue. I will open a separate issue regarding calling this script in CI.