Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/workflows/windows-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Build Windows Miner

on:
workflow_dispatch:
pull_request:
branches: [ main ]
paths:
- "miners/windows/**"
- ".github/workflows/windows-build.yml"

jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: Install Inno Setup
shell: pwsh
run: |
choco install innosetup --no-progress --yes

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller requests pystray pillow
pip install -r miners/windows/installer/requirements.txt

- name: Build with PyInstaller
shell: pwsh
run: |
cd miners/windows/installer
pyinstaller RustChainMiner.spec

- name: Build Inno Setup Installer
shell: pwsh
run: |
cd miners/windows/installer
& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" rustchain_setup.iss

- name: Calculate Checksums
shell: pwsh
run: |
if (Test-Path "miners/windows/installer/output") {
cd miners/windows/installer/output
Get-FileHash -Path *.exe -Algorithm SHA256 | Out-File -FilePath checksums.txt
}

- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: RustChain-Windows-Installer
path: |
miners/windows/installer/dist/*.exe
miners/windows/installer/output/*.exe
miners/windows/installer/output/checksums.txt
17 changes: 17 additions & 0 deletions miners/windows/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# RustChain Miner (Windows)

This directory contains the Windows miner and a buildable installer.

## Contents

- `rustchain_windows_miner.py`: legacy Windows GUI miner (run from source).
- `fingerprint_checks.py`: hardware fingerprint helpers used by miners.
- `installer/`: packaged build pipeline for a Windows `.exe` plus an Inno Setup installer.
- `installer/src/rustchain_windows_miner.py`: packaged miner (GUI + PoA loop).
- `installer/build_miner.py` and `installer/RustChainMiner.spec`: PyInstaller build.
- `installer/rustchain_setup.iss`: Inno Setup script (produces `RustChainSetup_vX.Y.Z.exe`).
- `installer/scripts/*.bat`: Start/Stop/Open Logs helpers.

## Build (Windows)

Follow `installer/README.md`.
Loading