Commit Graph
271 Commits
Author SHA1 Message Date
Richard Kuhnt 6251b91e8f Fix aria2c command for path with spaces 2018-08-08 10:56:38 +02:00
Richard Kuhnt ab5ef333fd Remove double hash check (bug introduced with aria2 feature) 2018-08-07 22:47:00 +02:00
Richard Kuhnt ff1d7972ed Add aria2_enabled function 2018-08-07 20:11:38 +02:00
Richard Kuhnt 70ba901ce7 Add sourceforge fix 2018-08-07 20:11:38 +02:00
Richard Kuhnt f181ab291b Move referer and dir option to input file 2018-08-07 20:11:38 +02:00
Richard Kuhnt ad6b9ccd52 Add aria2 proxy support 2018-08-07 20:11:38 +02:00
Richard Kuhnt a31fa94b87 Add aria2-options config value for custom options 2018-08-07 20:11:38 +02:00
Richard Kuhnt 3183f0052f Make aria2 settings configurable and ignore aria2.conf 2018-08-07 20:11:38 +02:00
Richard Kuhnt 7518646d16 Add referer and cookie support 2018-08-07 20:11:38 +02:00
Richard Kuhnt 75aa99370f Change color for normal output to gray 2018-08-07 20:11:38 +02:00
Richard Kuhnt aab922dc07 Add aria2 exit code translation 2018-08-07 20:11:38 +02:00
Richard Kuhnt 609c8f4104 Fix download complete detection for different languages 2018-08-07 20:11:38 +02:00
Richard Kuhnt 38bdaec440 Use aria2c to support multi-connection downloads 2018-08-07 20:11:38 +02:00
Richard Kuhnt 4d61905125 Add some colors to installation output 2018-08-07 20:11:38 +02:00
Chawye Hsu 3201c5714d Support persisting files without a file extension (#2408) 2018-08-05 11:15:31 +02:00
Nick Budidharma c98fc17479 Update strip_filename skips (#2401)
Portableapps.com has switched to portableapps.duckduckgo.com as their freeware host and skipping strip_filename is no longer required.
Remove downloads subdomain from sourceforge.net to allow mirror redirect urls (e.g. https://sourceforge.net/projects/phppgadmin/files/latest/download).
2018-07-18 17:30:31 +02:00
Richard Kuhnt 0c2b3da3ff Don't send referer to portableapps.com 2018-07-16 14:09:39 +02:00
Richard Kuhnt 4c9beee8f2 Add filename to warning for files without hash in the manifest 2018-07-13 17:11:26 +02:00
Richard Kuhnt e4cbb42e64 Show first 8 bytes of file in the hash check error message 2018-07-09 13:14:38 +02:00
Ross Smith II 5e8a0feb6e Change multiline strings to arrays (#2363) 2018-07-07 23:16:09 +02:00
Richard Kuhnt 8504338bc5 Show warning about SourceForge.net hash validation fails 2018-06-28 19:00:35 +02:00
Richard Kuhnt e8eaa3009a Fix installing manifest from UNC path (closes #2296) 2018-06-18 12:34:38 +02:00
Richard Kuhnt b29213d542 Fix "No hash in manifest." bug introduced in f8f9b75f 2018-06-14 18:37:23 +02:00
Richard Kuhnt f8f9b75f05 Option to skip hash validation and error message improvements (#2260)
* Add show_app() function for displaying `app/bucket@version`

* Add option to skip hash check on install/update

Allows users to install an app when the manifest provides an outdated hash

* Show filename instead of robocopy output when moving fails

* Add new_issue_msg() for nicer error messages (with link bucket repo)

- returns a message with a link to the buckets GitHub repository
- clicking on the link opens a new issues with a predefined title

* Use new_issue_msg() for errors while moving files

- this removes the unreadable robocopy error dumps

* Use new_issue_msg() error handling for check_hash()

* Show robocopy exit code
2018-06-14 18:30:05 +02:00
Ross Smith II 0391a5df49 Fix #2243 2018-05-05 08:36:48 -07:00
Richard Kuhnt 70f64c8f4b Refactor app() to parse_app() for better "bucket/app@version" handling (#2234)
It now parses these app names:
- php-bucket/php71-amqp@1.8.0
- php-bucket/php71-amqp
- php71-amqp@1.8.0
- php71-amqp@1.9.0-rc2

Removed:
- is_app_with_specific_version()
- get_app_with_version()
2018-05-04 21:51:43 +02:00
demesne da010e027d Add support for + symbols in version string (#1751)
To support oracle JDK 9 changes to the version numbering - [major.minor.security.patch+build].
2018-05-04 19:27:28 +02:00
Brandon Smith 0c808722a6 Remove env_ensure_home (#1967) 2018-05-04 19:22:59 +02:00
Vladimir Chebotarev 3e14f37b3f Enabled shimming of external applications (#2072)
* Enabled shimming of external applications

* Improved correctness of target binding at shimming point.

* Fixed '| % { return ... }' issue.
2018-05-04 19:17:23 +02:00
Steve Baker d056d0054f Disable fancy progress when in ISE (fixes #2171) (#2189)
Sometimes [console]::isoutputredirected becomes False when in ISE, so we
need an extra check to prevent the fancy progress bar trying to display
here.
2018-04-10 22:54:14 +02:00
Richard Kuhnt 12962acfa8 Use consistent User-Agent Header on all webrequests 2018-03-18 16:35:01 +01:00
Chawye Hsu 731247876d [Pending] Finally we add the code linting and its tests! (#2108)
* Lint: PSPossibleIncorrectComparisonWithNull

* Lint: PSUseLiteralInitializerForHashtable

* Lint: PSUseBOMForUnicodeEncodedFile

* Lint: PSUseApprovedVerbs

* Lint: PSAvoidGlobalVars

* Lint: PSAvoidUsingEmptyCatchBlock

* Lint: PSUseShouldProcessForStateChangingFunctions

* Lint helper: Add PSScriptAnalyzer integration for vscode

* Fix lint: PSUseBOMForUnicodeEncodedFile

* Tests: ignore previous TestResults.xml

* Tests: add PowerShell script linting into tests!

* Add PSScriptAnalyzer into appveyor ci

* Update Scoop-Linting.Tests.ps1
2018-03-13 14:26:55 +01:00
Vladimir Chebotarev a9277710ee Added exclusion for sourceforge. [#METR-21516] (#2109) 2018-03-10 23:37:14 +01:00
Chawye Hsu e1bb1e91d0 Lint: PSAvoidUsingCmdletAliases (#2075) 2018-03-03 18:41:19 +01:00
Richard Fussenegger b885ecf5ad Create sh shim (#1951)
* Create sh shim
* Fixed syntax error
* Shim CMD and PS only
* Added $arg to shims
* Added Script Switch to CMD
* Added JAR support and secured uninstall
2018-02-19 20:37:44 +01:00
Vladimir Chebotarev 81202f564f Added basic substitutions to bin::args attribute of the manifest. [#METR-21516] (#1986) 2018-02-06 18:02:23 +01:00
comp500 0a25a6ae0e Prevent directory creation from being output (#1999) 2018-02-02 18:31:22 +01:00
Ross Smith II 76a38e2c6f Add multi-line support to pre/post_install (fixes #1890) (#1980)
* Add multi-line support to pre/post_install (fixes #1890)

* iex (@($p.._install) -join "`r`n")
2018-01-26 17:26:11 +01:00
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