From 322d227ec6f1138b5aa5a00f2462b0ea95d97fea Mon Sep 17 00:00:00 2001 From: Sami Ahmed Date: Sun, 15 Mar 2026 02:16:59 -0700 Subject: [PATCH] Add Chocolatey, AppImage, and Docker packaging - Chocolatey .nuspec + install script for Windows - AppImage build script for universal Linux - Dockerfile for headless daemon container Co-Authored-By: Claude Opus 4.6 --- Dockerfile | 37 +++++++++++ packaging/appimage/build-appimage.sh | 64 +++++++++++++++++++ .../chocolatey/tools/chocolateyInstall.ps1 | 18 ++++++ packaging/chocolatey/triangles.nuspec | 30 +++++++++ 4 files changed, 149 insertions(+) create mode 100644 Dockerfile create mode 100644 packaging/appimage/build-appimage.sh create mode 100644 packaging/chocolatey/tools/chocolateyInstall.ps1 create mode 100644 packaging/chocolatey/triangles.nuspec diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b9727a2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,37 @@ +FROM ubuntu:22.04 + +LABEL maintainer="Cryptographic Triangles Team" +LABEL description="Cryptographic Triangles (TRI) headless daemon" +LABEL version="5.1.4" + +RUN apt-get update && apt-get install -y --no-install-recommends \ + ca-certificates \ + curl \ + libssl3 \ + libdb5.3++ \ + libboost-system1.74.0 \ + libboost-filesystem1.74.0 \ + libboost-program-options1.74.0 \ + libboost-thread1.74.0 \ + libboost-chrono1.74.0 \ + libevent-2.1-7 \ + libminiupnpc17 \ + tor \ + && rm -rf /var/lib/apt/lists/* + +RUN curl -L -o /usr/local/bin/trianglesd \ + https://github.com/SamiAhmed7777/triangles_v5/releases/download/v5.1.4/trianglesd-linux \ + && chmod +x /usr/local/bin/trianglesd + +RUN useradd -m -s /bin/bash triangles +USER triangles +WORKDIR /home/triangles + +RUN mkdir -p .triangles + +EXPOSE 24112 19112 + +VOLUME ["/home/triangles/.triangles"] + +ENTRYPOINT ["trianglesd"] +CMD ["-printtoconsole", "-txindex=1"] diff --git a/packaging/appimage/build-appimage.sh b/packaging/appimage/build-appimage.sh new file mode 100644 index 0000000..88477cb --- /dev/null +++ b/packaging/appimage/build-appimage.sh @@ -0,0 +1,64 @@ +#!/bin/bash +# Build AppImage for Cryptographic Triangles Qt Wallet +# Run on a Linux x64 system with appimagetool installed +set -e + +VERSION="5.1.4" +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}/triangles-qt-linux" +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 diff --git a/packaging/chocolatey/tools/chocolateyInstall.ps1 b/packaging/chocolatey/tools/chocolateyInstall.ps1 new file mode 100644 index 0000000..718883e --- /dev/null +++ b/packaging/chocolatey/tools/chocolateyInstall.ps1 @@ -0,0 +1,18 @@ +$ErrorActionPreference = 'Stop' + +$packageArgs = @{ + packageName = 'triangles' + unzipLocation = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" + url64bit = 'https://github.com/SamiAhmed7777/triangles_v5/releases/download/v5.1.4/Triangles-v5.1.4-win-x64.zip' + checksum64 = '777e475f366164b342e917111bcf3155ec39e0ab4bd97b2ac295885ad30a93c6' + checksumType64 = 'sha256' +} + +Install-ChocolateyZipPackage @packageArgs + +$installDir = $packageArgs.unzipLocation +$desktopPath = [Environment]::GetFolderPath('Desktop') + +Install-ChocolateyShortcut ` + -ShortcutFilePath "$desktopPath\Cryptographic Triangles.lnk" ` + -TargetPath "$installDir\triangles-qt.exe" diff --git a/packaging/chocolatey/triangles.nuspec b/packaging/chocolatey/triangles.nuspec new file mode 100644 index 0000000..6b095f9 --- /dev/null +++ b/packaging/chocolatey/triangles.nuspec @@ -0,0 +1,30 @@ + + + + triangles + 5.1.4 + Cryptographic Triangles + Cryptographic Triangles Team + SamiAhmed7777 + https://cryptographic-triangles.org + https://github.com/SamiAhmed7777/triangles_v5 + https://github.com/SamiAhmed7777/triangles_v5/issues + https://github.com/SamiAhmed7777/triangles_v5/blob/master/COPYING + false + crypto cryptocurrency wallet blockchain staking privacy tor triangles + Privacy-focused cryptocurrency wallet with PoS staking, Tor v3, and encrypted messaging. + +Cryptographic Triangles (TRI) is a privacy-focused cryptocurrency featuring +Proof-of-Stake consensus with 33% annual staking rewards, Tor v3 onion routing, +and built-in encrypted peer-to-peer messaging. Originally launched in July 2014, +featuring the unique Hash9 algorithm (13-step hash cascade). + +## Features +- Proof-of-Stake with 33% annual staking rewards +- Hash9 algorithm (13-step hash cascade) +- Encrypted peer-to-peer messaging +- Tor v3 integration for anonymous transactions + + https://github.com/SamiAhmed7777/triangles_v5/releases/tag/v5.1.4 + +