Closed link2xt closed 1 year ago
I have no Idea how to do that, so would greatly appreciate help!
PR with a script to create distribution tarballs: https://github.com/webxdc/appstore-bot/pull/39
Tarball generation script is added in #39, closing the issue. I will open a separate issue regarding calling this script in CI.
Deploying the bot from the source code requires Node.js, Rust,
pnpm
andcargo
. 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 thebot-data/
directory containing the frontend into a tarball and put a resulting.tar.gz
intodist/
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.