Add macOS CI build, RPM, and Nix packaging

- GitHub Actions workflow builds DMGs for both Intel and Apple Silicon
- Update .pro file: macOS 11+ target, Homebrew paths instead of MacPorts
- Add RPM spec + build script for Fedora/RHEL/openSUSE
- Add Nix derivation with autoPatchelfHook
- Update Homebrew formula to support macOS (Intel + ARM64)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-15 02:59:33 -07:00
parent 322d227ec6
commit f64361fc11
7 changed files with 338 additions and 10 deletions
+28
View File
@@ -0,0 +1,28 @@
#!/bin/bash
# Build RPM package for Cryptographic Triangles
# Run on a Fedora/RHEL/openSUSE system with rpmbuild installed
# Install build tools: sudo dnf install rpm-build rpmdevtools
set -e
VERSION="5.1.4"
RELEASE_URL="https://github.com/SamiAhmed7777/triangles_v5/releases/download/v${VERSION}"
echo "Building RPM for Triangles v${VERSION}..."
# Set up rpmbuild directory structure
rpmdev-setuptree
# Download sources into SOURCES
echo "Downloading binaries..."
curl -L -o ~/rpmbuild/SOURCES/triangles-qt-linux "${RELEASE_URL}/triangles-qt-linux"
curl -L -o ~/rpmbuild/SOURCES/trianglesd-linux "${RELEASE_URL}/trianglesd-linux"
cp triangles-qt.desktop ~/rpmbuild/SOURCES/
# Copy spec file
cp triangles.spec ~/rpmbuild/SPECS/
# Build the RPM (binary only, no source compilation needed)
rpmbuild -bb ~/rpmbuild/SPECS/triangles.spec
echo "RPM built in ~/rpmbuild/RPMS/x86_64/"
echo "Install with: sudo dnf install ~/rpmbuild/RPMS/x86_64/triangles-${VERSION}-1.*.x86_64.rpm"
+11
View File
@@ -0,0 +1,11 @@
[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
+44
View File
@@ -0,0 +1,44 @@
Name: triangles
Version: 5.1.4
Release: 1%{?dist}
Summary: Cryptographic Triangles (TRI) cryptocurrency wallet
License: MIT
URL: https://cryptographic-triangles.org
Source0: https://github.com/SamiAhmed7777/triangles_v5/releases/download/v%{version}/triangles-qt-linux
Source1: https://github.com/SamiAhmed7777/triangles_v5/releases/download/v%{version}/trianglesd-linux
Source2: triangles-qt.desktop
BuildArch: x86_64
ExclusiveArch: x86_64
Requires: qt5-qtbase
Requires: qt5-qtbase-gui
Requires: openssl-libs
Requires: boost-system
Requires: boost-filesystem
Requires: boost-program-options
Requires: boost-thread
Requires: boost-chrono
Requires: libevent
Requires: miniupnpc-libs
Requires: libdb-cxx
Recommends: tor
%description
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).
This package contains the Qt GUI wallet (triangles-qt) and the
headless daemon (trianglesd).
%install
install -Dm755 %{SOURCE0} %{buildroot}%{_bindir}/triangles-qt
install -Dm755 %{SOURCE1} %{buildroot}%{_bindir}/trianglesd
install -Dm644 %{SOURCE2} %{buildroot}%{_datadir}/applications/triangles-qt.desktop
%files
%{_bindir}/triangles-qt
%{_bindir}/trianglesd
%{_datadir}/applications/triangles-qt.desktop