-
-
Save princebot/782a86e8f75709ca405f9acdee1d247d to your computer and use it in GitHub Desktop.
:: | |
:: This script installs wormhole (https://github.com/warner/magic-wormhole) and | |
:: its prerequisites. Run this as an administrator. | |
:: | |
:: Install chocolatey. | |
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" | |
:: Install Python 3. | |
choco install -y python | |
:: Install Microsoft Visual C++ Build Tools 2015. | |
choco install -y vcbuildtools | |
:: Refresh environment variables so that we can call Python (this is not a | |
:: native shell command: it is a script installed as part of chocolatey). | |
call RefreshEnv | |
:: Install wormhole. | |
pip install magic-wormhole |
It didn't work for me, It didn't give an error or anything but wormhole still isn't recognised as a command :(
Your Powershell is probably not using TLS 1.2. See https://gist.github.com/reboot81/e5392529d2782939cb2aa1a305e1e002
It worked perfectly, thank you so much :)
Would there be an easy way to package this, without installing all those toolchains on the target system? (choco, VC++ compiler, all of Python 3.x)
Edit: pyinstaller doesn't work:
PS C:\Python38\Lib\site-packages\wormhole\dist> .\wormhole.exe receive 1234-pass-phrase
Traceback (most recent call last):
File "wormhole.py", line 11, in <module>
ImportError: attempted relative import with no known parent package
[17548] Failed to execute script wormhole
Unfortunately i had to reboot my windows on my partiotioned laptop. I download it via the Github desktop on windows environment and when i try to execute the wormohole receive password command i get this output:
wormhole : The term 'wormhole' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
- wormhole receive password i ve been provided
-
+ CategoryInfo : ObjectNotFound: (wormhole:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
Still working on fully up to date Win10. Had issues with the choco install -y vcbuildtools
line so skipped it and was able to install and still run without any issues.
It didn't work for me, It didn't give an error or anything but wormhole still isn't recognised as a command :(