Repository navigation
Expand file tree
/
Copy pathInstall.cmd
More file actions
83 lines (74 loc) · 3.37 KB
/
Copy pathInstall.cmd
File metadata and controls
83 lines (74 loc) · 3.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
@set PATH=%WINDIR%\System32;%~dp0Import\Node;%~dp0Import\Git\bin;%~dp0Import\Git\usr\bin;%~dp0Import\Code;%~dp0Import\Python;%~dp0Import\OpenSSL
@echo Installing Ethereum test development environment
@echo Installing Git
@set source=https://github.com/git-for-windows/git/releases/download/v2.8.1.windows.1
@set target=PortableGit-2.8.1-64-bit.7z.exe
@if not exist Import\Downloads\%target% call %WINDIR%\System32\WindowsPowerShell\v1.0\powershell -Command "(New-Object System.Net.WebClient).DownloadFile(\"%source%/%target%\", \"Import\Downloads\%target%\")"
@if not exist Import\Git (
@call Import\Downloads\%target% -y -gm1
@move Import\Downloads\PortableGit Import\Git
)
@echo Installing Node.js
@set source=https://nodejs.org/dist/v5.10.1/win-x64
@set target=node-5.10.1.exe
@if not exist Import\Downloads\%target% call curl -#L "%source%/node.exe" -o Import\Downloads\%target%
@if not exist Import\Node (
@md Import\Node
@copy Import\Downloads\%target% Import\Node\node.exe
)
@echo Installing NPM
@set source=https://nodejs.org/dist/npm
@set target=npm-1.4.12.zip
@if not exist Import\Downloads\%target% call curl -#L "%source%/%target%" -o Import\Downloads\%target%
@if not exist Import\Node\npm.cmd (
@call unzip -n Import\Downloads\%target% -d Import\Node
@call npm i -g npm@latest
)
@echo Installing Ethereum Geth
@set source=https://github.com/ethereum/go-ethereum/releases/download/v1.3.6
@set target=Geth-Win64-20160401105807-1.3.6-9e323d6.zip
@if not exist Import\Downloads\%target% call curl -#L "%source%/%target%" -o Import\Downloads\%target%
@if not exist Import\Geth (
@md Import\Geth
@call unzip -n Import\Downloads\%target% -d Import\Geth
)
@echo Installing Visual Studio Code
@set source=https://go.microsoft.com/fwlink/?LinkID=623231
@set target=vscode-1.0.0.zip
@if not exist Import\Downloads\%target% call curl -#L "%source%" -o Import\Downloads\%target%
@if not exist Import\Code (
@md Import\Code
@call unzip -n Import\Downloads\%target% -d Import\Code
)
@echo Installing Python
@set source=https://www.python.org/ftp/python/2.7.11
@set target=python-2.7.11.amd64.msi
@if not exist Import\Downloads\%target% call curl -#L "%source%/%target%" -o Import\Downloads\%target%
@if not exist Import\Python (
@md Import\Python
@call msiexec /a Import\Downloads\%target% /qb TARGETDIR="%~dp0Import\Python"
)
@echo Installing OpenSSL
@set source=https://indy.fulgan.com/SSL
@set target=openssl-1.0.2g-x64_86-win64.zip
@if not exist Import\Downloads\%target% call curl -#L "%source%/%target%" -o Import\Downloads\%target%
@if not exist Import\OpenSSL (
@md Import\OpenSSL
@call unzip -n Import\Downloads\%target% -d Import\OpenSSL
)
@echo Installing OpenSSL Libraries
@set source=https://indy.fulgan.com/SSL/LinkLibs
@set target=openssl-1.0.2g-x64_86-win64_LinkLibs.zip
@if not exist Import\Downloads\%target% call curl -#L "%source%/%target%" -o Import\Downloads\%target%
@if not exist Import\OpenSSL\Lib (
@md Import\OpenSSL\Lib
@call unzip -n Import\Downloads\%target% -d Import\OpenSSL\Lib
)
@echo Installing Truffle
@if not exist Import\Node\testrpc.cmd (
@if not exist C:\OpenSSL-Win64\lib md C:\OpenSSL-Win64\lib
@copy Import\OpenSSL\Lib\*.lib C:\OpenSSL-Win64\lib
@call npm i -g ethereumjs-testrpc
@if not exist C:\OpenSSL-Win64\bin rd /s /q C:\OpenSSL-Win64
)
@if not exist Import\Node\truffle.cmd call npm i -g truffle