Files
triangles_v5/packaging/appimage/build-appimage.sh
T
sami7777 9f69ead715 v5.3.7: Fix sync stall, transaction display, balance updates, and bootstrap snapshots
Sync fixes:
- Extend stall detection beyond IBD to catch post-IBD sync gaps
- Walk-forward inv continuation to avoid CBlockLocator exponential gap loop
- Track walk-forward progress for stall recovery without restarting from scratch

GUI fixes:
- Load transactions synchronously in constructor (deferred QTimer never fired)
- Use beginResetModel/endResetModel instead of deprecated reset()
- Schedule full refresh on TRY_LOCK failure to avoid dropped CT_NEW notifications
- Only update cachedNumBlocks after successful balance check (prevents permanent loss)
- Add GetAllBalances() single-pass balance retrieval with TRY_LOCK

Bootstrap:
- Add trusted snapshot manifest verification for bootstrap archives
- Add IsKnownCheckpoint() to validate manifest against compiled-in checkpoints
- Skip txleveldb rebuild when verified manifest is present

Bump version to 5.3.7 across all packaging manifests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-24 23:36:43 -07:00

65 lines
2.2 KiB
Bash

#!/bin/bash
# Build AppImage for Cryptographic Triangles Qt Wallet
# Run on a Linux x64 system with appimagetool installed
set -e
VERSION="5.3.7"
APPDIR="Triangles-x86_64.AppDir"
RELEASE_URL="https://github.com/SamiAhmed7777/triangles_v5/releases/download/v${VERSION}"
echo "Building AppImage for Cryptographic Triangles v${VERSION}..."
# Clean and create AppDir structure
rm -rf "$APPDIR"
mkdir -p "$APPDIR/usr/bin"
mkdir -p "$APPDIR/usr/share/applications"
mkdir -p "$APPDIR/usr/share/icons/hicolor/256x256/apps"
# Download binary
echo "Downloading triangles-qt..."
curl -L -o "$APPDIR/usr/bin/triangles-qt" "${RELEASE_URL}/Cryptographic-Triangles-v${VERSION}-linux-x64-qt"
chmod +x "$APPDIR/usr/bin/triangles-qt"
# Create desktop entry
cat > "$APPDIR/usr/share/applications/triangles-qt.desktop" << 'DESKTOP'
[Desktop Entry]
Name=Cryptographic Triangles
GenericName=TRI Wallet
Comment=Cryptographic Triangles cryptocurrency wallet
Exec=triangles-qt %u
Terminal=false
Type=Application
Icon=triangles
MimeType=x-scheme-handler/triangles;
Categories=Finance;Network;P2P;Qt;
StartupNotify=true
DESKTOP
# Copy desktop file and icon to AppDir root (required by AppImage)
cp "$APPDIR/usr/share/applications/triangles-qt.desktop" "$APPDIR/"
# Use project icon if available, otherwise create placeholder
if [ -f "../../src/qt/res/icons/triangles.png" ]; then
cp "../../src/qt/res/icons/triangles.png" "$APPDIR/usr/share/icons/hicolor/256x256/apps/"
cp "../../src/qt/res/icons/triangles.png" "$APPDIR/triangles.png"
else
echo "WARNING: No icon found, AppImage will have no icon"
fi
# Create AppRun
cat > "$APPDIR/AppRun" << 'APPRUN'
#!/bin/bash
HERE="$(dirname "$(readlink -f "$0")")"
exec "$HERE/usr/bin/triangles-qt" "$@"
APPRUN
chmod +x "$APPDIR/AppRun"
# Build the AppImage
if command -v appimagetool &> /dev/null; then
ARCH=x86_64 appimagetool "$APPDIR" "Cryptographic_Triangles-v${VERSION}-x86_64.AppImage"
echo "AppImage built: Cryptographic_Triangles-v${VERSION}-x86_64.AppImage"
else
echo "appimagetool not found. Install it from: https://github.com/AppImage/AppImageKit/releases"
echo "Then run: ARCH=x86_64 appimagetool $APPDIR Cryptographic_Triangles-v${VERSION}-x86_64.AppImage"
fi