Skip to content

Commit f0cea18

Browse files
xmr: Download required monero client tools. (#3441)
* xmr: Update comments * xmr: Update go.mod * remove git rm`d binary: mkjson * update .gitignore for other incoming changes --------- Co-authored-by: dev-warrior777 <>
1 parent 4bfcfcd commit f0cea18

16 files changed

Lines changed: 2151 additions & 291 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,5 @@ client/bworg/bworg
5959
tatanka/cmd/tatanka/tatanka
6060
dex/politeia/politeia_test.db
6161
dex/lexi/cmd/lexidbexplorer/lexidbexplorer
62+
client/asset/xmr/cmd/mkjson/mkjson
63+
Lines changed: 342 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,342 @@
1+
# MkJson
2+
3+
## A tool for the download and JSON conversion of the github information about the most recent few versions of Monero CLI.
4+
5+
- The JSON can be used as input to Monero Tools downloading in the `toolsdl` package.
6+
- If the pattern of the Monero github page(s) changes this tool should be changed
7+
8+
## Usage
9+
10+
Linux/Mac:
11+
12+
1.Build
13+
14+
`$ go build`
15+
16+
2.Run
17+
18+
`$ ./mkjson`
19+
20+
## More Information
21+
22+
This tool will download the first releases page from <https://github.com/decred/dcrdex/releases> and then pull out the versioned Hashed Zip lines like:-
23+
24+
25+
```text
26+
monero-win-x64-v0.18.4.3.zip, bd9f615657c35d2d7dd9a5168ad54f1547dbf9a335dee7f12fab115f6f394e36
27+
monero-win-x86-v0.18.4.3.zip, e642ed7bbfa34c30b185387fa553aa9c3ea608db1f3fc0e9332afa9b522c9c1a
28+
monero-mac-x64-v0.18.4.3.tar.bz2, a8d8273b14f31569f5b7aa3063fbd322e3caec3d63f9f51e287dfc539c7f7d61
29+
monero-mac-armv8-v0.18.4.3.tar.bz2, bab9a6d3c2ca519386cff5ff0b5601642a495ed1a209736acaf354468cba1145
30+
monero-linux-x64-v0.18.4.3.tar.bz2, 3a7b36ae4da831a4e9913e0a891728f4c43cd320f9b136cdb6686b1d0a33fafa
31+
monero-linux-x86-v0.18.4.3.tar.bz2, e0b51ca71934c33cb83cfa8535ffffebf431a2fc9efe3acf2baad96fb6ce21ec
32+
monero-linux-armv8-v0.18.4.3.tar.bz2, b1cc5f135de3ba8512d56deb4b536b38c41addde922b2a53bf443aeaf2a5a800
33+
monero-linux-armv7-v0.18.4.3.tar.bz2, 3ac83049bc565fb5238501f0fa629cdd473bbe94d5fb815088af8e6ff1d761cd
34+
monero-linux-riscv64-v0.18.4.3.tar.bz2 95baaa6e8957b92caeaed7fb19b5c2659373df8dd5f4de2601ed3dae7b17ce2f
35+
monero-android-armv8-v0.18.4.3.tar.bz2, 1aebd24aaaec3d1e87a64163f2e30ab2cd45f3902a7a859413f6870944775c21
36+
monero-android-armv7-v0.18.4.3.tar.bz2, 4e1481835824b9233f204553d4a19645274824f3f6185d8a4b50198470752f54
37+
monero-freebsd-x64-v0.18.4.3.tar.bz2, ff7b9c5cf2cb3d602c3dff1902ac0bc3394768cefc260b6003a9ad4bcfb7c6a4
38+
```
39+
40+
... then process and emit all the versions to STDOUT as JSON like this:-
41+
42+
```text
43+
{
44+
"vers": [
45+
{
46+
"zips": [
47+
{
48+
"hash": "7eb3b87a105b3711361dd2b3e492ad14219d21ed8fd3dd726573a6cbd96e83a6",
49+
"zip": "monero-win-x64-v0.18.4.4.zip",
50+
"dir": "monero-win-x64-v0.18.4.4",
51+
"ext": "zip",
52+
"os": "win",
53+
"arch": "x64"
54+
},
55+
{
56+
"hash": "a148a2bd2b14183fb36e2cf917fce6f33fb687564db2ed53193b8432097ab398",
57+
"zip": "monero-win-x86-v0.18.4.4.zip",
58+
"dir": "monero-win-x86-v0.18.4.4",
59+
"ext": "zip",
60+
"os": "win",
61+
"arch": "x86"
62+
},
63+
{
64+
"hash": "af3d98f09da94632db3e2f53c62cc612e70bf94aa5942d2a5200b4393cd9c842",
65+
"zip": "monero-mac-x64-v0.18.4.4.tar.bz2",
66+
"dir": "monero-mac-x64-v0.18.4.4",
67+
"ext": "tar.bz2",
68+
"os": "mac",
69+
"arch": "x64"
70+
},
71+
{
72+
"hash": "645e9bbae0275f555b2d72a9aa30d5f382df787ca9528d531521750ce2da9768",
73+
"zip": "monero-mac-armv8-v0.18.4.4.tar.bz2",
74+
"dir": "monero-mac-armv8-v0.18.4.4",
75+
"ext": "tar.bz2",
76+
"os": "mac",
77+
"arch": "armv8"
78+
},
79+
{
80+
"hash": "7fe45ee9aade429ccdcfcad93b905ba45da5d3b46d2dc8c6d5afc48bd9e7f108",
81+
"zip": "monero-linux-x64-v0.18.4.4.tar.bz2",
82+
"dir": "monero-linux-x64-v0.18.4.4",
83+
"ext": "tar.bz2",
84+
"os": "linux",
85+
"arch": "x64"
86+
},
87+
{
88+
"hash": "8c174b756e104534f3d3a69fe68af66d6dc4d66afa97dfe31735f8d069d20570",
89+
"zip": "monero-linux-x86-v0.18.4.4.tar.bz2",
90+
"dir": "monero-linux-x86-v0.18.4.4",
91+
"ext": "tar.bz2",
92+
"os": "linux",
93+
"arch": "x86"
94+
},
95+
{
96+
"hash": "b9daede195a24bdd05bba68cb5cb21e42c2e18b82d4d134850408078a44231c5",
97+
"zip": "monero-linux-armv8-v0.18.4.4.tar.bz2",
98+
"dir": "monero-linux-armv8-v0.18.4.4",
99+
"ext": "tar.bz2",
100+
"os": "linux",
101+
"arch": "armv8"
102+
},
103+
{
104+
"hash": "2040dc22748ef39ed8a755324d2515261b65315c67b91f449fa1617c5978910b",
105+
"zip": "monero-linux-armv7-v0.18.4.4.tar.bz2",
106+
"dir": "monero-linux-armv7-v0.18.4.4",
107+
"ext": "tar.bz2",
108+
"os": "linux",
109+
"arch": "armv7"
110+
},
111+
{
112+
"hash": "c939ea6e8002798f24a56ac03cbfc4ff586f70d7d9c3321b7794b3bcd1fa4c45",
113+
"zip": "monero-linux-riscv64-v0.18.4.4.tar.bz2",
114+
"dir": "monero-linux-riscv64-v0.18.4.4",
115+
"ext": "tar.bz2",
116+
"os": "linux",
117+
"arch": "riscv64"
118+
},
119+
{
120+
"hash": "eb81b71f029884ab5fec76597be583982c95fd7dc3fc5f5083a422669cee311e",
121+
"zip": "monero-android-armv8-v0.18.4.4.tar.bz2",
122+
"dir": "monero-android-armv8-v0.18.4.4",
123+
"ext": "tar.bz2",
124+
"os": "android",
125+
"arch": "armv8"
126+
},
127+
{
128+
"hash": "7c2ad18ca3a1ad5bc603630ca935a753537a38a803e98d645edd6a3b94a5f036",
129+
"zip": "monero-android-armv7-v0.18.4.4.tar.bz2",
130+
"dir": "monero-android-armv7-v0.18.4.4",
131+
"ext": "tar.bz2",
132+
"os": "android",
133+
"arch": "armv7"
134+
},
135+
{
136+
"hash": "bc539178df23d1ae8b69569d9c328b5438ae585c0aacbebe12d8e7d387a745b0",
137+
"zip": "monero-freebsd-x64-v0.18.4.4.tar.bz2",
138+
"dir": "monero-freebsd-x64-v0.18.4.4",
139+
"ext": "tar.bz2",
140+
"os": "freebsd",
141+
"arch": "x64"
142+
}
143+
]
144+
},
145+
{
146+
"zips": [
147+
{
148+
"hash": "bd9f615657c35d2d7dd9a5168ad54f1547dbf9a335dee7f12fab115f6f394e36",
149+
"zip": "monero-win-x64-v0.18.4.3.zip",
150+
"dir": "monero-win-x64-v0.18.4.3",
151+
"ext": "zip",
152+
"os": "win",
153+
"arch": "x64"
154+
},
155+
{
156+
"hash": "e642ed7bbfa34c30b185387fa553aa9c3ea608db1f3fc0e9332afa9b522c9c1a",
157+
"zip": "monero-win-x86-v0.18.4.3.zip",
158+
"dir": "monero-win-x86-v0.18.4.3",
159+
"ext": "zip",
160+
"os": "win",
161+
"arch": "x86"
162+
},
163+
{
164+
"hash": "a8d8273b14f31569f5b7aa3063fbd322e3caec3d63f9f51e287dfc539c7f7d61",
165+
"zip": "monero-mac-x64-v0.18.4.3.tar.bz2",
166+
"dir": "monero-mac-x64-v0.18.4.3",
167+
"ext": "tar.bz2",
168+
"os": "mac",
169+
"arch": "x64"
170+
},
171+
{
172+
"hash": "bab9a6d3c2ca519386cff5ff0b5601642a495ed1a209736acaf354468cba1145",
173+
"zip": "monero-mac-armv8-v0.18.4.3.tar.bz2",
174+
"dir": "monero-mac-armv8-v0.18.4.3",
175+
"ext": "tar.bz2",
176+
"os": "mac",
177+
"arch": "armv8"
178+
},
179+
{
180+
"hash": "3a7b36ae4da831a4e9913e0a891728f4c43cd320f9b136cdb6686b1d0a33fafa",
181+
"zip": "monero-linux-x64-v0.18.4.3.tar.bz2",
182+
"dir": "monero-linux-x64-v0.18.4.3",
183+
"ext": "tar.bz2",
184+
"os": "linux",
185+
"arch": "x64"
186+
},
187+
{
188+
"hash": "e0b51ca71934c33cb83cfa8535ffffebf431a2fc9efe3acf2baad96fb6ce21ec",
189+
"zip": "monero-linux-x86-v0.18.4.3.tar.bz2",
190+
"dir": "monero-linux-x86-v0.18.4.3",
191+
"ext": "tar.bz2",
192+
"os": "linux",
193+
"arch": "x86"
194+
},
195+
{
196+
"hash": "b1cc5f135de3ba8512d56deb4b536b38c41addde922b2a53bf443aeaf2a5a800",
197+
"zip": "monero-linux-armv8-v0.18.4.3.tar.bz2",
198+
"dir": "monero-linux-armv8-v0.18.4.3",
199+
"ext": "tar.bz2",
200+
"os": "linux",
201+
"arch": "armv8"
202+
},
203+
{
204+
"hash": "3ac83049bc565fb5238501f0fa629cdd473bbe94d5fb815088af8e6ff1d761cd",
205+
"zip": "monero-linux-armv7-v0.18.4.3.tar.bz2",
206+
"dir": "monero-linux-armv7-v0.18.4.3",
207+
"ext": "tar.bz2",
208+
"os": "linux",
209+
"arch": "armv7"
210+
},
211+
{
212+
"hash": "95baaa6e8957b92caeaed7fb19b5c2659373df8dd5f4de2601ed3dae7b17ce2f",
213+
"zip": "monero-linux-riscv64-v0.18.4.3.tar.bz2",
214+
"dir": "monero-linux-riscv64-v0.18.4.3",
215+
"ext": "tar.bz2",
216+
"os": "linux",
217+
"arch": "riscv64"
218+
},
219+
{
220+
"hash": "1aebd24aaaec3d1e87a64163f2e30ab2cd45f3902a7a859413f6870944775c21",
221+
"zip": "monero-android-armv8-v0.18.4.3.tar.bz2",
222+
"dir": "monero-android-armv8-v0.18.4.3",
223+
"ext": "tar.bz2",
224+
"os": "android",
225+
"arch": "armv8"
226+
},
227+
{
228+
"hash": "4e1481835824b9233f204553d4a19645274824f3f6185d8a4b50198470752f54",
229+
"zip": "monero-android-armv7-v0.18.4.3.tar.bz2",
230+
"dir": "monero-android-armv7-v0.18.4.3",
231+
"ext": "tar.bz2",
232+
"os": "android",
233+
"arch": "armv7"
234+
},
235+
{
236+
"hash": "ff7b9c5cf2cb3d602c3dff1902ac0bc3394768cefc260b6003a9ad4bcfb7c6a4",
237+
"zip": "monero-freebsd-x64-v0.18.4.3.tar.bz2",
238+
"dir": "monero-freebsd-x64-v0.18.4.3",
239+
"ext": "tar.bz2",
240+
"os": "freebsd",
241+
"arch": "x64"
242+
}
243+
]
244+
},
245+
246+
<--- snip --->
247+
248+
{
249+
"zips": [
250+
{
251+
"hash": "35dcc4bee4caad3442659d37837e0119e4649a77f2e3b5e80dd6d9b8fc4fb6ad",
252+
"zip": "monero-win-x64-v0.18.3.1.zip",
253+
"dir": "monero-win-x64-v0.18.3.1",
254+
"ext": "zip",
255+
"os": "win",
256+
"arch": "x64"
257+
},
258+
{
259+
"hash": "5bcbeddce32b50ebe18289d0560ebf779441526ec84d73b6a83094f092365271",
260+
"zip": "monero-win-x86-v0.18.3.1.zip",
261+
"dir": "monero-win-x86-v0.18.3.1",
262+
"ext": "zip",
263+
"os": "win",
264+
"arch": "x86"
265+
},
266+
{
267+
"hash": "7f8bd9364ef16482b418aa802a65be0e4cc660c794bb5d77b2d17bc84427883a",
268+
"zip": "monero-mac-x64-v0.18.3.1.tar.bz2",
269+
"dir": "monero-mac-x64-v0.18.3.1",
270+
"ext": "tar.bz2",
271+
"os": "mac",
272+
"arch": "x64"
273+
},
274+
{
275+
"hash": "915288b023cb5811e626e10052adc6ac5323dd283c5a25b91059b0fb86a21fb6",
276+
"zip": "monero-mac-armv8-v0.18.3.1.tar.bz2",
277+
"dir": "monero-mac-armv8-v0.18.3.1",
278+
"ext": "tar.bz2",
279+
"os": "mac",
280+
"arch": "armv8"
281+
},
282+
{
283+
"hash": "23af572fdfe3459b9ab97e2e9aa7e3c11021c955d6064b801a27d7e8c21ae09d",
284+
"zip": "monero-linux-x64-v0.18.3.1.tar.bz2",
285+
"dir": "monero-linux-x64-v0.18.3.1",
286+
"ext": "tar.bz2",
287+
"os": "linux",
288+
"arch": "x64"
289+
},
290+
{
291+
"hash": "c8553558dece79a4c23e1114fdf638b15e46899d7cf0af41457f18bbbee83986",
292+
"zip": "monero-linux-x86-v0.18.3.1.tar.bz2",
293+
"dir": "monero-linux-x86-v0.18.3.1",
294+
"ext": "tar.bz2",
295+
"os": "linux",
296+
"arch": "x86"
297+
},
298+
{
299+
"hash": "445032e88dc07e51ac5fff7034752be530d1c4117d8d605100017bcd87c7b21f",
300+
"zip": "monero-linux-armv8-v0.18.3.1.tar.bz2",
301+
"dir": "monero-linux-armv8-v0.18.3.1",
302+
"ext": "tar.bz2",
303+
"os": "linux",
304+
"arch": "armv8"
305+
},
306+
{
307+
"hash": "2ea2c8898cbab88f49423f4f6c15f2a94046cb4bbe827493dd061edc0fd5f1ca",
308+
"zip": "monero-linux-armv7-v0.18.3.1.tar.bz2",
309+
"dir": "monero-linux-armv7-v0.18.3.1",
310+
"ext": "tar.bz2",
311+
"os": "linux",
312+
"arch": "armv7"
313+
},
314+
{
315+
"hash": "6d9c7d31942dde86ce39757fd55027448ceb260b60b3c8d32ed018211eb4f1e4",
316+
"zip": "monero-android-armv8-v0.18.3.1.tar.bz2",
317+
"dir": "monero-android-armv8-v0.18.3.1",
318+
"ext": "tar.bz2",
319+
"os": "android",
320+
"arch": "armv8"
321+
},
322+
{
323+
"hash": "fc6a93eabc3fd524ff1ceedbf502b8d43c61a7805728b7ed5f9e7204e26b91f5",
324+
"zip": "monero-android-armv7-v0.18.3.1.tar.bz2",
325+
"dir": "monero-android-armv7-v0.18.3.1",
326+
"ext": "tar.bz2",
327+
"os": "android",
328+
"arch": "armv7"
329+
},
330+
{
331+
"hash": "3e2d9964a9e52c146b4d26b5eb53e691b3ba88e2468dc4fbfee4c318a367a90e",
332+
"zip": "monero-freebsd-x64-v0.18.3.1.tar.bz2",
333+
"dir": "monero-freebsd-x64-v0.18.3.1",
334+
"ext": "tar.bz2",
335+
"os": "freebsd",
336+
"arch": "x64"
337+
}
338+
]
339+
}
340+
]
341+
}
342+
```

0 commit comments

Comments
 (0)