fix
This commit is contained in:
+7
-7
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user