This commit is contained in:
Anaïs Saraiva
2026-08-25 12:32:54 +02:00
parent b1b4f03814
commit 1b3b45b348
12 changed files with 193 additions and 95 deletions
+7 -7
View File
@@ -13,13 +13,13 @@ if [[ "${1:-}" == "--debug" ]]; then
PROFILE="debug"
fi
command -v cargo >/dev/null 2>&1 || { echo "cargo (Rust) est requis." >&2; exit 1; }
command -v npm >/dev/null 2>&1 || { echo "npm (Node.js) est requis." >&2; exit 1; }
command -v cargo >/dev/null 2>&1 || { echo "cargo (Rust) is required." >&2; exit 1; }
command -v npm >/dev/null 2>&1 || { echo "npm (Node.js) is required." >&2; exit 1; }
echo "==> Frontend (Svelte)"
cd "$ROOT/frontend"
if [[ ! -d node_modules ]]; then
echo " installation des dépendances..."
echo " installing dependencies..."
npm install
fi
npm run build
@@ -33,10 +33,10 @@ else
fi
echo
echo "Build terminé."
echo "Build complete."
if [[ "$PROFILE" == "release" ]]; then
echo " binaire : $ROOT/backend/target/release/filehost"
echo " binary : $ROOT/backend/target/release/filehost"
else
echo " binaire : $ROOT/backend/target/debug/filehost"
echo " binary : $ROOT/backend/target/debug/filehost"
fi
echo " frontend : $ROOT/frontend/dist"
echo " frontend: $ROOT/frontend/dist"