1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-29 10:24:12 +01:00
Commit Graph

840 Commits

Author SHA1 Message Date
Mattia Bertorello
76852465d2 Add the copy the sig to the destination file when the skip verification is true 2019-08-20 17:06:36 +02:00
Mattia Bertorello
df5a52407e Add PREF_CONTRIBUTIONS_TRUST_ALL and download the signature in any case 2019-08-20 17:06:36 +02:00
Cristian Maglie
da6c73102f fixed comment 2019-08-02 11:52:15 +02:00
Mattia Bertorello
01d3d02a0f Use the BoardCloudResolver instead of the Platform class to get cloud vid pid 2019-08-02 11:48:07 +02:00
Mattia Bertorello
bcb8e90534 Remove getBoardWithMatchingVidPidFromCloud and make a new class BoardCloudResolver 2019-08-02 11:48:07 +02:00
Martino Facchin
adabb08390 NetworkUpload. use ipAddress to start jSch session
Fixes #9097
2019-07-30 10:26:03 +02:00
Mattia Bertorello
f0722843f6 Add logging 2019-07-23 09:49:55 +02:00
Mattia Bertorello
dd1d713d19 Fix condition when the file is not expire but the lastETag is changed 2019-07-23 09:49:55 +02:00
Cristian Maglie
dcee1846bd Updated eclipse classpath 2019-07-18 14:24:59 +02:00
Huang Rui
c88ff311f1 Support .tar.xz for ArchiveExtractor
Now ```tar.xz``` format is widely used, and the official arduino
IDE download URL also shows that arduino uses ```tar.xz``` format.
(https://downloads.arduino.cc/arduino-1.8.9-linux64.tar.xz).

As we all know, the tar.xz format has the optimal size compared to tar,
tar.gz, tar.bz2, and zip.
(https://www.rootusers.com/gzip-vs-bzip2-vs-xz-performance-comparison/)

Therefore, it is very unreasonable not to support tar.xz.

Supporting this format can save almost half of the bandwidth resources
and download time when compressing the gcc toolchain,
making users more comfortable.

Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-07-18 12:16:27 +02:00
Martino Facchin
9ce5101df1
Merge branch 'master' into add-file-cache 2019-07-18 11:28:46 +02:00
Pieter12345
9aea65bee6 Use user-defined tab settings in new sketch generation
When creating a new sketch, it is initialized with the BareMinimum example sketch. This example sketch uses 2-width whitespace indentation, which might differ from the user-defined tab settings. This commit makes the generated example sketch consistent with the user-defined tab settings.
2019-07-18 10:40:19 +02:00
Cristian Maglie
4dc5176c0f Fix some linter suggestions 2019-07-18 10:37:36 +02:00
Cristian Maglie
745cb01ed5 Better names for ContributedLibrary dependencies fields 2019-07-18 10:37:36 +02:00
Cristian Maglie
492553cde0 When resolving dependencies consider installed contributions first
Consider a case where the user decides to install a library `A` that
depends on library `B` and `B` is not up-to-date (i.e. is installed a
version that is not the latest), then the user is asked to "install"
both libraries `A` and `B`, effectively upgrading `B`.

With this change the already installed library `B` is left untouched
and not displayed in the missing dependencies.
2019-07-18 10:37:36 +02:00
Cristian Maglie
07e1518b28 Now libraries are installed with all the dependencies
This is the base for the GUI that will be introduced in the
next commits.
2019-07-18 10:37:36 +02:00
Cristian Maglie
67e38bc80a LibraryInstaller now autodetects if a library is being replaced
It's no more required to pass this information from outside,
just library that is being installed is now sufficient.
2019-07-18 10:37:36 +02:00
Cristian Maglie
4266b3a700 Lib installer: factored out method to perform lib installation
The new method will be used in next commits to handle installations
of multiple libraries.
This commit fix also minor bug in progress bar.
2019-07-18 10:37:36 +02:00
Cristian Maglie
d6f561bd53 Added library-dependency resolver 2019-07-18 10:37:36 +02:00
Cristian Maglie
1ebdb02954 Added helper methods to compare versions 2019-07-18 10:37:36 +02:00
Cristian Maglie
d72cb2350d Renamed ContributedLibraryReference to ContributedLibraryDependency 2019-07-18 10:37:36 +02:00
Cristian Maglie
894b1abd8a Improved lib equality check 2019-07-18 10:37:36 +02:00
Mattia Bertorello
3c5dbe6f9d
Parse the old library index file also when the signature verify fail 2019-07-18 10:27:20 +02:00
Martino Facchin
ef8d669f6a Don't report an exception if waitForUploadPort fails after successfull upload
Fixes #8851
2019-07-18 10:11:43 +02:00
Martino Facchin
fb9ce0ade3 Update jssc to arduino4
Repackage jssc-2.8.0-arduino1 and add aarch64 lib instead than plain jssc

Fixes #9062
2019-07-16 11:03:02 +02:00
Mattia Bertorello
636f93058b
Fix linter problems 2019-07-12 15:40:53 +02:00
Mattia Bertorello
4da41f7fa5
Complete disable cache if the file is not a *_indexes 2019-07-12 14:53:03 +02:00
Mattia Bertorello
85e91ef079
Change builder domain with https and add logging 2019-07-12 14:36:15 +02:00
Mattia Bertorello
2d042820a0
Delete cached file if the signature verify fail 2019-07-12 14:36:03 +02:00
Mattia Bertorello
1bfdf83db8
Reduce download method complexity of FileDownloader class. 2019-07-11 16:36:04 +02:00
Mattia Bertorello
a8c7184c11
Do not cache the core or the library because are too big
and will be downloaded only one time
2019-07-11 15:01:41 +02:00
Mattia Bertorello
dde5668b27
Increase the redirect to follow to 20
Add the possibility to configure them `http.max_redirect_number`
2019-07-11 14:36:45 +02:00
Mattia Bertorello
58fc5a5011
Add commons-io dependency and replace the extract file name with FilenameUtils 2019-07-11 14:32:50 +02:00
Mattia Bertorello
4a944df758
Fix portable mode and make the fileCached immutable 2019-07-07 16:39:55 +02:00
Mattia Bertorello
fa77c15e8e
Not delete the file if the signature fail 2019-07-05 17:00:12 +02:00
Mattia Bertorello
183e1c9ff6
Remove empty string from the http.signature_verify_domains preferences 2019-07-05 12:36:18 +02:00
Mattia Bertorello
53695d49d8
Add comments 2019-07-04 18:14:06 +02:00
Mattia Bertorello
412b6d1bf3
Fix download package index from external sources 2019-07-03 18:38:08 +02:00
Mattia Bertorello
9e38c878ec
Add Copyright in the files 2019-07-03 18:08:08 +02:00
Mattia Bertorello
f2a4ea5e15
Code reformat 2019-07-03 18:06:16 +02:00
Mattia Bertorello
1bc994ec86
Use verifyDomain also for the library index 2019-07-03 18:02:49 +02:00
Mattia Bertorello
e1e4fb30b8
Refactoring FileDownloaderCache 2019-07-03 18:02:21 +02:00
Mattia Bertorello
5dba31bfd7
Change key from connection_timeout to connection_timeout_ms preferences 2019-07-03 15:41:29 +02:00
Mattia Bertorello
a7d395f45e
Add cache.json file and improve stability 2019-07-03 15:29:42 +02:00
Mattia Bertorello
00818af181
Refactoring HttpConnectionManger and request-id 2019-07-03 15:27:50 +02:00
Mattia Bertorello
5157688590
Split download and check signature, add check signature to library index 2019-07-03 15:26:57 +02:00
Mattia Bertorello
53be417989
Add log4j dependencies 2019-07-02 16:10:12 +02:00
Mattia Bertorello
207128db91
fix the misleading exception throw on windows
- The file will be close before delete it
- Some refactoring of the downloader cache
2019-06-29 18:16:59 +02:00
Mattia Bertorello
d3e712232b
Convert CircularRedirectException in IOException 2019-06-28 17:52:31 +02:00
Mattia Bertorello
e6f09123bc
Remove notNull annotation that failed the build 2019-06-28 17:49:05 +02:00