forked from Public/monero-gui
Compare commits
25 Commits
github-bui
...
v0.13.0.4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8248a299c8 | ||
|
|
9f8e6a994c | ||
|
|
16502739b9 | ||
|
|
921ba8b241 | ||
|
|
749faf8f84 | ||
|
|
420d515635 | ||
|
|
9331686290 | ||
|
|
a19886b333 | ||
|
|
cbee139d57 | ||
|
|
cd5110cfbe | ||
|
|
b653ba0a1c | ||
|
|
2ca48fb6bc | ||
|
|
669e0f4425 | ||
|
|
15d8ef7622 | ||
|
|
279f6cf189 | ||
|
|
b59de2fb0e | ||
|
|
09c0aac7ab | ||
|
|
72b71e6a4f | ||
|
|
7fa55b49fe | ||
|
|
ba8d2913be | ||
|
|
f17c407100 | ||
|
|
7a3855700e | ||
|
|
ca7c0e0c55 | ||
|
|
d6ef609236 | ||
|
|
3f3fd67f14 |
@@ -96,7 +96,7 @@ Rectangle {
|
|||||||
visible: true
|
visible: true
|
||||||
z: 2
|
z: 2
|
||||||
id: column1
|
id: column1
|
||||||
height: 200
|
height: 210
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
@@ -111,10 +111,10 @@ Rectangle {
|
|||||||
anchors.leftMargin: 20
|
anchors.leftMargin: 20
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
height: 490 * scaleRatio
|
height: 490 * scaleRatio
|
||||||
width: 259 * scaleRatio
|
width: 260 * scaleRatio
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
width: 259; height: 170
|
width: 260; height: 170
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
source: "images/card-background.png"
|
source: "images/card-background.png"
|
||||||
}
|
}
|
||||||
@@ -247,19 +247,17 @@ Rectangle {
|
|||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
anchors.top: (isMobile)? parent.top : column1.bottom
|
anchors.top: (isMobile)? parent.top : column1.bottom
|
||||||
anchors.topMargin: (isMobile)? 0 : 32
|
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|
||||||
|
|
||||||
Flickable {
|
Flickable {
|
||||||
id:flicker
|
id:flicker
|
||||||
contentHeight: (progressBar.visible)? menuColumn.height + separator.height +
|
contentHeight: menuColumn.height
|
||||||
networkStatus.height + progressBar.height + daemonProgressBar.height :
|
anchors.top: parent.top
|
||||||
menuColumn.height + separator.height + networkStatus.height
|
anchors.bottom: networkStatus.top
|
||||||
anchors.fill: parent
|
width: parent.width
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
|
|
||||||
id: menuColumn
|
id: menuColumn
|
||||||
|
|||||||
@@ -75,11 +75,11 @@ Packaging for your favorite distribution would be a welcome contribution!
|
|||||||
|
|
||||||
- For Debian distributions (Debian, Ubuntu, Mint, Tails...)
|
- For Debian distributions (Debian, Ubuntu, Mint, Tails...)
|
||||||
|
|
||||||
`sudo apt install build-essential cmake libboost-all-dev miniupnpc libunbound-dev graphviz doxygen libunwind8-dev pkg-config libssl-dev libzmq3-dev libsodium-dev`
|
`sudo apt install build-essential cmake libboost-all-dev miniupnpc libunbound-dev graphviz doxygen libunwind8-dev pkg-config libssl-dev libzmq3-dev libsodium-dev libhidapi-dev`
|
||||||
|
|
||||||
- For Gentoo
|
- For Gentoo
|
||||||
|
|
||||||
`sudo emerge app-arch/xz-utils app-doc/doxygen dev-cpp/gtest dev-libs/boost dev-libs/expat dev-libs/openssl dev-util/cmake media-gfx/graphviz net-dns/unbound net-libs/ldns net-libs/miniupnpc net-libs/zeromq sys-libs/libunwind dev-libs/libsodium`
|
`sudo emerge app-arch/xz-utils app-doc/doxygen dev-cpp/gtest dev-libs/boost dev-libs/expat dev-libs/openssl dev-util/cmake media-gfx/graphviz net-dns/unbound net-libs/ldns net-libs/miniupnpc net-libs/zeromq sys-libs/libunwind dev-libs/libsodium dev-libs/hidapi`
|
||||||
|
|
||||||
2. Install Qt:
|
2. Install Qt:
|
||||||
|
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ GridLayout {
|
|||||||
return daemonAddr.text.trim() + ":" + daemonPort.text.trim()
|
return daemonAddr.text.trim() + ":" + daemonPort.text.trim()
|
||||||
}
|
}
|
||||||
|
|
||||||
LineEditMulti {
|
LineEdit {
|
||||||
id: daemonAddr
|
id: daemonAddr
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
placeholderText: qsTr("Remote Node Hostname / IP") + translationManager.emptyString
|
placeholderText: qsTr("Remote Node Hostname / IP") + translationManager.emptyString
|
||||||
@@ -81,7 +81,7 @@ GridLayout {
|
|||||||
onEditingFinished: root.editingFinished()
|
onEditingFinished: root.editingFinished()
|
||||||
}
|
}
|
||||||
|
|
||||||
LineEditMulti {
|
LineEdit {
|
||||||
id: daemonPort
|
id: daemonPort
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
placeholderText: qsTr("Port") + translationManager.emptyString
|
placeholderText: qsTr("Port") + translationManager.emptyString
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ if [ ! -d $MONERO_DIR/src ]; then
|
|||||||
fi
|
fi
|
||||||
git submodule update --remote
|
git submodule update --remote
|
||||||
git -C $MONERO_DIR fetch
|
git -C $MONERO_DIR fetch
|
||||||
git -C $MONERO_DIR checkout release-v0.13
|
git -C $MONERO_DIR checkout v0.13.0.4
|
||||||
|
|
||||||
# get monero core tag
|
# get monero core tag
|
||||||
get_tag
|
get_tag
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
; Monero Lithium Luna GUI Wallet Installer for Windows
|
; Monero Beryllium Bullet GUI Wallet Installer for Windows
|
||||||
; Copyright (c) 2014-2018, The Monero Project
|
; Copyright (c) 2014-2018, The Monero Project
|
||||||
; See LICENSE
|
; See LICENSE
|
||||||
|
|
||||||
@@ -8,7 +8,7 @@ AppName=Monero GUI Wallet
|
|||||||
; Thus it's important to keep this stable over releases
|
; Thus it's important to keep this stable over releases
|
||||||
; With a different "AppName" InnoSetup would treat a mere update as a completely new application and thus mess up
|
; With a different "AppName" InnoSetup would treat a mere update as a completely new application and thus mess up
|
||||||
|
|
||||||
AppVersion=0.12.3.0
|
AppVersion=0.13.0.4
|
||||||
DefaultDirName={pf}\Monero GUI Wallet
|
DefaultDirName={pf}\Monero GUI Wallet
|
||||||
DefaultGroupName=Monero GUI Wallet
|
DefaultGroupName=Monero GUI Wallet
|
||||||
UninstallDisplayIcon={app}\monero-wallet-gui.exe
|
UninstallDisplayIcon={app}\monero-wallet-gui.exe
|
||||||
@@ -22,6 +22,21 @@ LicenseFile=LICENSE
|
|||||||
AppPublisher=The Monero Developer Community
|
AppPublisher=The Monero Developer Community
|
||||||
AppPublisherURL=https://getmonero.org
|
AppPublisherURL=https://getmonero.org
|
||||||
|
|
||||||
|
UsedUserAreasWarning=no
|
||||||
|
; The above directive silences the following compiler warning:
|
||||||
|
; Warning: The [Setup] section directive "PrivilegesRequired" is set to "admin" but per-user areas (HKCU,userdocs)
|
||||||
|
; are used by the script. Regardless of the version of Windows, if the installation is administrative then you should
|
||||||
|
; be careful about making any per-user area changes: such changes may not achieve what you are intending.
|
||||||
|
; Background info:
|
||||||
|
; This installer indeed asks for admin rights so the Monero files can be copied to a place where they have at least
|
||||||
|
; a minimum of protection against changes, e.g. by malware, plus it handles things for the currently logged-in user
|
||||||
|
; in the registry (GUI wallet per-user options) and for some of the icons. For reasons too complicated to fully explain
|
||||||
|
; here this does not work as intended if the installing user does not have admin rights and has to provide the password
|
||||||
|
; of a user that does for installing: The settings of the admin user instead of those of the installing user are changed.
|
||||||
|
; Short of ripping out that per-user functionality the issue has no suitable solution. Fortunately, this will probably
|
||||||
|
; play a role in only in few cases as the first standard user in a Windows installation does have admin rights.
|
||||||
|
; So, for the time being, this installer simply disregards this problem.
|
||||||
|
|
||||||
|
|
||||||
[Languages]
|
[Languages]
|
||||||
Name: "en"; MessagesFile: "compiler:Default.isl"
|
Name: "en"; MessagesFile: "compiler:Default.isl"
|
||||||
@@ -41,7 +56,7 @@ Name: "en"; MessagesFile: "compiler:Default.isl"
|
|||||||
; .exe/.dll file possibly with version info).
|
; .exe/.dll file possibly with version info).
|
||||||
;
|
;
|
||||||
; This is far more robust than relying on version info or on file dates (flag "comparetimestamp").
|
; This is far more robust than relying on version info or on file dates (flag "comparetimestamp").
|
||||||
; As of version 0.12.3.0, the Monero .exe files do not carry version info anyway in their .exe headers.
|
; As of version 0.13.0.4, the Monero .exe files do not carry version info anyway in their .exe headers.
|
||||||
; The only small drawback seems to be somewhat longer update times because each and every file is
|
; The only small drawback seems to be somewhat longer update times because each and every file is
|
||||||
; copied again, even if already present with correct file date and identical content.
|
; copied again, even if already present with correct file date and identical content.
|
||||||
;
|
;
|
||||||
@@ -51,8 +66,9 @@ Name: "en"; MessagesFile: "compiler:Default.isl"
|
|||||||
Source: "ReadMe.htm"; DestDir: "{app}"; Flags: ignoreversion
|
Source: "ReadMe.htm"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
Source: "FinishImage.bmp"; Flags: dontcopy
|
Source: "FinishImage.bmp"; Flags: dontcopy
|
||||||
|
|
||||||
; Monero GUI wallet
|
; Monero GUI wallet exe and guide
|
||||||
Source: "bin\monero-wallet-gui.exe"; DestDir: "{app}"; Flags: ignoreversion
|
Source: "bin\monero-wallet-gui.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
|
Source: "bin\monero-GUI-guide.pdf"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
|
|
||||||
; Monero GUI wallet log file
|
; Monero GUI wallet log file
|
||||||
; The GUI wallet does not have the "--log-file" command-line option of the CLI wallet and insists to put the .log beside the .exe
|
; The GUI wallet does not have the "--log-file" command-line option of the CLI wallet and insists to put the .log beside the .exe
|
||||||
@@ -79,6 +95,8 @@ Source: "bin\monero-blockchain-import.exe"; DestDir: "{app}"; Flags: ignoreversi
|
|||||||
Source: "bin\monero-blockchain-blackball.exe"; DestDir: "{app}"; Flags: ignoreversion
|
Source: "bin\monero-blockchain-blackball.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
Source: "bin\monero-blockchain-usage.exe"; DestDir: "{app}"; Flags: ignoreversion
|
Source: "bin\monero-blockchain-usage.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
Source: "bin\monero-blockchain-import.exe"; DestDir: "{app}"; Flags: ignoreversion
|
Source: "bin\monero-blockchain-import.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
|
Source: "bin\monero-blockchain-ancestry.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
|
Source: "bin\monero-blockchain-depth.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
|
|
||||||
; was present in 0.10.3.1, not present anymore in 0.11.1.0 and after
|
; was present in 0.10.3.1, not present anymore in 0.11.1.0 and after
|
||||||
; Source: "bin\monero-utils-deserialize.exe"; DestDir: "{app}"; Flags: ignoreversion
|
; Source: "bin\monero-utils-deserialize.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
@@ -230,6 +248,9 @@ Source: "bin\zlib1.dll"; DestDir: "{app}"; Flags: ignoreversion
|
|||||||
; Stack protection
|
; Stack protection
|
||||||
Source: "bin\libssp-0.dll"; DestDir: "{app}"; Flags: ignoreversion
|
Source: "bin\libssp-0.dll"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
|
|
||||||
|
; HIDAPI, library for communicating with USB and Bluetooth devices, for hardware wallets
|
||||||
|
Source: "bin\libhidapi-0.dll"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
|
|
||||||
|
|
||||||
[Tasks]
|
[Tasks]
|
||||||
Name: desktopicon; Description: "Create a &desktop icon"; GroupDescription: "Additional icons:";
|
Name: desktopicon; Description: "Create a &desktop icon"; GroupDescription: "Additional icons:";
|
||||||
@@ -249,7 +270,6 @@ var
|
|||||||
|
|
||||||
procedure InitializeWizard;
|
procedure InitializeWizard;
|
||||||
var s: String;
|
var s: String;
|
||||||
width: Integer;
|
|
||||||
blockChainDir: String;
|
blockChainDir: String;
|
||||||
begin
|
begin
|
||||||
// Large image for the "Welcome" page, with page reconfigured
|
// Large image for the "Welcome" page, with page reconfigured
|
||||||
@@ -265,7 +285,7 @@ begin
|
|||||||
// Additional wizard page for entering a special blockchain location
|
// Additional wizard page for entering a special blockchain location
|
||||||
blockChainDefaultDir := ExpandConstant('{commonappdata}\bitmonero');
|
blockChainDefaultDir := ExpandConstant('{commonappdata}\bitmonero');
|
||||||
s := 'The default folder to store the Monero blockchain is ' + blockChainDefaultDir;
|
s := 'The default folder to store the Monero blockchain is ' + blockChainDefaultDir;
|
||||||
s := s + '. As this will need more than 60 GB of free space, you may want to use a folder on a different drive.';
|
s := s + '. As this will need more than 70 GB of free space, you may want to use a folder on a different drive.';
|
||||||
s := s + ' If yes, specify that folder here.';
|
s := s + ' If yes, specify that folder here.';
|
||||||
|
|
||||||
BlockChainDirPage := CreateInputDirPage(wpSelectDir,
|
BlockChainDirPage := CreateInputDirPage(wpSelectDir,
|
||||||
@@ -381,6 +401,7 @@ end;
|
|||||||
; Icons in the "Monero GUI Wallet" program group
|
; Icons in the "Monero GUI Wallet" program group
|
||||||
; Windows will almost always display icons in alphabetical order, per level, so specify the text accordingly
|
; Windows will almost always display icons in alphabetical order, per level, so specify the text accordingly
|
||||||
Name: "{group}\GUI Wallet"; Filename: "{app}\monero-wallet-gui.exe"
|
Name: "{group}\GUI Wallet"; Filename: "{app}\monero-wallet-gui.exe"
|
||||||
|
Name: "{group}\GUI Wallet Guide"; Filename: "{app}\monero-GUI-guide.pdf"; IconFilename: "{app}\monero-wallet-gui.exe"
|
||||||
Name: "{group}\Uninstall GUI Wallet"; Filename: "{uninstallexe}"
|
Name: "{group}\Uninstall GUI Wallet"; Filename: "{uninstallexe}"
|
||||||
|
|
||||||
; Sub-folder "Utilities";
|
; Sub-folder "Utilities";
|
||||||
@@ -405,7 +426,7 @@ Name: "{group}\Utilities\x (Try GUI Wallet Low Graphics Mode)"; Filename: "{app}
|
|||||||
Name: "{group}\Utilities\x (Try Kill Daemon)"; Filename: "Taskkill.exe"; Parameters: "/IM monerod.exe /T /F"
|
Name: "{group}\Utilities\x (Try Kill Daemon)"; Filename: "Taskkill.exe"; Parameters: "/IM monerod.exe /T /F"
|
||||||
|
|
||||||
; Desktop icons, optional with the help of the "Task" section
|
; Desktop icons, optional with the help of the "Task" section
|
||||||
Name: "{userdesktop}\GUI Wallet"; Filename: "{app}\monero-wallet-gui.exe"; Tasks: desktopicon
|
Name: "{commondesktop}\GUI Wallet"; Filename: "{app}\monero-wallet-gui.exe"; Tasks: desktopicon
|
||||||
|
|
||||||
|
|
||||||
[Registry]
|
[Registry]
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ Copyright (c) 2014-2018, The Monero Project
|
|||||||
|
|
||||||
This is a *Inno Setup* script `Monero.iss` plus some related files
|
This is a *Inno Setup* script `Monero.iss` plus some related files
|
||||||
that allows you to build a standalone Windows installer (.exe) for
|
that allows you to build a standalone Windows installer (.exe) for
|
||||||
the GUI wallet that comes with the Lithium Luna release of Monero.
|
the GUI wallet that comes with the Beryllium Bullet release of Monero.
|
||||||
|
|
||||||
This turns the GUI wallet into a more or less standard Windows program,
|
This turns the GUI wallet into a more or less standard Windows program,
|
||||||
by default installed into a subdirectory of `C:\Program Files`, a
|
by default installed into a subdirectory of `C:\Program Files`, a
|
||||||
@@ -18,7 +18,7 @@ Monero.
|
|||||||
As the setup script in file [Monero.iss](Monero.iss) has to list every
|
As the setup script in file [Monero.iss](Monero.iss) has to list every
|
||||||
single file of the GUI wallet package to install by name,
|
single file of the GUI wallet package to install by name,
|
||||||
this version of the script only works with exactly the GUI wallet
|
this version of the script only works with exactly the GUI wallet
|
||||||
for Monero release *Lithium Luna* that you find on
|
for Monero release *Beryllium Bullet* that you find on
|
||||||
[the official download page](https://getmonero.org/downloads/).
|
[the official download page](https://getmonero.org/downloads/).
|
||||||
|
|
||||||
But of course it will be easy to modify the script for future
|
But of course it will be easy to modify the script for future
|
||||||
@@ -32,13 +32,13 @@ See [LICENSE](LICENSE).
|
|||||||
|
|
||||||
You can only build on Windows, and the result is always a
|
You can only build on Windows, and the result is always a
|
||||||
Windows .exe file that can act as a standalone installer for the
|
Windows .exe file that can act as a standalone installer for the
|
||||||
Lithium Luna GUI wallet.
|
Beryllium Bullet GUI wallet.
|
||||||
|
|
||||||
The build steps in detail:
|
The build steps in detail:
|
||||||
|
|
||||||
1. Install *Inno Setup*. You can get it from [here](http://www.jrsoftware.org/isdl.php)
|
1. Install *Inno Setup*. You can get it from [here](http://www.jrsoftware.org/isdl.php)
|
||||||
2. Get the Inno Setup script plus related files by cloning the whole [monero-core GitHub repository](https://github.com/monero-project/monero-core); you will only need the files in the installer directory `installers\windows` however
|
2. Get the Inno Setup script plus related files by cloning the whole [monero-gui GitHub repository](https://github.com/monero-project/monero-gui); you will only need the files in the installer directory `installers\windows` however
|
||||||
3. The setup script is written to take the GUI wallet files from a subdirectory named `bin`; so create `installers\windows\bin`, get the zip file of the GUI wallet from [here](https://getmonero.org/downloads/), unpack it somewhere, and copy all the files and subdirectories in the `monero-gui-0.12.3.0` directory to this `bin` subdirectory
|
3. The setup script is written to take the GUI wallet files from a subdirectory named `bin`; so create `installers\windows\bin`, get the zip file of the GUI wallet from [here](https://getmonero.org/downloads/), unpack it somewhere, and copy all the files and subdirectories in the `monero-gui-0.13.0.4` directory to this `bin` subdirectory
|
||||||
4. Start Inno Setup, load `Monero.iss` and compile it
|
4. Start Inno Setup, load `Monero.iss` and compile it
|
||||||
5. The result i.e. the finished installer will be the file `mysetup.exe` in the `installers\windows\Output` subdirectory
|
5. The result i.e. the finished installer will be the file `mysetup.exe` in the `installers\windows\Output` subdirectory
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Monero Lithium Luna GUI Wallet</title>
|
<title>Monero Beryllium Bullet GUI Wallet</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body style="font-family: Arial, Helvetica, sans-serif">
|
<body style="font-family: Arial, Helvetica, sans-serif">
|
||||||
<h1>Monero Lithium Luna GUI Wallet</h1>
|
<h1>Monero Beryllium Bullet GUI Wallet</h1>
|
||||||
|
|
||||||
<p>Copyright (c) 2014-2018, The Monero Project<br>
|
<p>Copyright (c) 2014-2018, The Monero Project<br>
|
||||||
Date: July 27, 2018</p>
|
Date: October 18, 2018</p>
|
||||||
|
|
||||||
<h2>Preface</h2>
|
<h2>Preface</h2>
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
<h2>Content of the Package</h2>
|
<h2>Content of the Package</h2>
|
||||||
|
|
||||||
<p>You just installed the <i>Monero GUI wallet</i> for Windows, release Lithium Luna, more exact version 0.12.3.0.
|
<p>You just installed the <i>Monero GUI wallet</i> for Windows, release Beryllium Bullet, version 0.13.0.4.
|
||||||
The wallet enables you to send and receive Moneroj in a secure and very private way.
|
The wallet enables you to send and receive Moneroj in a secure and very private way.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
provides the most security and privacy possible for you.</p>
|
provides the most security and privacy possible for you.</p>
|
||||||
|
|
||||||
<p>However if your Internet access makes it difficult to run a full node, or if you have simply no room to store
|
<p>However if your Internet access makes it difficult to run a full node, or if you have simply no room to store
|
||||||
the blockchain locally (around 60 GB in summer 2018, and of course growing), you can compromise and try to connect
|
the blockchain locally (around 70 GB in October 2018, and of course growing), you can compromise and try to connect
|
||||||
to a remote node. One way of finding such a node is checking
|
to a remote node. One way of finding such a node is checking
|
||||||
<a href="https://moneroworld.com/#nodes">this page</a>.
|
<a href="https://moneroworld.com/#nodes">this page</a>.
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 440 KiB After Width: | Height: | Size: 440 KiB |
2
monero
2
monero
Submodule monero updated: 8512a83572...77ef8c1839
@@ -10,8 +10,8 @@ QT += qml quick widgets
|
|||||||
WALLET_ROOT=$$PWD/monero
|
WALLET_ROOT=$$PWD/monero
|
||||||
|
|
||||||
CONFIG += c++11 link_pkgconfig
|
CONFIG += c++11 link_pkgconfig
|
||||||
packagesExist(libpcsclite) {
|
packagesExist(hidapi-libusb) {
|
||||||
PKGCONFIG += libpcsclite
|
PKGCONFIG += hidapi-libusb
|
||||||
}
|
}
|
||||||
!win32 {
|
!win32 {
|
||||||
QMAKE_CXXFLAGS += -fPIC -fstack-protector -fstack-protector-strong
|
QMAKE_CXXFLAGS += -fPIC -fstack-protector -fstack-protector-strong
|
||||||
@@ -256,6 +256,8 @@ win32 {
|
|||||||
-lws2_32 \
|
-lws2_32 \
|
||||||
-lwsock32 \
|
-lwsock32 \
|
||||||
-lIphlpapi \
|
-lIphlpapi \
|
||||||
|
-lcrypt32 \
|
||||||
|
-lhidapi \
|
||||||
-lgdi32
|
-lgdi32
|
||||||
|
|
||||||
!contains(QMAKE_TARGET.arch, x86_64) {
|
!contains(QMAKE_TARGET.arch, x86_64) {
|
||||||
@@ -296,6 +298,7 @@ linux {
|
|||||||
-lssl \
|
-lssl \
|
||||||
-llmdb \
|
-llmdb \
|
||||||
-lsodium \
|
-lsodium \
|
||||||
|
-lhidapi-libusb \
|
||||||
-lcrypto
|
-lcrypto
|
||||||
|
|
||||||
if(!android) {
|
if(!android) {
|
||||||
@@ -326,6 +329,7 @@ macx {
|
|||||||
-L/usr/local/opt/openssl/lib \
|
-L/usr/local/opt/openssl/lib \
|
||||||
-L/usr/local/opt/boost/lib \
|
-L/usr/local/opt/boost/lib \
|
||||||
-lboost_serialization \
|
-lboost_serialization \
|
||||||
|
-lhidapi \
|
||||||
-lboost_thread-mt \
|
-lboost_thread-mt \
|
||||||
-lboost_system \
|
-lboost_system \
|
||||||
-lboost_date_time \
|
-lboost_date_time \
|
||||||
|
|||||||
@@ -65,6 +65,8 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function update() {
|
function update() {
|
||||||
|
const max_tracking = 3;
|
||||||
|
|
||||||
if (!appWindow.currentWallet || !trackingEnabled.checked) {
|
if (!appWindow.currentWallet || !trackingEnabled.checked) {
|
||||||
trackingLineText.text = "";
|
trackingLineText.text = "";
|
||||||
trackingModel.clear();
|
trackingModel.clear();
|
||||||
@@ -80,10 +82,10 @@ Rectangle {
|
|||||||
var count = model.rowCount()
|
var count = model.rowCount()
|
||||||
var totalAmount = 0
|
var totalAmount = 0
|
||||||
var nTransactions = 0
|
var nTransactions = 0
|
||||||
var blockchainHeight = 0
|
var blockchainHeight = null
|
||||||
var txs = []
|
var txs = []
|
||||||
|
|
||||||
for (var i = 0; i < count; ++i) {
|
for (var i = 0; i < count && txs.length < max_tracking; ++i) {
|
||||||
var idx = model.index(i, 0)
|
var idx = model.index(i, 0)
|
||||||
var isout = model.data(idx, TransactionHistoryModel.TransactionIsOutRole);
|
var isout = model.data(idx, TransactionHistoryModel.TransactionIsOutRole);
|
||||||
var subaddrAccount = model.data(idx, TransactionHistoryModel.TransactionSubaddrAccountRole);
|
var subaddrAccount = model.data(idx, TransactionHistoryModel.TransactionSubaddrAccountRole);
|
||||||
@@ -103,8 +105,8 @@ Rectangle {
|
|||||||
if (blockHeight == 0) {
|
if (blockHeight == 0) {
|
||||||
in_txpool = true;
|
in_txpool = true;
|
||||||
} else {
|
} else {
|
||||||
if (blockchainHeight == 0)
|
if (blockchainHeight == null)
|
||||||
blockchainHeight = walletManager.blockchainHeight()
|
blockchainHeight = appWindow.currentWallet.blockChainHeight()
|
||||||
confirmations = blockchainHeight - blockHeight - 1
|
confirmations = blockchainHeight - blockHeight - 1
|
||||||
displayAmount = model.data(idx, TransactionHistoryModel.TransactionDisplayAmountRole);
|
displayAmount = model.data(idx, TransactionHistoryModel.TransactionDisplayAmountRole);
|
||||||
}
|
}
|
||||||
@@ -130,7 +132,6 @@ Rectangle {
|
|||||||
trackingLineText.text = qsTr("%1 transactions found").arg(nTransactions) + ":" + translationManager.emptyString
|
trackingLineText.text = qsTr("%1 transactions found").arg(nTransactions) + ":" + translationManager.emptyString
|
||||||
}
|
}
|
||||||
|
|
||||||
var max_tracking = 3;
|
|
||||||
toReceiveSatisfiedLine.text = "";
|
toReceiveSatisfiedLine.text = "";
|
||||||
var expectedAmount = walletManager.amountFromString(amountToReceiveLine.text)
|
var expectedAmount = walletManager.amountFromString(amountToReceiveLine.text)
|
||||||
if (expectedAmount && expectedAmount != amount) {
|
if (expectedAmount && expectedAmount != amount) {
|
||||||
@@ -143,11 +144,6 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
trackingModel.clear();
|
trackingModel.clear();
|
||||||
|
|
||||||
if (txs.length > 3) {
|
|
||||||
txs.length = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
txs.forEach(function(tx){
|
txs.forEach(function(tx){
|
||||||
trackingModel.append({
|
trackingModel.append({
|
||||||
"amount": tx.amount,
|
"amount": tx.amount,
|
||||||
@@ -473,7 +469,7 @@ Rectangle {
|
|||||||
Image {
|
Image {
|
||||||
id: qrCode
|
id: qrCode
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: 6
|
anchors.margins: 1
|
||||||
|
|
||||||
smooth: false
|
smooth: false
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
|
|||||||
@@ -7,12 +7,21 @@ QImage QRCodeImageProvider::genQrImage(const QString &id, QSize *size)
|
|||||||
using namespace qrcodegen;
|
using namespace qrcodegen;
|
||||||
|
|
||||||
QrCode qrcode = QrCode::encodeText(id.toStdString().c_str(), QrCode::Ecc::MEDIUM);
|
QrCode qrcode = QrCode::encodeText(id.toStdString().c_str(), QrCode::Ecc::MEDIUM);
|
||||||
QImage img = QImage(qrcode.size, qrcode.size, QImage::Format_Mono);
|
unsigned int black = 0;
|
||||||
for (int y = 0; y < qrcode.size; ++y)
|
unsigned int white = 1;
|
||||||
for (int x = 0; x < qrcode.size; ++x)
|
unsigned int borderSize = 4;
|
||||||
img.setPixel(x, y, !qrcode.getModule(x, y)); // 1 is black, not "255/white"
|
unsigned int imageSize = qrcode.size + (2 * borderSize);
|
||||||
|
QImage img = QImage(imageSize, imageSize, QImage::Format_Mono);
|
||||||
|
|
||||||
|
for (unsigned int y = 0; y < imageSize; ++y)
|
||||||
|
for (unsigned int x = 0; x < imageSize; ++x)
|
||||||
|
if ((x < borderSize) || (x >= imageSize - borderSize) || (y < borderSize) || (y >= imageSize - borderSize))
|
||||||
|
img.setPixel(x, y, white);
|
||||||
|
else
|
||||||
|
img.setPixel(x, y, qrcode.getModule(x - borderSize, y - borderSize) ? black : white);
|
||||||
if (size)
|
if (size)
|
||||||
*size = QSize(qrcode.size, qrcode.size);
|
*size = QSize(imageSize, imageSize);
|
||||||
|
|
||||||
return img;
|
return img;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -17,13 +17,13 @@ fi
|
|||||||
|
|
||||||
if [[ "$BUILD_TYPE" == "Release" ]]; then
|
if [[ "$BUILD_TYPE" == "Release" ]]; then
|
||||||
echo "Release build"
|
echo "Release build"
|
||||||
ICU_FILES=(libicudt61.dll libicuin61.dll libicuio61.dll libicutu61.dll libicuuc61.dll)
|
ICU_FILES=(libicudt62.dll libicuin62.dll libicuio62.dll libicutu62.dll libicuuc62.dll)
|
||||||
else
|
else
|
||||||
echo "Debug build"
|
echo "Debug build"
|
||||||
ICU_FILES=(libicudtd61.dll libicuind61.dll libicuiod61.dll libicutud61.dll libicuucd61.dll)
|
ICU_FILES=(libicudtd62.dll libicuind62.dll libicuiod62.dll libicutud62.dll libicuucd62.dll)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
FILES=(zlib1.dll libwinpthread-1.dll libtiff-5.dll libstdc++-6.dll libpng16-16.dll libpcre16-0.dll libpcre-1.dll libmng-2.dll liblzma-5.dll liblcms2-2.dll libjpeg-8.dll libintl-8.dll libiconv-2.dll libharfbuzz-0.dll libgraphite2.dll libglib-2.0-0.dll libfreetype-6.dll libbz2-1.dll libssp-0.dll libpcre2-16-0.dll)
|
FILES=(zlib1.dll libwinpthread-1.dll libtiff-5.dll libstdc++-6.dll libpng16-16.dll libpcre16-0.dll libpcre-1.dll libmng-2.dll liblzma-5.dll liblcms2-2.dll libjpeg-8.dll libintl-8.dll libiconv-2.dll libharfbuzz-0.dll libgraphite2.dll libglib-2.0-0.dll libfreetype-6.dll libbz2-1.dll libssp-0.dll libpcre2-16-0.dll libhidapi-0.dll)
|
||||||
|
|
||||||
platform=$(get_platform)
|
platform=$(get_platform)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user