Files
mumble-web2/bin/build-release.sh
T

28 lines
749 B
Bash
Executable File

#!/bin/bash
set -e
# Install the Dioxus CLI
#cargo install dioxus-cli --version 0.7.1
# Build the Dioxus web app (assumes workspace subproject at ./gui)
cd gui
dx build --platform web --release
cd ..
# Build the backend (proxy package)
#cargo build --release -p proxy
#
## Prepare artifact directories
#mkdir -p artifacts
#
## Copy Dioxus webroot (usually at gui/dist)
#cp -r gui/dist artifacts/webroot
#
## Copy backend binary (proxy)
## Finds the built binary under target/release/
#PROXY_PATH=$(cargo metadata --format-version=1 --no-deps |
# jq -r '.packages[] | select(.name=="proxy") | .targets[] | select(.kind[] == "bin") | .name')
#cp "target/release/$PROXY_PATH" "artifacts/proxy"
#
#echo "Artifacts have been prepared at ./artifacts"