81 |
82 |
85 | Welcome
86 |
87 | This package installs the configuration software for the
88 | Pololu USB AVR Programmer v2 on your computer.
89 | Please note that v2 refers to the versions of the
90 | hardware products.
91 | The version number of this software is #{Version}.
92 |
93 | This software only supports the Pololu USB AVR Programmer v2 and v2.1,
94 | which are blue-colored. If you have an older Pololu
95 | programmer, refer to the product page and user's guide of that programmer for
96 | software.
97 |
98 | This package will install two programs:
99 |
100 | - Pololu USB AVR Programmer v2 Configuration Utility (pavr2gui)
101 |
- Pololu USB AVR Programmer v2 Command-line Utility (pavr2cmd)
102 |
103 |
104 |
105 | This software can only configure the programmer or read information from it.
106 | To actually program an AVR, you will need AVR programming software such as
107 | AVRDUDE or the Arduino IDE.
108 | EOF
109 | end
110 |
111 | File.open('distribution.xml', 'w') do |f|
112 | f.puts <
114 |
115 | #{AppName} #{Version}
116 |
117 | app.pkg
118 | path.pkg
119 |
120 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 | EOF
140 | end
141 |
142 | File.open('build.sh', 'w') do |f|
143 | f.puts <
21 |
22 | #{Version}
23 | 15e2e35e-f56e-47da-9536-ded64d31f1ac
24 | pololu-usb-avr-programmer-v2-$(ProductVersion)-win
25 |
26 | ProductVersion=$(ProductVersion);
27 | DocumentationUrl=https://www.pololu.com/docs/0J67;
28 |
29 | Debug
30 | x86
31 | 2.0
32 | Package
33 | false
34 | $(MSBuildExtensionsPath)\\Microsoft\\WiX\\v3.x\\Wix.targets
35 |
36 |
37 | bin\\$(Configuration)\\
38 | obj\\$(Configuration)\\
39 | Debug;ProductVersion=$(ProductVersion)
40 |
41 |
42 | bin\\$(Configuration)\\
43 | obj\\$(Configuration)\\
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 | EOF
55 | end
56 |
57 | File.open(OutDir + 'app.wxs', 'w') do |f|
58 | f.write <
60 |
62 |
68 |
69 |
74 |
75 |
78 |
79 |
80 |
81 |
84 | Pololu
85 | $(var.DocumentationUrl)
86 | 702-262-6648
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
105 |
106 |
107 |
108 |
109 |
112 |
114 | MODIFYPATH=1
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
159 |
160 |
161 |
163 |
164 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
186 |
187 |
189 |
191 |
192 |
194 |
196 |
197 |
199 |
201 |
202 |
203 |
204 | (NOT Installed) OR REINSTALLMODE
205 |
206 | (NOT Installed) OR REINSTALLMODE
207 |
208 | (NOT Installed) OR REINSTALLMODE
209 |
210 |
211 |
212 |
214 |
216 |
217 |
218 |
219 |
220 | EOF
221 | end
222 |
223 | File.open(OutDir + 'en-us.wxl', 'w') do |f|
224 | f.write <
226 |
227 | The Setup Wizard will install the software and drivers for the Pololu USB AVR Programmer v2 and v2.1 on your computer. Please note that "v2" refers to the versions of the hardware products. The version number of this software is [ProductVersion]. Click Next to continue or Cancel to exit the Setup Wizard.
228 | {\\WixUI_Font_Title}Installation Options
229 | Click Next to use the default options or change the options below.
230 | Add the bin directory to the PATH environment variable.
231 | This is not required but will make it easier to run pavr2cmd from the Command Prompt.
232 |
233 | EOF
234 | end
235 |
236 | File.open(OutDir + 'ui.wxs', 'w') do |f|
237 | f.write <
240 |
241 |
242 |
243 |
244 |
245 |
246 |
247 |
248 |
249 |
250 |
251 |
252 |
253 |
254 |
255 |
256 |
273 |
274 |
275 |
276 |
277 |
278 |
279 |
280 |
281 |
282 |
283 |
284 |
285 | 1
286 | "1"]]>
287 |
288 | 1
289 |
290 | NOT Installed
291 |
292 | 1
293 | 1
294 | NOT WIXUI_DONTVALIDATEPATH
295 | "1"]]>
296 | WIXUI_DONTVALIDATEPATH OR WIXUI_INSTALLDIR_VALID="1"
297 | 1
298 | 1
299 |
300 | 1
301 | 1
302 |
303 | NOT Installed
304 | Installed AND NOT PATCH
305 |
306 | 1
307 |
308 | 1
309 | 1
310 | 1
311 |
312 |
313 |
314 |
315 | EOF
316 | end
317 |
318 | File.open(OutDir + 'build.sh', 'w') do |f|
319 | f.write <