Commit Graph
396 Commits
Author SHA1 Message Date
Richard Kuhnt fc522ff8ae Fix strip_filename for URLs with query parameters 2017-03-23 16:47:01 +01:00
tresf f1673eec8e Fix high-cpu when downloading
Closes #1389
2017-03-22 20:22:22 -07:00
tresf e8f26de74c Revert "Throttle progress bar output"
This reverts commit 01d9b95d4e.
2017-03-22 18:58:29 -07:00
Simon Hartcher 01d9b95d4e Throttle progress bar output
- Fixes #1389
2017-03-22 20:26:14 +11:00
Richard Kuhnt 9a650799e0 Strip filename from referer url 2017-03-21 17:52:10 +01:00
Richard Kuhnt c682723d99 Add referer-header to all webrequests 2017-03-19 16:29:27 +01:00
Richard Kuhnt 0ba415d7d2 Show warning only if hash extraction is used 2017-03-18 22:16:13 +01:00
Richard Kuhnt e7a54d802b Show warning hash couldn't be found in hashurl 2017-03-18 22:06:20 +01:00
Rémy 4fb5bb2acb autoupdate extract hash with original filename 2017-03-12 20:12:43 +01:00
Luke Sampson 5a6a8733c0 Tweak $env:SCOOP_CACHE and note 2017-03-06 16:50:34 +11:00
wangzq 02d09a5b35 Use environment variable SCOOP_CACHE to override cache dir 2017-03-05 21:15:42 -08:00
Richard Kuhnt d1b4bca73c Autoformat autoupdate.ps1 2017-03-04 18:16:15 +01:00
Richard Kuhnt 8150ce593f Use downloading the files as a last resort for getting updated hashs 2017-03-04 18:15:47 +01:00
Richard Kuhnt 825f19aa52 Add jsonpath support for checkver and hash extraction
Unravel if-blocks in checkver

Use new jsonpath for openssl, nuget, dart and bfg
2017-03-03 21:15:37 +01:00
Richard Kuhnt cd49d0e37c Better error handling for autoupdate and checkver
do_dl() now rethrows an exception instead of aborting. this prevents killing the autoupdate process prematurely and thus skipping queued updates.
2017-03-02 21:01:54 +01:00
Luke Sampson 1cba11e625 Show remote filename in messages when a downloaded file is being coerced to a new filename 2017-02-24 11:11:01 +11:00
Luke Sampson 24127669bd Handle dashed version components (fixes #1344) 2017-02-21 22:02:47 +11:00
Luke Sampson 02863d3a30 Possible temporary fix for #1334, disable download progress if content length has not been set (-1) 2017-02-14 13:56:46 +11:00
Luke Sampson b77e5c49f4 UI message formatting. 2017-02-14 13:47:48 +11:00
Philipp Tschannen e772900728 Exclude bitbucket from URL check (like github) 2017-02-13 15:31:55 +01:00
Luke Sampson e8e5ac5615 Update more UI messages for consistency. 2017-02-13 20:53:36 +11:00
Luke Sampson 1dc4d87626 Wrap 'app' in quotes for consistency. 2017-02-13 20:36:29 +11:00
Luke Sampson 1ce2a76e43 Update usage messages for consistency. 2017-02-13 20:33:55 +11:00
Luke Sampson d2a8f6798f Update UI messages for consistency. 2017-02-13 20:25:56 +11:00
Luke Sampson 1c173bc56d Use sentence case for UI messages. 2017-02-13 20:20:41 +11:00
Luke Sampson b21b6a2be1 Add 'suggest' directive as an alternative to 'depends'. Allows manifest authors to suggest apps with complementary features, without installing them automatically (fixes #1263) 2017-02-12 16:37:02 +11:00
Simon Hartcher 9cd2b1a293 Avoid calculating filename twice in dl_urls 2017-02-11 18:51:26 +11:00
Simon Hartcher 83a4f33c22 Download first, then check hash and extract 2017-02-11 18:45:34 +11:00
Simon Hartcher 48492f9c19 Replace url_filename with better implementation 2017-02-11 18:28:52 +11:00
Simon Hartcher c148f543b2 Remove unused return value. Refactor url_filename into method 2017-02-11 18:20:45 +11:00
Simon Hartcher f62dacef0b Fix: Progress bar no longer jumps when hitting 100% 2017-02-11 18:09:28 +11:00
Simon Hartcher 798e07a053 Add comments and fix a few bugs 2017-02-11 18:04:49 +11:00
Simon Hartcher 7f06bd6b38 Remove $url from dl_onProgress callback arguments 2017-02-11 17:40:05 +11:00
Simon Hartcher 75e8b630a5 Nicer progress bar 2017-02-11 17:35:37 +11:00
Simon Hartcher 20c23b45e6 Remove -nonewline from simple output 2017-02-11 16:26:27 +11:00
Simon Hartcher 3bc4782cd1 Add better progress output control by passing url 2017-02-11 16:21:42 +11:00
Simon Hartcher eacd2778d0 Make progress stateless 2017-02-11 16:16:20 +11:00
Simon Hartcher 93916d618e Remove smelly reference to $wres in dl_progress 2017-02-11 15:23:21 +11:00
Simon Hartcher b5788250d1 Remove old comment 2017-02-11 15:20:54 +11:00
Simon Hartcher 87c6756d3c Refactor dl functions
In the future I want to be able to have different download providers
(aria2c for example) so I'm trying to decouple progress display a bit.

- Removed dl_simple
- Refactored dl_progress; Renamed to dl
- Added dl_progress function
2017-02-11 15:14:53 +11:00
Simon Hartcher 1d6c524629 Reduce dl_progress nesting to make more readable 2017-02-11 14:19:04 +11:00
Ilja Nosik 4a1d4158a7 Assume that nuget.org URLs are valid
NuGet-Galleries (such as nuget.org or chocolatey.org) don't seem to support HEAD
requests.
2017-02-02 07:34:12 +01:00
Richard Kuhnt 84f212c8f6 Remove -SkipLast to restore Powershell 3 compatibility (fixes #1278)
Remove -SkipLast to restore Powershell 3 compatibility (fixes #1278)
2017-01-30 19:38:02 +01:00
Luke Sampson 211249238e handle downloading a zip containing a zip of the same name (see #1276) 2017-01-30 08:01:05 +11:00
Luke Sampson 8a457e3abf fix autoupdate always writes to main bucket directory even when another directory is specified (see #1273) 2017-01-27 15:48:35 +11:00
Luke Sampson 2339036e6f fix prune_uninstalled 2017-01-24 18:23:44 +11:00
Luke Sampson 33e6fbb30c fix prune_uninstalled not populating array correctly 2017-01-24 18:19:30 +11:00
Luke Sampson 79def7adad continue installing remaining apps when some requested apps are already installed (see #1256) 2017-01-24 18:10:35 +11:00
Luke Sampson faa91eadc6 fix AppVeyor tests 2017-01-22 14:47:47 +11:00
Luke Sampson d15bb91cb7 Add support for installing PowerShell modules (see #1246) 2017-01-22 14:44:54 +11:00