From 1560a7fb9780c6c87dfb459e851576f1817e1d1f Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Tue, 24 Feb 2026 23:00:30 +0100 Subject: [PATCH] fix: wealthfolio for v3 (#11765) * wealthfolio-v3 * fix: remove duplicate * fix: remove duplicate * Update frontend build command in wealthfolio.sh * Update frontend build command in install script --- ct/wealthfolio.sh | 11 +++++------ install/wealthfolio-install.sh | 12 ++++++------ 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/ct/wealthfolio.sh b/ct/wealthfolio.sh index c0ff1a172..e8091dfe7 100644 --- a/ct/wealthfolio.sh +++ b/ct/wealthfolio.sh @@ -43,16 +43,15 @@ 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 --filter frontend... build msg_ok "Built Frontend" msg_info "Building Backend (patience)" - cd /opt/wealthfolio/src-server 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 +62,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 e78708420..3be97acb2 100644 --- a/install/wealthfolio-install.sh +++ b/install/wealthfolio-install.sh @@ -28,15 +28,15 @@ 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 --filter frontend... 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 +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 +58,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"