flatfly (OP)
Legendary
Offline
Activity: 1120
Merit: 1016
090930
|
|
February 03, 2013, 05:51:54 PM Last edit: February 03, 2013, 06:35:29 PM by flatfly |
|
Yeah AHK is often a great answer to this type of little problems PS: I'm actually working on a new, purely AHK-based solution for optimized Windows builds. That would (finally) make my build process fully open source and deterministic
|
|
|
|
minorman
Legendary
Offline
Activity: 945
Merit: 1003
|
|
February 09, 2013, 09:37:51 PM |
|
Recently started using electrum so I'm a newbie with this client.
Seems very powerful - IF - you use the coomand prompt. On the other hand, the gui offers only limited functionality.
This leads me to my question: How do I activate the command line interface?? I'm running the flatfly build under windows8. The wiki says a lot about what you can do in the command line interface - but nothing about how to run it??
|
|
|
|
Tachikoma
|
|
February 10, 2013, 08:30:23 AM |
|
Hold shift when clicking the exe.
|
|
|
|
minorman
Legendary
Offline
Activity: 945
Merit: 1003
|
|
February 10, 2013, 08:40:33 PM |
|
Hold shift when clicking the exe.
Thanks! It worked, but now I've got a second problem: Shift brings up a python cmd promt, but if I try to run a command - e.g. by typing "electrum -a" it just starts the GUI?
|
|
|
|
Tachikoma
|
|
February 10, 2013, 08:53:26 PM |
|
-a is a argument you give the "electrum addresses" command for instance.
|
|
|
|
minorman
Legendary
Offline
Activity: 945
Merit: 1003
|
|
February 12, 2013, 09:58:32 PM |
|
Got it. Everything makes sense now!
|
|
|
|
flatfly (OP)
Legendary
Offline
Activity: 1120
Merit: 1016
090930
|
|
March 17, 2013, 09:46:40 PM Last edit: March 20, 2013, 07:49:53 PM by flatfly |
|
OK, I've managed to rewrite a compact build using open-source autoit (aka ahk) scripting. It's still a work in progress. Also I didn't bother with the console functionality now that this is handled inside Electrum itself. The good news is that this is a lightweight, transparent and auditable process. Expect new compact builds soon! ; Notes: ; -- requires the latest release of AHK and AHK2EXE, PyQt 4.9.6, Python 2.7 and the 7-zip DLL ; -- first, do a git pull master of the Electrum source code and copy that to %APPDATA%\Electrum_SysFiles The packer script: WhichFolder = 1.7.0.1
FileDelete, %A_scriptdir%\Electrum.arc
runwait, cmd /c del *.pyc /s, %WhichFolder%, hide
runwait, d:\tools\7za.dll a "%A_scriptdir%\Electrum.arc" "%WhichFolder%" -r -sfx, d:\tools
FileCount = 0 Loop, %WhichFolder%\*.*, , 1 FileCount ++ msgbox %FileCount% items compacted.
The launcher script: process, close, python.exe sleep 100
Rel = 1.7.0.1 commandline = %1% %2% %3% %4% %5% %6% %7% %8% ReleaseDir = %appdata%\Electrum_SysFiles\%Rel%
if 1 != if 1 not contains -P,-w,bitcoin { exitapp }
commandline = -P -w "./electrum.dat" ReleaseDir = %a_scriptdir%\Electrum_SysFiles\%Rel%
ifNOTexist, %ReleaseDir% {
FileCreateDir, %ReleaseDir%
Gui, Add, text,, Please wait while unpacking files to the "Electrum_SysFiles" directory... Gui, Add, Progress, vlvl -Smooth 0x8 p0 w350 h12 ; PBS_MARQUEE = 0x8 Gui, Add, text,, Thanks for using flatfly's optimized builds of Electrum! Gui, -MinimizeBox Gui, Show, , Electrum for Windows (flatfly build) ; SetTimer, Push, 61
sleep 850 FileInstall, Electrum.arc, %ReleaseDir%\Electrum.arc, 1 runwait, %ReleaseDir%\Electrum.arc -y -o"%ReleaseDir%\.." ,, hide } Groupadd, bado, Electrum 1 Groupadd, bado, Message
EnvSet, path, %ReleaseDir%\`%System`%;%ReleaseDir%\C_\Python27;%path% Setworkingdir, %ReleaseDir%\C_\ElectrumPY
HourGlassON() run "%ReleaseDir%\C_\Python27\python.exe" "%ReleaseDir%\C_\ElectrumPY\electrum" %commandline% ,,hide useErrorLevel WinWait ahk_group bado WinActivate WinShow HourGlassOFF()
FileDelete, %ReleaseDir%\Electrum.arc exitapp
HourGlassON() { CursorHandle := DllCall( "LoadCursor", Uint,0, Int, 32650 ) DllCall( "SetSystemCursor", Uint,CursorHandle, Int, 32512) }
HourGlassOFF() { DllCall( "SystemParametersInfo", UInt, 0x57, UInt,0, UInt,0, UInt,0 ) }
|
|
|
|
Tachikoma
|
|
March 17, 2013, 10:02:19 PM |
|
Awesome, I have not been able to produce a single .exe build on 1.7 so this is most welcome if you can pull it off
|
|
|
|
ScoMo
Newbie
Offline
Activity: 49
Merit: 0
|
|
March 29, 2013, 11:39:35 PM |
|
I'm getting an error when running the executable. It says: "Windows cannot access the specified device, path or file. You may not have the appropriate permissions to access the item." How do I fix this?
|
|
|
|
flatfly (OP)
Legendary
Offline
Activity: 1120
Merit: 1016
090930
|
|
March 30, 2013, 09:34:59 AM |
|
I'm getting an error when running the executable. It says: "Windows cannot access the specified device, path or file. You may not have the appropriate permissions to access the item." How do I fix this?
This is unusual and could be related to the new build process... Could you confirm if you're running it from C drive or somewhere else? Also, are there any spaces in the path you're running it from?
|
|
|
|
ScoMo
Newbie
Offline
Activity: 49
Merit: 0
|
|
March 30, 2013, 01:34:21 PM |
|
I'm getting an error when running the executable. It says: "Windows cannot access the specified device, path or file. You may not have the appropriate permissions to access the item." How do I fix this?
This is unusual and could be related to the new build process... Could you confirm if you're running it from C drive or somewhere else? Also, are there any spaces in the path you're running it from? I am running it from C drive, in my Downloads folder.
|
|
|
|
flatfly (OP)
Legendary
Offline
Activity: 1120
Merit: 1016
090930
|
|
March 30, 2013, 03:32:07 PM |
|
Strange... Are you running any HIPS or whitelisting software, by any chance? Or perhaps it's just a corrupted download? The executable should be 6.3MB. You can also double-check if the SHA1 hash is correct.
|
|
|
|
ScoMo
Newbie
Offline
Activity: 49
Merit: 0
|
|
March 31, 2013, 06:45:52 PM |
|
Strange... Are you running any HIPS or whitelisting software, by any chance? Or perhaps it's just a corrupted download? The executable should be 6.3MB. You can also double-check if the SHA1 hash is correct.
Not doing anything of the sort. Executable is indeed 6.3MB. You're welcome to take a look with Remote Assistance.
|
|
|
|
flatfly (OP)
Legendary
Offline
Activity: 1120
Merit: 1016
090930
|
|
March 31, 2013, 08:47:55 PM |
|
Strange... Are you running any HIPS or whitelisting software, by any chance? Or perhaps it's just a corrupted download? The executable should be 6.3MB. You can also double-check if the SHA1 hash is correct.
Not doing anything of the sort. Executable is indeed 6.3MB. You're welcome to take a look with Remote Assistance. Sorry, i won't be able to help right now due to time constraints... Hopefully someone else can help you out, or you can try the builds from electrum.org.
|
|
|
|
leopard2
Legendary
Offline
Activity: 1372
Merit: 1014
|
|
April 19, 2013, 08:39:29 PM |
|
version 172 is not working
flatflys binary stays at "please wait while unpacking..." forever
the standalone from the electrum homepage does not start
the installed 172 destroys my wallet, lucky I got a backup
so 162 is the last working version, wtheck is going on?
|
Truth is the new hatespeech.
|
|
|
Math Man
|
|
April 19, 2013, 11:57:32 PM |
|
version 172 is not working
flatflys binary stays at "please wait while unpacking..." forever
the standalone from the electrum homepage does not start
the installed 172 destroys my wallet, lucky I got a backup
so 162 is the last working version, wtheck is going on?
1.7.2 works great for me.
|
|
|
|
flatfly (OP)
Legendary
Offline
Activity: 1120
Merit: 1016
090930
|
|
November 16, 2013, 07:40:47 PM |
|
After a long hiatus, I'm planning (probably in the next few days) to release a new build for Electrum version 1.9.4. For anyone not familiar with these builds, they are basically alternative, independent builds of electrum optimized for windows users.
The codebase is the same as the main github repo, only the toolchain and building process is different (documented higher in this thread.) The result is a much leaner build (around 6.5 MB vs 20MB for the standard build), the "Plastique" PyQT style and a Python debugging console for stderr output.
Note: The current build (1.7.4), released in May, still works fine.
|
|
|
|
leopard2
Legendary
Offline
Activity: 1372
Merit: 1014
|
|
November 17, 2013, 11:31:09 PM |
|
Hi Flatfly
these nasty hangs that all versions (flatfly and official) after 1.6.2 and up to 1.8 produced on my Win7 32bit, are gone with 1.9
The official 1.9 version works fine, but the deterministic restoration of my (flatfly build) wallet is not working, several change wallets do not show up. Presumably the official version works with a different lookup gap? There is also no option to configure it, not even when importing a private key. Pretty nasty.
Pretty sure that affects every flatfly user with change wallets, who tries to switch to the official download.
So if you could produce a flatfly build of 1.9 that would be great, a donation is ready.
Cheers Leo
|
Truth is the new hatespeech.
|
|
|
flatfly (OP)
Legendary
Offline
Activity: 1120
Merit: 1016
090930
|
|
November 18, 2013, 06:25:14 AM |
|
Hi Flatfly
these nasty hangs that all versions (flatfly and official) after 1.6.2 and up to 1.8 produced on my Win7 32bit, are gone with 1.9
The official 1.9 version works fine, but the deterministic restoration of my (flatfly build) wallet is not working, several change wallets do not show up. Presumably the official version works with a different lookup gap? There is also no option to configure it, not even when importing a private key. Pretty nasty.
Pretty sure that affects every flatfly user with change wallets, who tries to switch to the official download.
So if you could produce a flatfly build of 1.9 that would be great, a donation is ready.
Cheers Leo
Great, I will be sure to make an updated stable build available some time this week so you can give it a go. You'll be able to change the gap limit from the command line (by the way, my builds never change the default gap limit value, so perhaps this is be a more general issue with the wallet structure update in version 1.9.x.)
|
|
|
|
flatfly (OP)
Legendary
Offline
Activity: 1120
Merit: 1016
090930
|
|
November 18, 2013, 08:16:02 PM Last edit: November 18, 2013, 08:56:07 PM by flatfly |
|
Hi Flatfly
these nasty hangs that all versions (flatfly and official) after 1.6.2 and up to 1.8 produced on my Win7 32bit, are gone with 1.9
The official 1.9 version works fine, but the deterministic restoration of my (flatfly build) wallet is not working, several change wallets do not show up. Presumably the official version works with a different lookup gap? There is also no option to configure it, not even when importing a private key. Pretty nasty.
Pretty sure that affects every flatfly user with change wallets, who tries to switch to the official download.
So if you could produce a flatfly build of 1.9 that would be great, a donation is ready.
Cheers Leo
Alright, please find my latest build for 1.9.4 here. After installing, you can try following the below procedure to resolve your issue: 0. Have your wallet seed (12-word passphrase) at hand, you will need it. 1. Make sure Electrum is closed and rename your wallet file from "default_wallet" to something else, such as "default_wallet1". Typically this file will be in "%APPDATA%\Electrum\wallets\" 2. Shift-click the executable to open the console and enter this command (without the quotes) "electrum setconfig gap_limit 20" 3. Start Electrum. In the initial menu, select the option to restore a wallet from seed. 4. Wait for the restore process to complete, and that should be it. If this does not restore your missing addresses, retry the above process with a higher gap_limit value.
|
|
|
|
|