From cc351a48175e84ac4078778b7b93d083bcbc776c Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 8 Mar 2026 19:00:30 -0400 Subject: [PATCH] [Fix] Scanopy: Build generate-fixtures (#12686) --- ct/scanopy.sh | 13 +++++++------ install/scanopy-install.sh | 13 +++++++------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/ct/scanopy.sh b/ct/scanopy.sh index 248bf0032..e06de906e 100644 --- a/ct/scanopy.sh +++ b/ct/scanopy.sh @@ -53,6 +53,13 @@ function update_script() { fi sed -i 's|_TARGET=.*$|_URL=http://127.0.0.1:60072|' /opt/scanopy/.env + msg_info "Building Scanopy Server (patience)" + cd /opt/scanopy/backend + $STD cargo build --release --bin server --bin generate-fixtures + $STD ./target/release/generate-fixtures --output-dir /opt/scanopy/ui/src/lib/data + mv ./target/release/server /usr/bin/scanopy-server + msg_ok "Built Scanopy Server" + msg_info "Creating frontend UI" export PUBLIC_SERVER_HOSTNAME=default export PUBLIC_SERVER_PORT="" @@ -61,12 +68,6 @@ function update_script() { $STD npm run build msg_ok "Created frontend UI" - msg_info "Building Scanopy Server (patience)" - cd /opt/scanopy/backend - $STD cargo build --release --bin server - mv ./target/release/server /usr/bin/scanopy-server - msg_ok "Built Scanopy Server" - if [[ -f /etc/systemd/system/scanopy-daemon.service ]]; then fetch_and_deploy_gh_release "Scanopy Daemon" "scanopy/scanopy" "singlefile" "latest" "/usr/local/bin" "scanopy-daemon-linux-amd64" mv "/usr/local/bin/Scanopy Daemon" /usr/local/bin/scanopy-daemon diff --git a/install/scanopy-install.sh b/install/scanopy-install.sh index 337b7e588..324091313 100644 --- a/install/scanopy-install.sh +++ b/install/scanopy-install.sh @@ -27,6 +27,13 @@ fetch_and_deploy_gh_release "Scanopy" "scanopy/scanopy" "tarball" "latest" "/opt TOOLCHAIN="$(grep "channel" /opt/scanopy/backend/rust-toolchain.toml | awk -F\" '{print $2}')" RUST_TOOLCHAIN=$TOOLCHAIN setup_rust +msg_info "Building Scanopy Server (patience)" +cd /opt/scanopy/backend +$STD cargo build --release --bin server --bin generate-fixtures +$STD ./target/release/generate-fixtures --output-dir /opt/scanopy/ui/src/lib/data +mv ./target/release/server /usr/bin/scanopy-server +msg_ok "Built Scanopy Server" + msg_info "Creating frontend UI" export PUBLIC_SERVER_HOSTNAME=default export PUBLIC_SERVER_PORT="" @@ -35,12 +42,6 @@ $STD npm ci --no-fund --no-audit $STD npm run build msg_ok "Created frontend UI" -msg_info "Building Scanopy Server (patience)" -cd /opt/scanopy/backend -$STD cargo build --release --bin server -mv ./target/release/server /usr/bin/scanopy-server -msg_ok "Built Scanopy Server" - msg_info "Configuring server for first-run" cat </opt/scanopy/.env ### - SERVER