|
8 | 8 | <format property="BUILD_DATE" pattern="yyyy/MM/dd hh:mm"/>
|
9 | 9 | </tstamp>
|
10 | 10 |
|
| 11 | + <!-- Set for RC releases --> |
| 12 | + <!-- |
| 13 | + When this property is set the build script will make a Release Canditate for testing purposes. |
| 14 | +
|
| 15 | + The RC build use a different package_index file called package_index_staging.json. |
| 16 | +
|
| 17 | + When the IDE detects the presence of the staging index in his dist/ folder then this |
| 18 | + file is used instead of the main public index to allow testing of new AVR-bundled |
| 19 | + cores. Updates are also downloaded from a different URL and the original package_index |
| 20 | + is ignored. |
| 21 | + --> |
| 22 | + <!--<property name="RC_build" value="true" />--> |
| 23 | + |
11 | 24 | <!-- Main url for boards and libraries repository -->
|
12 | 25 | <property name="library_index_url" value="http://downloads.arduino.cc/libraries/library_index.json" />
|
13 |
| - <property name="package_index_url" value="http://downloads.arduino.cc/packages/package_index.json" /> |
| 26 | + <condition property="package_index_filename" |
| 27 | + value="package_index_staging.json" |
| 28 | + else="package_index.json"> |
| 29 | + <isset property="RC_build"/> |
| 30 | + </condition> |
| 31 | + <property name="package_index_url" value="http://downloads.arduino.cc/packages/${package_index_filename}" /> |
14 | 32 |
|
15 | 33 | <!-- Sets properties for macosx/windows/linux depending on current system -->
|
16 | 34 | <condition property="platform" value="macosx-old">
|
|
274 | 292 | </loadfile>
|
275 | 293 |
|
276 | 294 | <!-- figure out the latest AVR core version number in package_index.json -->
|
277 |
| - <loadfile srcfile="${staging_folder}/work/${staging_hardware_folder}/../dist/package_index.json" property="revision.avr.index"> |
| 295 | + <loadfile srcfile="${staging_folder}/work/${staging_hardware_folder}/../dist/${package_index_filename}" property="revision.avr.index"> |
278 | 296 | <filterchain>
|
279 | 297 | <tokenfilter>
|
280 | 298 | <linetokenizer />
|
|
295 | 313 | </or>
|
296 | 314 | </condition>
|
297 | 315 | <fail unless="revision.avr.ok">
|
298 |
| - Mismatching versions for bundled AVR core and package_index.json. |
299 |
| - Please check your platform.txt and package_index.json. |
| 316 | + Mismatching versions for bundled AVR core and ${package_index_filename}. |
| 317 | + Please check your platform.txt and ${package_index_filename}. |
300 | 318 | </fail>
|
301 | 319 |
|
302 | 320 | <!-- figure out the IDE version number -->
|
|
1170 | 1188 | <target name="package-library-index-json-bundle">
|
1171 | 1189 | <mkdir dir="${staging_folder}/work/${staging_hardware_folder}/../dist/"/>
|
1172 | 1190 |
|
| 1191 | + <!-- Remove all package_index_staging leftovers --> |
| 1192 | + <delete file="${staging_folder}/work/${staging_hardware_folder}/../dist/package_index.json" /> |
| 1193 | + <delete file="${staging_folder}/work/${staging_hardware_folder}/../dist/package_index.json.sig" /> |
| 1194 | + <delete file="${staging_folder}/work/${staging_hardware_folder}/../dist/package_index_staging.json" /> |
| 1195 | + <delete file="${staging_folder}/work/${staging_hardware_folder}/../dist/package_index_staging.json.sig" /> |
| 1196 | + |
1173 | 1197 | <get src="${package_index_url}.gz"
|
1174 |
| - dest="${staging_folder}/work/${staging_hardware_folder}/../dist/package_index.json.gz" |
| 1198 | + dest="${staging_folder}/work/${staging_hardware_folder}/../dist/${package_index_filename}.gz" |
1175 | 1199 | verbose="true" skipexisting="false" />
|
1176 |
| - <gunzip src ="${staging_folder}/work/${staging_hardware_folder}/../dist/package_index.json.gz" |
| 1200 | + <gunzip src ="${staging_folder}/work/${staging_hardware_folder}/../dist/${package_index_filename}.gz" |
1177 | 1201 | dest="${staging_folder}/work/${staging_hardware_folder}/../dist/"/>
|
1178 |
| - <delete file="${staging_folder}/work/${staging_hardware_folder}/../dist/package_index.json.gz"/> |
| 1202 | + <delete file="${staging_folder}/work/${staging_hardware_folder}/../dist/${package_index_filename}.gz"/> |
1179 | 1203 |
|
1180 | 1204 | <get src="${package_index_url}.sig"
|
1181 |
| - dest="${staging_folder}/work/${staging_hardware_folder}/../dist/package_index.json.sig" |
| 1205 | + dest="${staging_folder}/work/${staging_hardware_folder}/../dist/${package_index_filename}.sig" |
1182 | 1206 | verbose="true" skipexisting="false" />
|
1183 | 1207 |
|
1184 | 1208 | <get src="${library_index_url}.gz"
|
|
0 commit comments