c57b14f6be
- AUR PKGBUILD: v5.3.6, new asset URLs, verified SHA256 - Chocolatey: v5.3.6 nuspec + install script with new zip URL/hash - Winget: v5.3.6 multi-file manifest format - Nix: v5.3.6 derivation with updated fetchurl hashes - RPM: v5.3.6 spec + build script with new binary names - Debian: v5.3.6 control + build script - AppImage: v5.3.6 build script with new download URL - Scoop: new bucket manifest (JSON) for Windows - Docker: new Dockerfile + docker-compose for headless node Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
46 lines
1.4 KiB
Bash
46 lines
1.4 KiB
Bash
#!/bin/bash
|
|
# Build .deb package for Cryptographic Triangles
|
|
# Run from the packaging/debian directory
|
|
set -e
|
|
|
|
VERSION="5.3.6"
|
|
PKGDIR="triangles_${VERSION}-1_amd64"
|
|
RELEASE_URL="https://github.com/SamiAhmed7777/triangles_v5/releases/download/v${VERSION}"
|
|
|
|
echo "Building .deb package for Triangles v${VERSION}..."
|
|
|
|
# Create directory structure
|
|
rm -rf "$PKGDIR"
|
|
mkdir -p "$PKGDIR/DEBIAN"
|
|
mkdir -p "$PKGDIR/usr/bin"
|
|
mkdir -p "$PKGDIR/usr/share/applications"
|
|
|
|
# Copy control file
|
|
cp DEBIAN/control "$PKGDIR/DEBIAN/"
|
|
|
|
# Download binaries
|
|
echo "Downloading binaries..."
|
|
curl -L -o "$PKGDIR/usr/bin/triangles-qt" "${RELEASE_URL}/Cryptographic-Triangles-v${VERSION}-linux-x64-qt"
|
|
curl -L -o "$PKGDIR/usr/bin/trianglesd" "${RELEASE_URL}/Cryptographic-Triangles-v${VERSION}-linux-x64-daemon"
|
|
chmod 755 "$PKGDIR/usr/bin/triangles-qt" "$PKGDIR/usr/bin/trianglesd"
|
|
|
|
# Create desktop entry
|
|
cat > "$PKGDIR/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
|
|
|
|
# Build the .deb
|
|
dpkg-deb --build "$PKGDIR"
|
|
echo "Package built: ${PKGDIR}.deb"
|
|
echo "Install with: sudo dpkg -i ${PKGDIR}.deb && sudo apt-get install -f"
|