Rémy
7410b94848
fix env_add_path regression ( #1417 )
2017-04-03 17:30:08 +02:00
Richard Kuhnt
8e97c2bcc6
Allow uninstalling multiple programs even if some fail or don't exist
2017-04-03 13:13:02 +02:00
Richard Kuhnt
f7e97f949f
replace test-path with is_directory in installed()
...
prevents unwanted behavior with wildcard characters
'scoop uninstall test*' outputs something about removing 'test' and 'test123' but fails silently
2017-04-02 22:30:04 +02:00
Rémy
a53efcacd5
Merge pull request #1410 from rrelmy/persist
...
Persistent data
2017-04-02 21:57:00 +02:00
Simon Hartcher
bfde58c720
Remove check_url function
...
Lots of servers block HEAD requests so it's not worth our trouble
maintaining a list of servers
2017-03-31 18:39:38 +11:00
Rémy
e7814ea295
remove $persist_dir from env
2017-03-30 18:28:10 +02:00
Luke Sampson
70a9f9a6b8
Suggested persist changes (see #1410 )
2017-03-30 15:14:20 +11:00
Luke Sampson
93e7a7f0ef
NodeJS without $persist_dir in env_add_path / mark persist dirs as read-only ( #1 )
...
* A NodeJS install with persistence that doesn't use $persist_dir variable in manifest
* persist nodejs fix npm updating itself
* A NodeJS install with persistence that doesn't use $persist_dir variable in manifest
* Fix 'Access is denied' error removing 'current' directory junction.
* change nodejs install behaviour to match upstream installer
`npm update -g` has been remove because it has no effect on the
installed npm version and does not match the official installer
behaviour.
2017-03-30 00:13:27 +02:00
Rémy
36e61b54f9
normalize persist terms
2017-03-26 14:08:58 +02:00
Rémy
6d00ecc60d
persitent data fix global installations
2017-03-25 17:47:17 +01:00
Rémy
357b33ddfe
persist file support
2017-03-25 16:28:06 +01:00
Rémy
91c5955f50
fix parse_def scoping issue
2017-03-25 16:28:06 +01:00
Rémy
a4df96ceae
nodejs persistence: use npm prefix to install bins into data dir / env_add_path with $data_dir
2017-03-25 16:28:06 +01:00
Luke Sampson
732cf2caa2
Persistence: prevent NPM from overwriting node_modules by setting read-only attribute on the persisted directory junction.
2017-03-25 16:28:05 +01:00
Rémy
b4c17c3f9b
create persist directories if they do not exist
2017-03-25 16:28:05 +01:00
Rémy
80550a3dc7
do not create data directory if not needed
2017-03-25 16:28:05 +01:00
Rémy
c9f4ddf219
implement persist definition and tests
2017-03-25 16:28:05 +01:00
Rémy
9388c90232
remove travel_dir partial implementation
2017-03-25 16:28:05 +01:00
Rémy
cafefdf658
intial persist implementation
2017-03-25 16:28:05 +01:00
Richard Kuhnt
53f0e2c590
Fix relative-path to other drives which could break shims
2017-03-24 21:58:01 +01:00
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