Skip to content
Open
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
78 changes: 5 additions & 73 deletions .github/workflows/release_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,6 @@ jobs:
run: |
cargo build --release --locked --target ${{ matrix.arch }}-unknown-linux-gnu --features trezor,ledger

# Shared hicolor icon set for the GUI packages (deb and rpm builders
# consume it; avoids ImageMagick in the fedora container).
- name: Pre-generate icons
run: |
docker run --rm --platform linux/${{ matrix.arch }} -v "$PWD":/work -w /work debian:12 \
bash -ec "
export DEBIAN_FRONTEND=noninteractive
apt-get update -qq && apt-get install -y -qq imagemagick >/dev/null
packaging/make-icons.sh build-tools/assets/node-gui-icon_512.png dist/assets/icons
"

# GH-hosted ubuntu runners ship qemu-user-static + binfmt, so
# `docker run --platform linux/arm64` works out of the box: the arm64 leg
# runs the deb builder inside an arm64 debian:12 container. The same
Expand All @@ -136,12 +125,6 @@ jobs:
--debarch $DEBARCH \
--binaries-dir /work/target/$ARCH-unknown-linux-gnu/release \
--out /work/dist
docker run --rm --platform linux/$ARCH -v "$PWD":/work -w /work debian:12 \
packaging/deb/build.sh \
--package gui --version "$VERSION" \
--debarch $DEBARCH \
--gui-binary /work/target/$ARCH-unknown-linux-gnu/release/node-gui \
--repo-root /work --out /work/dist

# Arch-matched container (qemu on the arm64 leg): native strip works and
# the binaries run under emulation so help2man generates real man pages.
Expand All @@ -160,12 +143,6 @@ jobs:
--version "$VERSION" \
--binaries-dir /work/target/$ARCH-unknown-linux-gnu/release \
--out /work/dist
docker run --rm --platform linux/$ARCH -v "$PWD":/work -w /work $FEDORA_IMAGE \
packaging/rpm/build.sh \
--package gui --rpmarch $ARCH \
--version "$VERSION" \
--gui-binary /work/target/$ARCH-unknown-linux-gnu/release/node-gui \
--repo-root /work --out /work/dist

# Install smoke tests in fresh containers (same images as production use)
- name: Smoke test Debian packages
Expand All @@ -175,9 +152,7 @@ jobs:
ARCH=${{ matrix.arch }}
if [ "$ARCH" = "x86_64" ]; then DEBARCH=amd64; else DEBARCH=arm64; fi
docker run --rm --platform linux/$ARCH -v "$PWD":/work -w /work debian:12 \
packaging/checks/smoke-deb.sh dist/Mintlayer_Node_linux_${VERSION}_${DEBARCH}.deb mintlayer-node node
docker run --rm --platform linux/$ARCH -v "$PWD":/work -w /work debian:12 \
packaging/checks/smoke-deb.sh dist/Mintlayer_Node_GUI_linux_${VERSION}_${DEBARCH}.deb mintlayer-node-gui gui
packaging/checks/smoke-deb.sh dist/Mintlayer_Node_linux_${VERSION}_${DEBARCH}.deb mintlayer-node

- name: Smoke test RPM packages
env:
Expand All @@ -186,9 +161,7 @@ jobs:
source packaging/images.env
ARCH=${{ matrix.arch }}
docker run --rm --platform linux/$ARCH -v "$PWD":/work -w /work $FEDORA_IMAGE \
packaging/checks/smoke-rpm.sh dist/Mintlayer_Node_linux_${VERSION}_${ARCH}.rpm mintlayer-node node
docker run --rm --platform linux/$ARCH -v "$PWD":/work -w /work $FEDORA_IMAGE \
packaging/checks/smoke-rpm.sh dist/Mintlayer_Node_GUI_linux_${VERSION}_${ARCH}.rpm mintlayer-node-gui gui
packaging/checks/smoke-rpm.sh dist/Mintlayer_Node_linux_${VERSION}_${ARCH}.rpm mintlayer-node

# Arch images are amd64-only: the x86_64 leg is arch-matched (native
# strip, ldd-based dependencies, help2man man pages), the arm64 leg
Expand All @@ -205,12 +178,6 @@ jobs:
--version "$VERSION" \
--binaries-dir /work/target/$ARCH-unknown-linux-gnu/release \
--out /work/dist
docker run --rm -v "$PWD":/work -w /work $ARCH_IMAGE \
packaging/arch/build.sh \
--package gui --arch "$ARCH" \
--version "$VERSION" \
--gui-binary /work/target/$ARCH-unknown-linux-gnu/release/node-gui \
--repo-root /work --out /work/dist

# x86_64 leg: arch-matched container (native strip, ldd-based
# dependencies, help2man man pages), so the package installs natively.
Expand All @@ -226,10 +193,8 @@ jobs:
ARCH=${{ matrix.arch }}
docker run --rm -v "$PWD":/work -w /work $ARCH_IMAGE \
packaging/checks/smoke-arch.sh dist/Mintlayer_Node_linux_${VERSION}_${ARCH}.pkg.tar.zst mintlayer-node node "$ARCH"
docker run --rm -v "$PWD":/work -w /work $ARCH_IMAGE \
packaging/checks/smoke-arch.sh dist/Mintlayer_Node_GUI_linux_${VERSION}_${ARCH}.pkg.tar.zst mintlayer-node-gui gui "$ARCH"

- name: Package Mintlayer Node (without GUI) as tar.gz
- name: Package Mintlayer Node as tar.gz
env:
VERSION: ${{ steps.get_version.outputs.VERSION }}
BINARY_LIST: ${{ inputs.binary_list }}
Expand All @@ -241,63 +206,30 @@ jobs:
done
tar -czvf Mintlayer_Node_linux_${VERSION}_${{ matrix.arch }}.tar.gz Mintlayer_Node_linux_${VERSION}_${{ matrix.arch }}

- name: Package Mintlayer Node GUI as tar.gz
env:
VERSION: ${{ steps.get_version.outputs.VERSION }}
run: |
mkdir -p Mintlayer_Node_GUI_linux_${VERSION}_${{ matrix.arch }}
cp target/${{ matrix.arch }}-unknown-linux-gnu/release/node-gui Mintlayer_Node_GUI_linux_${VERSION}_${{ matrix.arch }}/mintlayer-node-gui
tar -czvf Mintlayer_Node_GUI_linux_${VERSION}_${{ matrix.arch }}.tar.gz Mintlayer_Node_GUI_linux_${VERSION}_${{ matrix.arch }}

- name: Upload Node DEB Artifact (without GUI)
- name: Upload Node DEB Artifact
uses: actions/upload-artifact@v4
with:
name: Mintlayer_Node_linux_${{ steps.get_version.outputs.VERSION }}_${{ matrix.arch }}_deb
path: dist/Mintlayer_Node_linux_${{ steps.get_version.outputs.VERSION }}_${{ matrix.arch == 'x86_64' && 'amd64' || 'arm64' }}.deb

- name: Upload GUI DEB Artifact
uses: actions/upload-artifact@v4
with:
name: Mintlayer_Node_GUI_linux_${{ steps.get_version.outputs.VERSION }}_${{ matrix.arch }}_deb
path: dist/Mintlayer_Node_GUI_linux_${{ steps.get_version.outputs.VERSION }}_${{ matrix.arch == 'x86_64' && 'amd64' || 'arm64' }}.deb

- name: Upload Node RPM Artifact
uses: actions/upload-artifact@v4
with:
name: Mintlayer_Node_linux_${{ steps.get_version.outputs.VERSION }}_${{ matrix.arch }}_rpm
path: dist/Mintlayer_Node_linux_${{ steps.get_version.outputs.VERSION }}_${{ matrix.arch }}.rpm

- name: Upload GUI RPM Artifact
uses: actions/upload-artifact@v4
with:
name: Mintlayer_Node_GUI_linux_${{ steps.get_version.outputs.VERSION }}_${{ matrix.arch }}_rpm
path: dist/Mintlayer_Node_GUI_linux_${{ steps.get_version.outputs.VERSION }}_${{ matrix.arch }}.rpm

- name: Upload Node PKG Artifact
uses: actions/upload-artifact@v4
with:
name: Mintlayer_Node_linux_${{ steps.get_version.outputs.VERSION }}_${{ matrix.arch }}_pkg
path: dist/Mintlayer_Node_linux_${{ steps.get_version.outputs.VERSION }}_${{ matrix.arch }}.pkg.tar.zst

- name: Upload GUI PKG Artifact
uses: actions/upload-artifact@v4
with:
name: Mintlayer_Node_GUI_linux_${{ steps.get_version.outputs.VERSION }}_${{ matrix.arch }}_pkg
path: dist/Mintlayer_Node_GUI_linux_${{ steps.get_version.outputs.VERSION }}_${{ matrix.arch }}.pkg.tar.zst

- name: List tar.gz files
run: |
echo "Matching tar.gz files:"
ls -l Mintlayer_Node_linux_*.tar.gz

- name: Upload Node GUI tar.gz Artifact
uses: actions/upload-artifact@v4
continue-on-error: true
with:
name: Mintlayer_Node_GUI_linux_${{ steps.get_version.outputs.VERSION }}_${{ matrix.arch }}_tar.gz
path: Mintlayer_Node_GUI_linux_*.tar.gz

- name: Upload Node tar.gz Artifact (without GUI)
- name: Upload Node tar.gz Artifact
uses: actions/upload-artifact@v4
continue-on-error: true
with:
Expand Down
22 changes: 2 additions & 20 deletions .github/workflows/release_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,7 @@ jobs:
# Note: the version (and the workflow input) are passed through environment
# variables instead of direct ${{ }} interpolation into the run blocks, so
# that a crafted tag/ref/input cannot inject shell into the steps.
- name: Sign and Notarize GUI
env:
MACOS_CERTIFICATE_BASE64: ${{ secrets.MACOS_CERTIFICATE }}
MACOS_CERTIFICATE_PASSWORD: ${{ secrets.MACOS_CERTIFICATE_PASSWORD }}
MACOS_CERTIFICATE_NAME: ${{ secrets.MACOS_CERTIFICATE_NAME }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
VERSION: ${{ steps.get_version.outputs.VERSION }}
run: |
./build-tools/osx/sign_and_notarize.sh ${{ matrix.arch }} "$VERSION"

- name: Package Mintlayer Node (without GUI)
- name: Package Mintlayer Node
env:
VERSION: ${{ steps.get_version.outputs.VERSION }}
BINARY_LIST: ${{ inputs.binary_list }}
Expand All @@ -70,13 +58,7 @@ jobs:
done
zip -r "Mintlayer_Node_macos_${VERSION}_${{ matrix.arch }}.zip" "Mintlayer_Node_macos_${VERSION}_${{ matrix.arch }}"

- name: Upload DMG Artifact (GUI)
uses: actions/upload-artifact@v4
with:
name: Mintlayer_Node_GUI_macos_${{ steps.get_version.outputs.VERSION }}_${{ matrix.arch }}
path: Mintlayer_Node_GUI_macos_${{ steps.get_version.outputs.VERSION }}_${{ matrix.arch }}.dmg

- name: Upload Node Artifact (without GUI)
- name: Upload Node Artifact
uses: actions/upload-artifact@v4
with:
name: Mintlayer_Node_macos_${{ steps.get_version.outputs.VERSION }}_${{ matrix.arch }}
Expand Down
33 changes: 5 additions & 28 deletions .github/workflows/release_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
with:
toolchain: stable

- name: Build Mintlayer Node and GUI
- name: Build Mintlayer Node
run: cargo build --release --locked --features trezor,ledger

# Note: the version (and the workflow input) are passed through environment
Expand All @@ -73,7 +73,7 @@ jobs:
run: |
$DEST = "Mintlayer_Node_win_$env:VERSION"
New-Item -ItemType Directory -Path $DEST
$binary_list = $env:BINARY_LIST -split ',' | Where-Object { $_ -ne "node-gui" }
$binary_list = $env:BINARY_LIST -split ','
foreach ($binary in $binary_list) {
$binary = $binary.Trim()
if (Test-Path "target\release\$binary.exe") {
Expand All @@ -95,28 +95,17 @@ jobs:
run: .\build-tools\win\create-license.ps1
shell: pwsh

- name: Create NSIS installers (node + GUI)
- name: Create NSIS installer
env:
VERSION: ${{ steps.get_version.outputs.VERSION }}
run: .\build-tools\win\create-nsis-installers.ps1 -Version $env:VERSION
shell: pwsh

- name: Smoke test installers (silent install/uninstall)
- name: Smoke test installer (silent install/uninstall)
env:
VERSION: ${{ steps.get_version.outputs.VERSION }}
run: |
.\build-tools\win\smoke-install.ps1 -Installer "Mintlayer_Node_win_${env:VERSION}_Setup.exe" -AppName "Mintlayer Node" -Kind node -Version $env:VERSION
.\build-tools\win\smoke-install.ps1 -Installer "Mintlayer_Node_GUI_win_${env:VERSION}_Setup.exe" -AppName "Mintlayer Node GUI" -Kind gui -Version $env:VERSION
shell: pwsh

- name: Package Mintlayer Node GUI
env:
VERSION: ${{ steps.get_version.outputs.VERSION }}
run: |
$DEST = "Mintlayer_Node_GUI_win_$env:VERSION"
New-Item -ItemType Directory -Path $DEST
Copy-Item "target\release\node-gui.exe" -Destination $DEST
Compress-Archive -Path $DEST -DestinationPath "${DEST}.zip"
.\build-tools\win\smoke-install.ps1 -Installer "Mintlayer_Node_win_${env:VERSION}_Setup.exe" -AppName "Mintlayer Node" -Version $env:VERSION
shell: pwsh

- name: Upload Node ZIP Artifact
Expand All @@ -125,20 +114,8 @@ jobs:
name: Mintlayer_Node_win_${{ steps.get_version.outputs.VERSION }}
path: Mintlayer_Node_win_${{ steps.get_version.outputs.VERSION }}.zip

- name: Upload GUI ZIP Artifact
uses: actions/upload-artifact@v4
with:
name: Mintlayer_Node_GUI_win_${{ steps.get_version.outputs.VERSION }}
path: Mintlayer_Node_GUI_win_${{ steps.get_version.outputs.VERSION }}.zip

- name: Upload Node NSIS Installer Artifact
uses: actions/upload-artifact@v4
with:
name: Mintlayer_Node_win_${{ steps.get_version.outputs.VERSION }}_Setup
path: Mintlayer_Node_win_${{ steps.get_version.outputs.VERSION }}_Setup.exe

- name: Upload GUI NSIS Installer Artifact
uses: actions/upload-artifact@v4
with:
name: Mintlayer_Node_GUI_win_${{ steps.get_version.outputs.VERSION }}_Setup
path: Mintlayer_Node_GUI_win_${{ steps.get_version.outputs.VERSION }}_Setup.exe
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ target-debian/

# Rendered NSIS scripts and installers (build-tools/win/create-nsis-installers.ps1)
/installer-node.nsi
/installer-gui.nsi
/Mintlayer_Node_win_*_Setup.exe
/Mintlayer_Node_GUI_win_*_Setup.exe

# JS dependencies from local wasm test runs
node_modules/
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ The format is loosely based on [Keep a Changelog](https://keepachangelog.com/en/
subscribers that fall behind are closed by the node with an error notification (at most
32 are served at a time).

### Removed
- Node:
- the `node-gui` desktop application, its `node-gui-backend` support crate and
the `iced`-based GUI dependencies; desktop node management continues in the
Nexus wallet. The node daemon, wallet-cli, wallet-rpc-daemon and all other
executables are unaffected. GUI packages (deb/rpm/arch, Windows installer and
zip) are no longer built or released.

### Changed
- Consensus:
- the mainnet activation height of the consensus tightening rules (kernel
Expand Down
Loading
Loading