Commit Graph

227 Commits

Author SHA1 Message Date
Richard Kuhnt 5af29e1b25 Add script to un/installer property
Allow custom installer and uninstaller scripts without creating/downloading *.ps1 files (could also be used to clean-up post_install and pre_install scripts)
2017-08-21 12:52:22 +02:00
Luke Sampson c8a5622196 Fix 'Access denied' error on current directory when resetting. 2017-07-31 14:23:50 +10:00
Richard Kuhnt e67d176d95 Change environment variables to uppercase 2017-05-31 00:27:21 +02:00
Richard Kuhnt f737315e73 Merge pull request #1517 from lukesampson/unix-compatible
[WIP] Add Unix compatibility (for maintenance jobs and manifest testing)
2017-05-30 21:59:15 +02:00
Luke Sampson 887f041fc7 Extract to _tmp instead of _scoop_extract to conserve 10 more characters in path. 2017-05-29 17:59:09 +10:00
Richard Kuhnt 24fd3a3c7e Move unix compatible functions to unix.ps1
- Change helper functions to snake_case
2017-05-28 13:59:42 +02:00
Richard Kuhnt 9128eeab13 Fix variable in set_https_protocols 2017-05-28 13:41:58 +02:00
Richard Kuhnt d97d02e57f Fix checksum calculations for MacOS
MacOS provides shasum instead of sha256sum
2017-05-27 17:09:47 +02:00
Richard Kuhnt d28cf794cc Add isUnix/isLinux/isMacOS helper functions 2017-05-27 17:07:36 +02:00
Richard Kuhnt a8de45f214 Use write-output instead of echo 2017-05-27 13:15:34 +02:00
Richard Kuhnt 2abd22223d Use sha256sum and friends for hash calculation 2017-05-24 21:52:16 +02:00
Richard Kuhnt 75ea431922 Make core.ps1 and install.ps1 able to run on unix 2017-05-24 19:59:24 +02:00
Richard Kuhnt 884a7a3361 Allow architecture specific shortcuts for special cases like dont-sleep or mpc-hc 2017-05-23 22:28:49 +02:00
Richard Kuhnt 92ab8f5e80 Move some functions to core.ps1 2017-05-14 04:54:32 +02:00
Richard Kuhnt 14a461296b Allow fosshub.com as download source 2017-05-13 18:27:52 +02:00
Simon Hartcher 9f594ebe9a Merge pull request #1418 from rrelmy/tests
[WIP] Add more unit tests
2017-05-04 12:33:45 +10:00
Silver Zachara 7bf823186c Quote source and target paths
Prevent failure, when path contains whitespaces
2017-05-03 20:15:35 +02:00
Richard Kuhnt a66ae9626f Allow $dir, $original_dir and $persist_dir variables in manifest notes 2017-04-25 19:19:09 +02:00
Luke Sampson 5841a704b2 Don't make 7-zip an install dependency if it's already installed (fixes #1438) 2017-04-19 19:43:39 +10:00
Sergey 9af3e46847 FTP SIZE request
Came across this when tried to install zip.
ContentLength is -1 when downloading from their server.
2017-04-15 22:41:15 +03:00
Simon Hartcher 836f03db72 Merge pull request #1332 from lukesampson/install-specific-version
Installing specific versions using autoupdate feature
2017-04-05 16:07:27 +10:00
Rémy ade8d51423 use join-path in env_(add|rm)_path 2017-04-03 17:40:12 +02:00
Rémy 7410b94848 fix env_add_path regression (#1417) 2017-04-03 17:30:08 +02:00
Rémy 5053c41bf0 Merge branch 'master' into install-specific-version 2017-04-02 22:10:50 +02:00
Simon Hartcher 2b96081c21 Merge branch 'master' into install-specific-version 2017-03-31 18:43:23 +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
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 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 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
Simon Hartcher 9dfc30f931 Add basic specific version installation using autoupdate 2017-02-13 23:34:51 +11:00
Luke Sampson e8e5ac5615 Update more UI messages for consistency. 2017-02-13 20:53:36 +11:00