From a2b27c9ff8e036997c1457b615fcb22d48c57aa1 Mon Sep 17 00:00:00 2001 From: CrazyWolf13 Date: Tue, 10 Feb 2026 14:42:16 +0100 Subject: [PATCH] wealthfolio-v3 --- ct/wealthfolio.sh | 12 ++++++------ install/wealthfolio-install.sh | 13 +++++++------ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/ct/wealthfolio.sh b/ct/wealthfolio.sh index 059b591f6..456842780 100644 --- a/ct/wealthfolio.sh +++ b/ct/wealthfolio.sh @@ -43,16 +43,16 @@ function update_script() { msg_info "Building Frontend (patience)" cd /opt/wealthfolio + export BUILD_TARGET=web $STD pnpm install --frozen-lockfile - $STD pnpm tsc - $STD pnpm vite build + $STD pnpm build msg_ok "Built Frontend" msg_info "Building Backend (patience)" - cd /opt/wealthfolio/src-server + cd /opt/wealthfolio source ~/.cargo/env - $STD cargo build --release --manifest-path Cargo.toml - cp /opt/wealthfolio/src-server/target/release/wealthfolio-server /usr/local/bin/wealthfolio-server + $STD cargo build --release --manifest-path apps/server/Cargo.toml + cp /opt/wealthfolio/target/release/wealthfolio-server /usr/local/bin/wealthfolio-server chmod +x /usr/local/bin/wealthfolio-server msg_ok "Built Backend" @@ -63,7 +63,7 @@ function update_script() { msg_ok "Restored Data" msg_info "Cleaning Up" - rm -rf /opt/wealthfolio/src-server/target + rm -rf /opt/wealthfolio/target rm -rf /root/.cargo/registry rm -rf /opt/wealthfolio/node_modules msg_ok "Cleaned Up" diff --git a/install/wealthfolio-install.sh b/install/wealthfolio-install.sh index 2d689081d..969fa5b42 100644 --- a/install/wealthfolio-install.sh +++ b/install/wealthfolio-install.sh @@ -28,15 +28,16 @@ fetch_and_deploy_gh_release "wealthfolio" "afadil/wealthfolio" "tarball" msg_info "Building Frontend (patience)" cd /opt/wealthfolio +export BUILD_TARGET=web $STD pnpm install --frozen-lockfile -$STD pnpm tsc -$STD pnpm vite build +$STD pnpm build msg_ok "Built Frontend" msg_info "Building Backend (patience)" -cd /opt/wealthfolio/src-server -$STD cargo build --release --manifest-path Cargo.toml -cp /opt/wealthfolio/src-server/target/release/wealthfolio-server /usr/local/bin/wealthfolio-server +cd /opt/wealthfolio +source ~/.cargo/env +$STD cargo build --release --manifest-path apps/server/Cargo.toml +cp /opt/wealthfolio/target/release/wealthfolio-server /usr/local/bin/wealthfolio-server chmod +x /usr/local/bin/wealthfolio-server msg_ok "Built Backend" @@ -58,7 +59,7 @@ echo "WF_PASSWORD=${WF_PASSWORD}" >~/wealthfolio.creds msg_ok "Configured Wealthfolio" msg_info "Cleaning Up" -rm -rf /opt/wealthfolio/src-server/target +rm -rf /opt/wealthfolio/target rm -rf /root/.cargo/registry rm -rf /opt/wealthfolio/node_modules msg_ok "Cleaned Up"