feat: blockchain rescan via daemon restart + status bar progress
- Fix z_importwallet to use full path instead of filename only - Add rescanBlockchain() method that restarts daemon with -rescan flag - Track rescan progress via daemon output parsing and getrescaninfo RPC - Display rescan progress in status bar with animated indicator when starting - Improve dark theme card contrast: lighter surface-variant, tinted borders, stronger rim-light
This commit is contained in:
25
build.sh
25
build.sh
@@ -350,18 +350,31 @@ APPRUN
|
||||
|
||||
local ARCH
|
||||
ARCH=$(uname -m)
|
||||
local IMG_NAME="DragonX_Wallet-${VERSION}-${ARCH}.AppImage"
|
||||
local IMG_NAME="ObsidianDragon-${ARCH}.AppImage"
|
||||
cd "$bd"
|
||||
ARCH="$ARCH" "$APPIMAGETOOL" "$APPDIR" "$IMG_NAME" 2>/dev/null && {
|
||||
cp "$IMG_NAME" "$out/"
|
||||
info "AppImage: $out/$IMG_NAME ($(du -h "$IMG_NAME" | cut -f1))"
|
||||
# Rename to match Windows convention: ObsidianDragon.AppImage
|
||||
mv "$out/$IMG_NAME" "$out/ObsidianDragon.AppImage"
|
||||
info "AppImage: $out/ObsidianDragon.AppImage ($(du -h "$out/ObsidianDragon.AppImage" | cut -f1))"
|
||||
} || warn "AppImage creation failed (appimagetool issue) — raw binary still in release/linux/"
|
||||
|
||||
# Clean up: keep only AppImage + raw binary in release/linux/
|
||||
if ls "$out"/*.AppImage 1>/dev/null 2>&1; then
|
||||
# AppImage succeeded — remove everything except AppImage and the binary
|
||||
find "$out" -maxdepth 1 -type f ! -name '*.AppImage' ! -name 'ObsidianDragon' -delete
|
||||
# Clean up: keep only AppImage + zip in release/linux/
|
||||
if [[ -f "$out/ObsidianDragon.AppImage" ]]; then
|
||||
# AppImage succeeded — remove everything except AppImage
|
||||
find "$out" -maxdepth 1 -type f ! -name 'ObsidianDragon.AppImage' -delete
|
||||
rm -rf "$out/res" 2>/dev/null
|
||||
|
||||
# Create zip matching Windows naming convention
|
||||
local DIST="DragonX-Wallet-Linux-x64"
|
||||
local dist_dir="$out/$DIST"
|
||||
mkdir -p "$dist_dir"
|
||||
cp "$out/ObsidianDragon.AppImage" "$dist_dir/"
|
||||
if command -v zip &>/dev/null; then
|
||||
(cd "$out" && zip -r "$DIST.zip" "$DIST")
|
||||
info "Zip: $out/$DIST.zip ($(du -h "$out/$DIST.zip" | cut -f1))"
|
||||
fi
|
||||
rm -rf "$dist_dir"
|
||||
fi
|
||||
|
||||
info "Linux release artifacts: $out/"
|
||||
|
||||
Reference in New Issue
Block a user