XzenTorXz / ElectroneumGUIWallet

Electroneum GUI Wallet
Other
7 stars 13 forks source link

how do we build this wallet? #12

Open zhmrab opened 6 years ago

zhmrab commented 6 years ago

How can I build this wallet instead of running the python command ?

Been trying with py2app but not sure about setup.py ...

XzenTorXz commented 6 years ago

did you follow the step by step guide in the README.md ? For the windows binary i use pyinstaller --add-data Resources;Resources -i Resources/icons/electroneum_icon.ico -w -n ElectroneumGUIWallet wallet.py

zhmrab commented 6 years ago

Thanks for getting back to me! Yes followed all the steps, wallet works fine with command "python wallet.py"

I just tried pyinstaller with your command it works, only thing is that it cannot find path to Qt (MacOS)

XzenTorXz commented 6 years ago

i'm sorry i have never used a mac to build anything. Please post here if you found a solution.

zhmrab commented 6 years ago

Ok will do!

zhmrab commented 6 years ago

@XzenTorXz so I found a fix for the lib paths on MacOS :

solution is in here for anyone who needs : https://pastebin.com/2vX5GGsQ

But still won't compile with pyinstaller,

For Windows, what other requirements did you have to install in order to compile it with pyinstaller ?

I got so far:

I must be missing something in the process just not sure what yet

XzenTorXz commented 6 years ago

I just tested it on a windows without pip/pyinstall:

install python 2.7 install pip: download "https://bootstrap.pypa.io/get-pip.py" then run "python get-pip.py"

install pyinstaller: pip install pyinstaller

install dependencies: pip install -r requirements.txt (careful you might need to delete the winpaths line)

compile: pyinstaller --add-data Resources;Resources -i Resources/icons/electroneum_icon.ico -w -n ElectroneumGUIWallet wallet.py

you can try the "-F" option for pyinstaller, then its get bundled into one file

that's all i did

zhmrab commented 6 years ago

Awesome thanks!

For MacOS I added this to ElectroneumGUIWallet.spec

app = BUNDLE(exe,
             name='ElectroneumWallet.app',
             icon='Resources/icons/electroneum.icns',
             bundle_identifier=None)

And then ran pyinstaller ElectroneumGUIWallet.spec and done, I'll make a pull request and provide .dmg for the few Etn mac users who are interested

zhmrab commented 6 years ago

I'm looking into the commits and changes you made from SumoWallet as well, I'm getting an error about address, have you made any changes regarding this?

[INFO] Wallet RPC ready!
[15:51:32] [ERROR] 'addresses'
XzenTorXz commented 6 years ago

this looks like a left in debug message. Does this error has any side effect ? I moved the save to address book out of the transaction progress, so i don't have to make a transaction every time i test. Changes can be found here: https://github.com/XzenTorXz/ElectroneumGUIWallet/commit/f2994bff1278656b94c51a2df7f3558da2798e51

zhmrab commented 6 years ago

So when this happens the wallet gets stuck on « loading », i’m gonna check these changes im sure solution is in there

On 22 Mar 2018, at 05:23, XzenTorXz notifications@github.com wrote:

this looks like a left in debug message. Does this error has any side effect ? I moved the save to address book out of the transaction progress, so i don't have to make a transaction every time i test. Changes can be found here: f2994bf

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

XzenTorXz commented 6 years ago

the stuck on loading might not be a bug, it might just rescan the whole blockchain, that can take a very long time.

zhmrab commented 6 years ago

I thought so but console says I'm fully synced ... I'm trying to re-create your changes from sumo to etn basically, and the GUI as of now does generate the wallet address but not the mnemonic keys etc..

Seems like there is a conflict there, my python skills are pretty limited but i'll keep on digging

XzenTorXz commented 6 years ago

I'm not sure if i can help you here. The scanning has nothing to do with your deamon being synced. This is the progress where the wallet checks every block, with your private view key and see if anything matches.