Commit Graph
233 Commits
Author SHA1 Message Date
Richard Kuhnt 609329bd2d Use fixed path to cmd.exe (#1921)
* Use fixed path to cmd.exe

* Use $env:COMSPEC instead of $env:WINDIR
2017-12-24 13:09:41 +01:00
Richard Kuhnt a9c2d4c486 If architecture isn't supported show an error on installation
https://github.com/lukesampson/scoop-extras/issues/678
2017-12-15 18:44:08 +01:00
Richard Kuhnt da9c8e228a Use -Path instead of -InputStream parameter for Get-FileHash (closes #1905)
Fixes a problem with Get-FileHash not excepting -InputStream parameter in PowerShell 4.0
2017-12-12 21:39:52 +01:00
Richard Kuhnt da7d61f3e3 Use Get-FileHash instead of System.Security.Cryptography.HashAlgorithm (#1725)
* Use Get-FileHash instead of System.Security.Cryptography.HashAlgorithm if available

This satisfies these two cases:
* PowerShell 3 doesn't support Get-FileHash
* PowerShell 6 doesn't support HashAlgorithm yet

* Add tests for compute_hash() function
2017-12-12 13:12:48 +01:00
Richard Kuhnt c15d8e2393 Fix a problem with persistent config files that get created on first startup
This prevents the creation of an empty directory if the file to persist doesn't exist on installation (e.g. config files getting created on first startup)
2017-10-26 20:02:28 +02:00
Dave Andersen 330fcaf93e fix #1628 (scoop update --ignore-cache option broken) (#1629)
* fix #1628

* remove unintended change in merge

* Add --no-cache to install and to all parts of the update command
2017-09-01 22:47:11 +02:00
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