server restore from dump
This commit is contained in:
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user