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 <noreply@anthropic.com>
This commit is contained in:
2026-03-15 02:16:59 -07:00
parent 269a7ea1b5
commit 322d227ec6
4 changed files with 149 additions and 0 deletions
+37
View File
@@ -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"]
+64
View File
@@ -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
@@ -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"
+30
View File
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>triangles</id>
<version>5.1.4</version>
<title>Cryptographic Triangles</title>
<authors>Cryptographic Triangles Team</authors>
<owners>SamiAhmed7777</owners>
<projectUrl>https://cryptographic-triangles.org</projectUrl>
<projectSourceUrl>https://github.com/SamiAhmed7777/triangles_v5</projectSourceUrl>
<bugTrackerUrl>https://github.com/SamiAhmed7777/triangles_v5/issues</bugTrackerUrl>
<licenseUrl>https://github.com/SamiAhmed7777/triangles_v5/blob/master/COPYING</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<tags>crypto cryptocurrency wallet blockchain staking privacy tor triangles</tags>
<summary>Privacy-focused cryptocurrency wallet with PoS staking, Tor v3, and encrypted messaging.</summary>
<description>
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
</description>
<releaseNotes>https://github.com/SamiAhmed7777/triangles_v5/releases/tag/v5.1.4</releaseNotes>
</metadata>
</package>