mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-08 20:37:25 -04:00
Compare commits
18 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e34c83d7aa | ||
|
|
c28587931f | ||
|
|
1de4a65f90 | ||
|
|
c31cdaad9e | ||
|
|
440012b454 | ||
|
|
4bd21db202 | ||
|
|
25807060a7 | ||
|
|
ff9558db09 | ||
|
|
f3f1dfc020 | ||
|
|
0764fbad33 | ||
|
|
792130a7e6 | ||
|
|
3f0edae3a7 | ||
|
|
76416d9133 | ||
|
|
5ee04841f0 | ||
|
|
1d09876323 | ||
|
|
dce481a3d9 | ||
|
|
28c698375c | ||
|
|
cabbbaf172 |
107
.github/qt_helper.py
vendored
107
.github/qt_helper.py
vendored
@@ -1,107 +0,0 @@
|
|||||||
#!/usr/bin/env python3
|
|
||||||
import defusedxml.ElementTree
|
|
||||||
import hashlib
|
|
||||||
import mmap
|
|
||||||
import pathlib
|
|
||||||
import subprocess
|
|
||||||
import sys
|
|
||||||
import urllib.parse
|
|
||||||
import urllib.request
|
|
||||||
import xml.etree.ElementTree as ET
|
|
||||||
|
|
||||||
MAX_TRIES = 32
|
|
||||||
|
|
||||||
def fetch_links_to_archives(os, target, major, minor, patch, toolchain):
|
|
||||||
MAX_XML_SIZE = 1024 * 1024 * 1024
|
|
||||||
MIRROR = 'download.qt.io'
|
|
||||||
base_url = f'https://{MIRROR}/online/qtsdkrepository/{os}/{target}/qt{major}_{major}{minor}{patch}'
|
|
||||||
url = f'{base_url}/Updates.xml'
|
|
||||||
for _ in range(MAX_TRIES):
|
|
||||||
try:
|
|
||||||
resp = urllib.request.urlopen(url).read(MAX_XML_SIZE)
|
|
||||||
update_xml = defusedxml.ElementTree.fromstring(resp)
|
|
||||||
break
|
|
||||||
except KeyboardInterrupt:
|
|
||||||
raise
|
|
||||||
except BaseException as e:
|
|
||||||
print('error', e, flush=True)
|
|
||||||
else:
|
|
||||||
return
|
|
||||||
for pkg in update_xml.findall('./PackageUpdate'):
|
|
||||||
name = pkg.find('.//Name')
|
|
||||||
if name == None:
|
|
||||||
continue
|
|
||||||
if name.text != f'qt.qt{major}.{major}{minor}{patch}.{toolchain}':
|
|
||||||
continue
|
|
||||||
version = pkg.find('.//Version')
|
|
||||||
if version == None:
|
|
||||||
continue
|
|
||||||
archives = pkg.find('.//DownloadableArchives')
|
|
||||||
if archives == None or archives.text == None:
|
|
||||||
continue
|
|
||||||
for archive in archives.text.split(', '):
|
|
||||||
url = f'{base_url}/{name.text}/{version.text}{archive}'
|
|
||||||
file_name = pathlib.Path(urllib.parse.urlparse(url).path).name
|
|
||||||
yield {'name': file_name, 'url': url}
|
|
||||||
|
|
||||||
def download(links):
|
|
||||||
metalink = ET.Element('metalink', xmlns = "urn:ietf:params:xml:ns:metalink")
|
|
||||||
for link in links:
|
|
||||||
file = ET.SubElement(metalink, 'file', name = link['name'])
|
|
||||||
ET.SubElement(file, 'url').text = link['url']
|
|
||||||
data = ET.tostring(metalink, encoding='UTF-8', xml_declaration=True)
|
|
||||||
for _ in range(MAX_TRIES):
|
|
||||||
with subprocess.Popen([
|
|
||||||
'aria2c',
|
|
||||||
'--connect-timeout=8',
|
|
||||||
'--console-log-level=warn',
|
|
||||||
'--continue',
|
|
||||||
'--follow-metalink=mem',
|
|
||||||
'--max-concurrent-downloads=100',
|
|
||||||
'--max-connection-per-server=16',
|
|
||||||
'--max-file-not-found=100',
|
|
||||||
'--max-tries=100',
|
|
||||||
'--min-split-size=1MB',
|
|
||||||
'--retry-wait=1',
|
|
||||||
'--split=100',
|
|
||||||
'--summary-interval=0',
|
|
||||||
'--timeout=8',
|
|
||||||
'--user-agent=',
|
|
||||||
'--metalink-file=-',
|
|
||||||
], stdin=subprocess.PIPE) as aria:
|
|
||||||
aria.communicate(data)
|
|
||||||
if aria.wait() == 0:
|
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
||||||
def calc_hash_sum(files):
|
|
||||||
obj = hashlib.new('sha256')
|
|
||||||
for path in files:
|
|
||||||
with open(path, 'rb') as f:
|
|
||||||
with mmap.mmap(f.fileno(), 0, mmap.MAP_SHARED, mmap.PROT_READ) as m:
|
|
||||||
file_hash = hashlib.new('sha256', m).digest()
|
|
||||||
obj.update(file_hash)
|
|
||||||
return obj.digest().hex()
|
|
||||||
|
|
||||||
def extract_archives(files, out='.', targets=[]):
|
|
||||||
for path in files:
|
|
||||||
if subprocess.Popen(['7z', 'x', '-bd', '-y', '-aoa', f'-o{out}', path] + targets,
|
|
||||||
stdout=subprocess.DEVNULL,
|
|
||||||
).wait() != 0:
|
|
||||||
return False
|
|
||||||
return True
|
|
||||||
|
|
||||||
def main():
|
|
||||||
os, target, version, toolchain, expect = sys.argv[1:]
|
|
||||||
major, minor, patch = version.split('.')
|
|
||||||
links = [*fetch_links_to_archives(os, target, major, minor, patch, toolchain)]
|
|
||||||
print(*[l['url'].encode() for l in links], sep='\n', flush=True)
|
|
||||||
assert download(links)
|
|
||||||
result = calc_hash_sum([l['name'] for l in links])
|
|
||||||
print('result', result, 'expect', expect, flush=True)
|
|
||||||
assert result == expect
|
|
||||||
assert extract_archives([l['name'] for l in links], '.', ['{}.{}.{}'.format(major, minor, patch)])
|
|
||||||
[pathlib.Path(l['name']).unlink() for l in links]
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
main()
|
|
||||||
57
.github/workflows/build.yml
vendored
57
.github/workflows/build.yml
vendored
@@ -5,6 +5,8 @@ on: [push, pull_request]
|
|||||||
env:
|
env:
|
||||||
FREE_DISKSPACE: |
|
FREE_DISKSPACE: |
|
||||||
sudo rm -rf /usr/local/.ghcup /usr/share/dotnet /usr/share/swift /usr/share/miniconda
|
sudo rm -rf /usr/local/.ghcup /usr/share/dotnet /usr/share/swift /usr/share/miniconda
|
||||||
|
QT_TAG: v5.15.17-lts-lgpl
|
||||||
|
QT_PREFIX: ${{ github.workspace }}/qt-install
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-macos:
|
build-macos:
|
||||||
@@ -66,25 +68,35 @@ jobs:
|
|||||||
run: build/release/bin/monero-wallet-gui --test-qml
|
run: build/release/bin/monero-wallet-gui --test-qml
|
||||||
|
|
||||||
macos-bundle:
|
macos-bundle:
|
||||||
runs-on: macos-13
|
runs-on: macos-15
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
run: HOMEBREW_NO_AUTO_UPDATE=1 brew install boost hidapi openssl zmq libpgm miniupnpc expat libunwind-headers protobuf pkg-config pyenv p7zip aria2
|
run: HOMEBREW_NO_AUTO_UPDATE=1 brew install boost hidapi openssl zmq libpgm miniupnpc expat libunwind-headers protobuf pkg-config
|
||||||
- name: install dependencies
|
- name: clone qt repo
|
||||||
|
run: git clone -b "${QT_TAG}" --recursive --depth 1 --shallow-submodules https://github.com/qt/qt5
|
||||||
|
- name: build qt from source
|
||||||
run: |
|
run: |
|
||||||
pyenv install 3.12.0
|
cd qt5
|
||||||
pip install defusedxml
|
mkdir build && cd build
|
||||||
- name: download qt
|
../configure -prefix "${QT_PREFIX}" -opensource -confirm-license -release -nomake examples -nomake tests -no-rpath -skip qtwebengine -skip qt3d -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtlocation -skip qtnetworkauth -skip qtpurchasing -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qttools -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebsockets -skip qtwebview -skip qtwinextras -skip qtx11extras -skip gamepad -skip serialbus -skip location -skip webengine
|
||||||
run: python monero-gui/.github/qt_helper.py mac_x64 desktop 5.15.2 clang_64 c384008156fe63cc183bade0316828c598ff3e5074397c0c9ccc588d6cdc5aca
|
make -j"$(sysctl -n hw.ncpu)"
|
||||||
working-directory: ../
|
make install
|
||||||
- name: build
|
cd ../qttools/src/linguist/lrelease
|
||||||
|
../../../../build/qtbase/bin/qmake
|
||||||
|
make -j"$(sysctl -n hw.ncpu)"
|
||||||
|
make install
|
||||||
|
cd ../../../../qttools/src/macdeployqt/macdeployqt/
|
||||||
|
../../../../build/qtbase/bin/qmake
|
||||||
|
make -j"$(sysctl -n hw.ncpu)"
|
||||||
|
make install
|
||||||
|
- name: build monero-gui
|
||||||
run: |
|
run: |
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
cmake -D CMAKE_BUILD_TYPE=Release -D ARCH=default -D CMAKE_PREFIX_PATH=/Users/runner/work/monero-gui/5.15.2/clang_64 ..
|
cmake -D CMAKE_BUILD_TYPE=Release -D ARCH=default -D CMAKE_PREFIX_PATH="${QT_PREFIX}" ..
|
||||||
make
|
make -j"$(sysctl -n hw.ncpu)"
|
||||||
- name: deploy
|
- name: deploy
|
||||||
run: make deploy
|
run: make deploy
|
||||||
working-directory: build
|
working-directory: build
|
||||||
@@ -104,13 +116,6 @@ jobs:
|
|||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- uses: satackey/action-docker-layer-caching@v0.0.11
|
|
||||||
if: "!startsWith(github.ref, 'refs/tags/v')"
|
|
||||||
continue-on-error: true
|
|
||||||
with:
|
|
||||||
key: docker-linux-static-{hash}
|
|
||||||
restore-keys: |
|
|
||||||
docker-linux-static-
|
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
run: sudo apt -y install xvfb libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xkb1 libxcb-shape0 libxkbcommon-x11-0
|
run: sudo apt -y install xvfb libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xkb1 libxcb-shape0 libxkbcommon-x11-0
|
||||||
- name: free up diskspace
|
- name: free up diskspace
|
||||||
@@ -136,13 +141,6 @@ jobs:
|
|||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- uses: satackey/action-docker-layer-caching@v0.0.11
|
|
||||||
if: "!startsWith(github.ref, 'refs/tags/v')"
|
|
||||||
continue-on-error: true
|
|
||||||
with:
|
|
||||||
key: docker-windows-static-{hash}
|
|
||||||
restore-keys: |
|
|
||||||
docker-windows-static-
|
|
||||||
- name: free up diskspace
|
- name: free up diskspace
|
||||||
run: ${{env.FREE_DISKSPACE}}
|
run: ${{env.FREE_DISKSPACE}}
|
||||||
- name: prepare build environment
|
- name: prepare build environment
|
||||||
@@ -164,21 +162,12 @@ jobs:
|
|||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- uses: satackey/action-docker-layer-caching@v0.0.11
|
|
||||||
if: "!startsWith(github.ref, 'refs/tags/v')"
|
|
||||||
continue-on-error: true
|
|
||||||
with:
|
|
||||||
key: docker-android-static-{hash}
|
|
||||||
restore-keys: |
|
|
||||||
docker-android-static-
|
|
||||||
- name: free up diskspace
|
- name: free up diskspace
|
||||||
run: ${{env.FREE_DISKSPACE}}
|
run: ${{env.FREE_DISKSPACE}}
|
||||||
- name: prepare build environment
|
- name: prepare build environment
|
||||||
run: docker build --tag monero:build-env-android --build-arg THREADS=3 --file Dockerfile.android .
|
run: docker build --tag monero:build-env-android --build-arg THREADS=3 --file Dockerfile.android .
|
||||||
- name: build
|
- name: build
|
||||||
run: docker run --rm -v /home/runner/work/monero-gui/monero-gui:/monero-gui -e THREADS=3 monero:build-env-android
|
run: docker run --rm -v /home/runner/work/monero-gui/monero-gui:/monero-gui -e THREADS=3 monero:build-env-android
|
||||||
- name: Remove obsolete docker layers
|
|
||||||
run: docker images -a | grep none | awk '{ print $3; }' | xargs docker rmi || true
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ github.job }}
|
name: ${{ github.job }}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ message(STATUS "Initiating compile using CMake ${CMAKE_VERSION}")
|
|||||||
|
|
||||||
set(VERSION_MAJOR "18")
|
set(VERSION_MAJOR "18")
|
||||||
set(VERSION_MINOR "4")
|
set(VERSION_MINOR "4")
|
||||||
set(VERSION_REVISION "2")
|
set(VERSION_REVISION "3")
|
||||||
set(VERSION "0.${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_REVISION}")
|
set(VERSION "0.${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_REVISION}")
|
||||||
|
|
||||||
option(STATIC "Link libraries statically, requires static Qt")
|
option(STATIC "Link libraries statically, requires static Qt")
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ ARG ANDROID_NDK_REVISION=23c
|
|||||||
ARG ANDROID_NDK_HASH=e5053c126a47e84726d9f7173a04686a71f9a67a
|
ARG ANDROID_NDK_HASH=e5053c126a47e84726d9f7173a04686a71f9a67a
|
||||||
ARG ANDROID_SDK_REVISION=7302050_latest
|
ARG ANDROID_SDK_REVISION=7302050_latest
|
||||||
ARG ANDROID_SDK_HASH=7a00faadc0864f78edd8f4908a629a46d622375cbe2e5814e82934aebecdb622
|
ARG ANDROID_SDK_HASH=7a00faadc0864f78edd8f4908a629a46d622375cbe2e5814e82934aebecdb622
|
||||||
ARG QT_VERSION=v5.15.16-lts-lgpl
|
ARG QT_VERSION=v5.15.17-lts-lgpl
|
||||||
|
|
||||||
WORKDIR /opt/android
|
WORKDIR /opt/android
|
||||||
ENV WORKDIR=/opt/android
|
ENV WORKDIR=/opt/android
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
FROM ubuntu:18.04
|
FROM ubuntu:18.04
|
||||||
|
|
||||||
ARG THREADS=1
|
ARG THREADS=1
|
||||||
ARG QT_VERSION=v5.15.16-lts-lgpl
|
ARG QT_VERSION=v5.15.17-lts-lgpl
|
||||||
|
|
||||||
ENV CFLAGS="-fPIC"
|
ENV CFLAGS="-fPIC"
|
||||||
ENV CPPFLAGS="-fPIC"
|
ENV CPPFLAGS="-fPIC"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
FROM ubuntu:20.04
|
FROM ubuntu:20.04
|
||||||
|
|
||||||
ARG THREADS=1
|
ARG THREADS=1
|
||||||
ARG QT_VERSION=v5.15.16-lts-lgpl
|
ARG QT_VERSION=v5.15.17-lts-lgpl
|
||||||
ENV SOURCE_DATE_EPOCH=1397818193
|
ENV SOURCE_DATE_EPOCH=1397818193
|
||||||
|
|
||||||
RUN apt update && \
|
RUN apt update && \
|
||||||
@@ -12,9 +12,9 @@ RUN apt update && \
|
|||||||
RUN update-alternatives --set x86_64-w64-mingw32-g++ $(which x86_64-w64-mingw32-g++-posix) && \
|
RUN update-alternatives --set x86_64-w64-mingw32-g++ $(which x86_64-w64-mingw32-g++-posix) && \
|
||||||
update-alternatives --set x86_64-w64-mingw32-gcc $(which x86_64-w64-mingw32-gcc-posix)
|
update-alternatives --set x86_64-w64-mingw32-gcc $(which x86_64-w64-mingw32-gcc-posix)
|
||||||
|
|
||||||
RUN git clone -b v0.18.4.2 --depth 1 https://github.com/monero-project/monero && \
|
RUN git clone -b v0.18.4.3 --depth 1 https://github.com/monero-project/monero && \
|
||||||
cd monero && \
|
cd monero && \
|
||||||
git reset --hard d87edf57fcc4bc2279ad9d8a1db093805e6becd7 && \
|
git reset --hard 7c6e84466a90f6701ebe09ff8f61ea8af3883181 && \
|
||||||
cp -a contrib/depends / && \
|
cp -a contrib/depends / && \
|
||||||
cd .. && \
|
cd .. && \
|
||||||
rm -rf monero
|
rm -rf monero
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ Packaging for your favorite distribution would be a welcome contribution!
|
|||||||
```
|
```
|
||||||
git clone --branch master --recursive https://github.com/monero-project/monero-gui.git
|
git clone --branch master --recursive https://github.com/monero-project/monero-gui.git
|
||||||
```
|
```
|
||||||
\* `master` - replace with the desired version tag (e.g. `v0.18.4.2`) to build the release binaries.
|
\* `master` - replace with the desired version tag (e.g. `v0.18.4.3`) to build the release binaries.
|
||||||
3. Prepare build environment
|
3. Prepare build environment
|
||||||
```
|
```
|
||||||
cd monero-gui
|
cd monero-gui
|
||||||
@@ -128,7 +128,7 @@ Packaging for your favorite distribution would be a welcome contribution!
|
|||||||
```
|
```
|
||||||
git clone --branch master --recursive https://github.com/monero-project/monero-gui.git
|
git clone --branch master --recursive https://github.com/monero-project/monero-gui.git
|
||||||
```
|
```
|
||||||
\* `master` - replace with the desired version tag (e.g. `v0.18.4.2`) to build the release binaries.
|
\* `master` - replace with the desired version tag (e.g. `v0.18.4.3`) to build the release binaries.
|
||||||
3. Prepare build environment
|
3. Prepare build environment
|
||||||
```
|
```
|
||||||
cd monero-gui
|
cd monero-gui
|
||||||
|
|||||||
@@ -26,16 +26,19 @@ if(APPLE OR (WIN32 AND NOT STATIC))
|
|||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# libbost_filesyste-mt.dylib has a dependency on libboost_atomic-mt.dylib, maydeployqt does not copy it by itself
|
# Copy Boost dylibs that macdeployqt doesn't pick up
|
||||||
find_package(Boost COMPONENTS atomic)
|
find_package(Boost QUIET COMPONENTS atomic container date_time)
|
||||||
get_target_property(BOOST_ATOMIC_LIB_PATH Boost::atomic LOCATION)
|
set(_boost_extras Boost::atomic Boost::container Boost::date_time)
|
||||||
if(EXISTS ${BOOST_ATOMIC_LIB_PATH})
|
foreach(_tgt IN LISTS _boost_extras)
|
||||||
add_custom_command(TARGET deploy
|
if(TARGET ${_tgt})
|
||||||
POST_BUILD
|
add_custom_command(TARGET deploy POST_BUILD
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy "${BOOST_ATOMIC_LIB_PATH}" "$<TARGET_FILE_DIR:monero-wallet-gui>/../Frameworks/"
|
COMMAND ${CMAKE_COMMAND} -E copy
|
||||||
COMMENT "Copying libboost_atomic-mt.dylib"
|
"$<TARGET_FILE:${_tgt}>"
|
||||||
)
|
"$<TARGET_FILE_DIR:monero-wallet-gui>/../Frameworks/"
|
||||||
endif()
|
COMMENT "Copying $<TARGET_FILE_NAME:${_tgt}>"
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
endforeach()
|
||||||
|
|
||||||
# Apple Silicon requires all binaries to be codesigned
|
# Apple Silicon requires all binaries to be codesigned
|
||||||
find_program(CODESIGN_EXECUTABLE NAMES codesign)
|
find_program(CODESIGN_EXECUTABLE NAMES codesign)
|
||||||
|
|||||||
BIN
images/ledgerFlex.png
Normal file
BIN
images/ledgerFlex.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 56 KiB |
2
monero
2
monero
Submodule monero updated: d87edf57fc...7c6e84466a
1
qml.qrc
1
qml.qrc
@@ -282,6 +282,7 @@
|
|||||||
<file>images/ledgerNanoSPlus.png</file>
|
<file>images/ledgerNanoSPlus.png</file>
|
||||||
<file>images/ledgerNanoX.png</file>
|
<file>images/ledgerNanoX.png</file>
|
||||||
<file>images/ledgerStax.png</file>
|
<file>images/ledgerStax.png</file>
|
||||||
|
<file>images/ledgerFlex.png</file>
|
||||||
<file>images/trezor3.png</file>
|
<file>images/trezor3.png</file>
|
||||||
<file>images/trezor5.png</file>
|
<file>images/trezor5.png</file>
|
||||||
<file>images/trezorT.png</file>
|
<file>images/trezorT.png</file>
|
||||||
|
|||||||
@@ -53,21 +53,21 @@ void P2PoolManager::download() {
|
|||||||
QString fileName;
|
QString fileName;
|
||||||
QString validHash;
|
QString validHash;
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
url = "https://github.com/SChernykh/p2pool/releases/download/v4.9.1/p2pool-v4.9.1-windows-x64.zip";
|
url = "https://github.com/SChernykh/p2pool/releases/download/v4.11/p2pool-v4.11-windows-x64.zip";
|
||||||
fileName = m_p2poolPath + "/p2pool-v4.9.1-windows-x64.zip";
|
fileName = m_p2poolPath + "/p2pool-v4.11-windows-x64.zip";
|
||||||
validHash = "97a388ffb445f943db1130169f803cc1f8a4bcc29d35c2843d3dd82ae274faf6";
|
validHash = "7b3851f4a74e3729e17a0601c9bde77bcf849e8a6528ad5829417d034989cf75";
|
||||||
#elif defined(Q_OS_LINUX)
|
#elif defined(Q_OS_LINUX)
|
||||||
url = "https://github.com/SChernykh/p2pool/releases/download/v4.9.1/p2pool-v4.9.1-linux-x64.tar.gz";
|
url = "https://github.com/SChernykh/p2pool/releases/download/v4.11/p2pool-v4.11-linux-x64.tar.gz";
|
||||||
fileName = m_p2poolPath + "/p2pool-v4.9.1-linux-x64.tar.gz";
|
fileName = m_p2poolPath + "/p2pool-v4.11-linux-x64.tar.gz";
|
||||||
validHash = "4a5369b9e15504d9f4d8d1f8be834fd4cc590cbcea4a3bb9db2703f728f8b8cb";
|
validHash = "57754a4d3ed964314b2ec5c98a64d6ca76ba0062239115859949d0f67d91edb0";
|
||||||
#elif defined(Q_OS_MACOS_AARCH64)
|
#elif defined(Q_OS_MACOS_AARCH64)
|
||||||
url = "https://github.com/SChernykh/p2pool/releases/download/v4.9.1/p2pool-v4.9.1-macos-aarch64.tar.gz";
|
url = "https://github.com/SChernykh/p2pool/releases/download/v4.11/p2pool-v4.11-macos-aarch64.tar.gz";
|
||||||
fileName = m_p2poolPath + "/p2pool-v4.9.1-macos-aarch64.tar.gz";
|
fileName = m_p2poolPath + "/p2pool-v4.11-macos-aarch64.tar.gz";
|
||||||
validHash = "20054d77a3e193035e84a011e3c6e864d2e7631a5e3c9e23e73cfe906bb01794";
|
validHash = "51fe9680fb2a80e8fc29a4401655f40b508f38e8aff1ae94a4399c5a036ab370";
|
||||||
#elif defined(Q_OS_MACOS)
|
#elif defined(Q_OS_MACOS)
|
||||||
url = "https://github.com/SChernykh/p2pool/releases/download/v4.9.1/p2pool-v4.9.1-macos-x64.tar.gz";
|
url = "https://github.com/SChernykh/p2pool/releases/download/v4.11/p2pool-v4.11-macos-x64.tar.gz";
|
||||||
fileName = m_p2poolPath + "/p2pool-v4.9.1-macos-x64.tar.gz";
|
fileName = m_p2poolPath + "/p2pool-v4.11-macos-x64.tar.gz";
|
||||||
validHash = "769989d0d299ae6dac513e14eda3269f88ad66e1f73e781a3ad0b2299863db4f";
|
validHash = "53470b203209837336e60933bda9e2ba4ae179aef4ec773abb76d6f9b64023f5";
|
||||||
#endif
|
#endif
|
||||||
QFile file(fileName);
|
QFile file(fileName);
|
||||||
epee::net_utils::http::http_simple_client http_client;
|
epee::net_utils::http::http_simple_client http_client;
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ Rectangle {
|
|||||||
ListElement { column1: "Ledger Nano S Plus"; column2: "Ledger";}
|
ListElement { column1: "Ledger Nano S Plus"; column2: "Ledger";}
|
||||||
ListElement { column1: "Ledger Nano X"; column2: "Ledger";}
|
ListElement { column1: "Ledger Nano X"; column2: "Ledger";}
|
||||||
ListElement { column1: "Ledger Stax"; column2: "Ledger";}
|
ListElement { column1: "Ledger Stax"; column2: "Ledger";}
|
||||||
|
ListElement { column1: "Ledger Flex"; column2: "Ledger";}
|
||||||
ListElement { column1: "Trezor Model T"; column2: "Trezor";}
|
ListElement { column1: "Trezor Model T"; column2: "Trezor";}
|
||||||
ListElement { column1: "Trezor Safe 3"; column2: "Trezor";}
|
ListElement { column1: "Trezor Safe 3"; column2: "Trezor";}
|
||||||
ListElement { column1: "Trezor Safe 5"; column2: "Trezor";}
|
ListElement { column1: "Trezor Safe 5"; column2: "Trezor";}
|
||||||
@@ -182,6 +183,8 @@ Rectangle {
|
|||||||
return "qrc:///images/ledgerNanoX.png";
|
return "qrc:///images/ledgerNanoX.png";
|
||||||
} else if (ledgerType == "Ledger Stax") {
|
} else if (ledgerType == "Ledger Stax") {
|
||||||
return "qrc:///images/ledgerStax.png";
|
return "qrc:///images/ledgerStax.png";
|
||||||
|
} else if (ledgerType == "Ledger Flex") {
|
||||||
|
return "qrc:///images/ledgerFlex.png";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
|
|||||||
Reference in New Issue
Block a user