Snap created
Initial PR xmrig project * Snap successfully created and published to snapcraft.io * Will allow auto-updating of xmrig for users, instead requiring repeated downloads of binaries, or recompiling from source * When commits made to main repo, builds are automated on snapcraft.io
This commit is contained in:
parent
4f5f9bdffb
commit
1c84850a35
2 changed files with 75 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
||||||
[](https://github.com/xmrig/xmrig/blob/master/LICENSE)
|
[](https://github.com/xmrig/xmrig/blob/master/LICENSE)
|
||||||
[](https://github.com/xmrig/xmrig/stargazers)
|
[](https://github.com/xmrig/xmrig/stargazers)
|
||||||
[](https://github.com/xmrig/xmrig/network)
|
[](https://github.com/xmrig/xmrig/network)
|
||||||
|
[](https://snapcraft.io/xmrig)
|
||||||
|
|
||||||
XMRig is a high performance, open source, cross platform RandomX, KawPow, CryptoNight, AstroBWT and [GhostRider](https://github.com/xmrig/xmrig/tree/master/src/crypto/ghostrider#readme) unified CPU/GPU miner and [RandomX benchmark](https://xmrig.com/benchmark). Official binaries are available for Windows, Linux, macOS and FreeBSD.
|
XMRig is a high performance, open source, cross platform RandomX, KawPow, CryptoNight, AstroBWT and [GhostRider](https://github.com/xmrig/xmrig/tree/master/src/crypto/ghostrider#readme) unified CPU/GPU miner and [RandomX benchmark](https://xmrig.com/benchmark). Official binaries are available for Windows, Linux, macOS and FreeBSD.
|
||||||
|
|
||||||
|
@ -18,6 +19,11 @@ XMRig is a high performance, open source, cross platform RandomX, KawPow, Crypto
|
||||||
* **[Binary releases](https://github.com/xmrig/xmrig/releases)**
|
* **[Binary releases](https://github.com/xmrig/xmrig/releases)**
|
||||||
* **[Build from source](https://xmrig.com/docs/miner/build)**
|
* **[Build from source](https://xmrig.com/docs/miner/build)**
|
||||||
|
|
||||||
|
## Install the snap
|
||||||
|
* **[](https://snapcraft.io/xmrig)**
|
||||||
|
* For stable snap release: `sudo snap install xmrig`
|
||||||
|
* To stay on the latest releases: `sudo snap install --edge xmrig`
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
The preferred way to configure the miner is the [JSON config file](https://xmrig.com/docs/miner/config) as it is more flexible and human friendly. The [command line interface](https://xmrig.com/docs/miner/command-line-options) does not cover all features, such as mining profiles for different algorithms. Important options can be changed during runtime without miner restart by editing the config file or executing [API](https://xmrig.com/docs/miner/api) calls.
|
The preferred way to configure the miner is the [JSON config file](https://xmrig.com/docs/miner/config) as it is more flexible and human friendly. The [command line interface](https://xmrig.com/docs/miner/command-line-options) does not cover all features, such as mining profiles for different algorithms. Important options can be changed during runtime without miner restart by editing the config file or executing [API](https://xmrig.com/docs/miner/api) calls.
|
||||||
|
|
||||||
|
|
69
snap/snapcraft.yaml
Normal file
69
snap/snapcraft.yaml
Normal file
|
@ -0,0 +1,69 @@
|
||||||
|
name: xmrig
|
||||||
|
adopt-info: xmrig
|
||||||
|
summary: XMRig is a high performance, open source, cross platform CPU/GPU miner
|
||||||
|
description: |
|
||||||
|
XMRig is a high performance, open source, cross platform RandomX, KawPow,
|
||||||
|
CryptoNight and AstroBWT unified CPU/GPU miner and RandomX benchmark. Official
|
||||||
|
binaries are available for Windows, Linux, macOS and FreeBSD.
|
||||||
|
|
||||||
|
license: GPL-3.0
|
||||||
|
|
||||||
|
base: core20
|
||||||
|
grade: stable
|
||||||
|
confinement: strict
|
||||||
|
compression: lzo
|
||||||
|
|
||||||
|
architectures:
|
||||||
|
- build-on: amd64
|
||||||
|
run-on: [amd64, armhf, arm64, ppc64el]
|
||||||
|
|
||||||
|
assumes:
|
||||||
|
- command-chain
|
||||||
|
|
||||||
|
apps:
|
||||||
|
xmrig:
|
||||||
|
command: bin/xmrig
|
||||||
|
command-chain:
|
||||||
|
- bin/homeishome-launch
|
||||||
|
plugs:
|
||||||
|
- home
|
||||||
|
- network
|
||||||
|
- network-bind
|
||||||
|
- opengl
|
||||||
|
|
||||||
|
parts:
|
||||||
|
xmrig:
|
||||||
|
source: https://github.com/xmrig/xmrig
|
||||||
|
source-type: git
|
||||||
|
plugin: nil
|
||||||
|
|
||||||
|
override-build: |
|
||||||
|
git clone https://github.com/xmrig/xmrig.git
|
||||||
|
mkdir -p build && cd build
|
||||||
|
cmake ..
|
||||||
|
make -j$(nproc)
|
||||||
|
mkdir -p $SNAPCRAFT_PART_INSTALL/bin/
|
||||||
|
cp xmrig $SNAPCRAFT_PART_INSTALL/bin/
|
||||||
|
|
||||||
|
override-pull: |
|
||||||
|
snapcraftctl pull
|
||||||
|
snapcraftctl set-version "$(git describe --tags | sed 's/^v//' | cut -d "-" -f1)"
|
||||||
|
|
||||||
|
build-packages:
|
||||||
|
- build-essential
|
||||||
|
- git
|
||||||
|
- cmake
|
||||||
|
- libuv1-dev
|
||||||
|
- libssl-dev
|
||||||
|
- libhwloc-dev
|
||||||
|
|
||||||
|
stage-packages:
|
||||||
|
- libuv1-dev
|
||||||
|
- libssl-dev
|
||||||
|
- libhwloc-dev
|
||||||
|
|
||||||
|
homeishome-launch:
|
||||||
|
plugin: nil
|
||||||
|
stage-snaps:
|
||||||
|
- homeishome-launch
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue