server restore from dump

This commit is contained in:
Priec
2026-09-02 21:27:54 +02:00
parent 8eba1ef735
commit db55067708
5 changed files with 13 additions and 7 deletions

View File

@@ -29,7 +29,7 @@ packaging/appimage/build.sh ./KompAC.AppImage
This performs the existing builds independently:
1. `nix build '.?submodules=1#portable-server'`
2. `yarn tauri build --bundles appimage` in `client-gui2`
2. `yarn tauri build --bundles appimage --features full-embed` in `client-gui2`
3. `assemble.sh` to add the portable server and supervisor to the GUI AppImage
The standalone server and GUI build processes remain available unchanged.
@@ -38,7 +38,9 @@ The standalone server and GUI build processes remain available unchanged.
Already-built artifacts can be combined without rebuilding either application.
The first argument may be either a completed GUI AppImage or Tauri's completed
`.AppDir` directory:
`.AppDir` directory. When combining with an embedded server, the GUI artifact
must have been built with its `full-embed` feature so it can safely place local
dump files into the bundled server's dump directory:
```sh
packaging/appimage/assemble.sh \

View File

@@ -31,7 +31,7 @@ trap cleanup EXIT INT TERM HUP
set +e
(
cd -- "$repo_root/client-gui2"
yarn tauri build --bundles appimage
yarn tauri build --bundles appimage --features full-embed
)
tauri_status=$?
set -e

View File

@@ -162,11 +162,15 @@ case "$appimage_bundle_dir" in
exit 1
;;
esac
echo "+ yarn tauri build --bundles appimage"
gui_features=()
if [[ "$server_db_mode" == embedded ]]; then
gui_features=(--features full-embed)
fi
echo "+ yarn tauri build --bundles appimage ${gui_features[*]}"
set +e
APPIMAGE_EXTRACT_AND_RUN=1 \
CARGO_TARGET_DIR=/cargo-target \
yarn tauri build --bundles appimage
yarn tauri build --bundles appimage "${gui_features[@]}"
tauri_status=$?
set -e

View File

@@ -100,7 +100,7 @@ modules:
- cp postgresql-cache/postgresql-17.10.0-x86_64-unknown-linux-gnu.tar.gz "$HOME/.theseus/postgresql/"
- cargo build --locked --release --package server --features full-embed
- cd client-gui2 && corepack yarn install --frozen-lockfile --non-interactive
- cd client-gui2 && CARGO_TARGET_DIR=/run/build/komp-ac/target/gui corepack yarn tauri build --no-bundle
- cd client-gui2 && CARGO_TARGET_DIR=/run/build/komp-ac/target/gui corepack yarn tauri build --no-bundle --features full-embed
- install -Dm755 /run/build/komp-ac/target/server/release/server /app/bin/komp-ac-server
- install -Dm755 /run/build/komp-ac/target/gui/release/client-gui2 /app/bin/client-gui2
- install -Dm755 packaging/flatpak/launcher.sh /app/bin/komp-ac