-
Notifications
You must be signed in to change notification settings - Fork 11
/
patch
341 lines (298 loc) · 7.62 KB
/
patch
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
diff --git a/flash/spoon.me b/flash/spoon.me
index c215d8d..5a413b0 100644
--- a/flash/spoon.me
+++ b/flash/spoon.me
@@ -1,18 +1,32 @@
#
-# Adobe FlashPlayer Spoon.me file
+# Adobe FlashPlayer spoon.me file
# https://github.com/spoonapps/spoonme/tree/master/flash
#
+# Created with Spoon CMD version 1.4.1171.0
+#
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
-using wget,python:3.4.1
+###################################
+# Pull dependency images
+###################################
+
+using gnu/wget,python/python:3.4.1
+
-cmd pip install requests --quiet
+###################################
+# Download and install
+###################################
+
+# Set working directory
cmd mkdir c:\Workspace
workdir c:\Workspace
+# Get version
+cmd pip install requests --quiet
+
batch
echo import sys > getRelease.py
echo import requests >> getRelease.py
@@ -27,11 +41,22 @@ var tag = last
cmd "python -c ""print('%tag%'.split('.')[0])"""
var version = last
-
+# Download
cmd "wget -O setup.msi --no-check-certificate http://download.macromedia.com/get/flashplayer/current/licensing/win/install_flash_player_%version%_plugin.msi"
+# Install
cmd "setup.msi /qn"
+
+###################################
+# Environment Variables
+###################################
+
+
+###################################
+# Clean up
+###################################
+
workdir c:\
cmd rmdir c:\Workspace /s /q
@@ -39,7 +64,16 @@ cmd rmdir c:\wget /s /q
cmd rmdir c:\Python34 /s /q
+###################################
+# Meta tags
+###################################
+
meta title="Adobe FlashPlayer"
meta namespace="adobe"
meta name="flash"
meta tag=tag
+
+
+###################################
+# Startup File
+###################################
diff --git a/hy/spoon.me b/hy/spoon.me
index 4741541..7860fcb 100644
--- a/hy/spoon.me
+++ b/hy/spoon.me
@@ -1,6 +1,8 @@
#
-# Hy lang Spoon.me file
-# https://github.com/spoonium/spoonme/tree/master/hy
+# Hy lang spoon.me file
+# https://github.com/spoonapps/spoonme/tree/master/hy
+#
+# Created with Spoon CMD version 1.4.1171.0
#
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
@@ -10,43 +12,48 @@
# Pull dependency images
###################################
-from python
+from python/python:3.4.1
+
###################################
# Download and install
###################################
+# Set working directory
workdir c:\
-
cmd pip install hy --quiet
+# Get version
cmd hy -v
-
var data = last
cmd "python -c ""print('%data%'.split(' ')[1])"""
-
-var tag = last
-
-
-batch
- echo (print ^"I was going to code in python syntax, but then I got hy.^") > awesome.hy
+var version = last
###################################
-# Startup File
+# Environment Variables
###################################
###################################
-# Environment Variables
+# Clean up
###################################
###################################
-# Clean up
+# Meta tags
###################################
meta title="Hy lang"
meta namespace="hylang"
meta name="hy"
-meta tag=tag
+meta tag=version
+
+###################################
+# Startup File
+###################################
+
+batch
+ echo (print ^"I was going to code in python syntax, but then I got hy.^") > awesome.hy
+
+startup file ("cmd", "/k echo Hy version: " + version)
diff --git a/python/README.md b/python/README.md
index 3b8f75c..40951a4 100644
--- a/python/README.md
+++ b/python/README.md
@@ -2,10 +2,10 @@ Requires running from an admin command prompt.
Build using:
- spoon build -name="python:3.4.2" python-3.4.2.me
+ spoon build -name="python:3.4.3" python-3.4.3.me
To test:
- spoon try -a python:3.4.2
- (15f315b2) c:\>python --version
- Python 3.4.2
\ No newline at end of file
+ spoon try -a python:3.4.3
+ (15f315b2) c:\> python --version
+ Python 3.4.3
\ No newline at end of file
diff --git a/python/init.me b/python/init.me
new file mode 100644
index 0000000..c2cd515
--- /dev/null
+++ b/python/init.me
@@ -0,0 +1,39 @@
+from python/python
+
+workdir @SYSDRIVE@
+setworkdir @SYSDRIVE@
+
+cmd title=Python
+meta name = "python"
+
+echo " "
+echo " Programming language that lets you work quickly and integrate systems more effectively."
+echo " "
+echo " Website URL: https://www.python.org/"
+echo " Support URL: https://docs.python.org/3/"
+echo " "
+echo " Install Path: C:\PythonXY (or Python version X.Y.Z)"
+echo " "
+echo " Script Source: https://github.com/spoonapps/spoonme/blob/master/python/init.me"
+echo " "
+echo " Try this to get started with Python:"
+echo " "
+echo " 1) Start a virtual command prompt"
+echo " Spoon (344a393e) C:\> cmd"
+echo " "
+echo " 2) Launch python:"
+echo " (344a393e) C:\> python"
+echo " "
+echo " 3) Enjoy the fruits of your labor!"
+echo " You can now start typing your code."
+echo " "
+echo " == Notes =="
+echo " This is Python version for x86 OS architecture."
+echo " "
+echo " Two paths are added to the PATH system variable: C:\PythonXY; C:\PythonXY\Scripts"
+echo " "
+echo " To stop Python Shell please run 'quit()' in the Python Shell."
+echo " For more help, please run 'python -h' in the virtual command prompt."
+echo " "
+echo " "
+yield
\ No newline at end of file
diff --git a/python/spoon.me b/python/spoon.me
index 3a23a14..e340e06 100644
--- a/python/spoon.me
+++ b/python/spoon.me
@@ -1,16 +1,32 @@
#
-# python Spoon.me file
+# python spoon.me file
# https://github.com/spoonapps/spoonme/tree/master/python
#
+# Created with Spoon CMD version 1.4.1171.0
+#
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
-using wget,7-zip
+###################################
+# Pull dependency images
+###################################
+
+using gnu/wget,7-zip/7-zip
+
+###################################
+# Download and install
+###################################
+
+# Set working directory
cmd mkdir c:\Workspace
workdir c:\Workspace
+# Get version and URL from web
+var tag = ""
+var version = ""
+
batch
echo import sys > getRelease.py
echo import requests >> getRelease.py
@@ -25,39 +41,50 @@ using python:3.4.1
cmd pip install requests --quiet
cmd python getRelease.py
-
var data = last
-
-
cmd "python -c ""print(%data%[0])"""
-
var url = last
-
cmd "python -c ""print(%data%[1])"""
-
var tag = last
cmd "python -c ""print(%data%[2])"""
-
var version = last
cmd "wget -O python.msi --no-check-certificate %url%"
- env path = "c:\" + version + ";c:\" + version + "\scripts"
+# Install
+cmd rmdir c:\Python34 /s /q
+cmd "python.msi /qn"
- meta title="Python"
- meta namespace="python"
- meta name="python"
- meta tag=tag
-cmd rmdir c:\Python34 /s /q
+###################################
+# Environment Variables
+###################################
-cmd "python.msi /qn"
+env path = "c:\" + version + ";c:\" + version + "\scripts"
+
+
+###################################
+# Clean up
+###################################
workdir c:\
cmd rmdir c:\Workspace /s /q
cmd rmdir c:\wget /s /q
+
+###################################
+# Meta tags
+###################################
+
+meta title="Python"
+meta namespace="python"
+meta name="python"
+meta tag=tag
+
+###################################
+# Startup File
+###################################
diff --git a/template-spoon.me b/template-spoon.me
index a24e1bf..006eebd 100644
--- a/template-spoon.me
+++ b/template-spoon.me
@@ -38,7 +38,6 @@ workdir c:\Workspace
#
# cmd python getUrl.py
# var url = last
-# cmd echo %url%
# Download
# Example: using wget