Commit Graph
615 Commits
Author SHA1 Message Date
Richard Kuhnt 803525a866 install: fix fosshub downloads with aria2c 2018-09-23 13:19:48 +02:00
Richard Kuhnt 3453487ed6 autoupdate: add 'regex' alias for 'find' 2018-09-18 19:30:18 +02:00
Richard Kuhnt 76fdb6b74c checkver: add 'jsonpath' alias for 'jp' 2018-09-18 19:29:48 +02:00
yukihane 5f0ca5df6a install: ignore url fragment for PowerShell Core 6.1.0 (#2602) 2018-09-17 00:11:55 +02:00
Richard Kuhnt f2d9f0d79f getopt: skip if arg is $null 2018-09-15 12:40:12 +02:00
Richard Kuhnt 5f0c8cfb0a getopt: skip arg if it's decimal (closes #2598) 2018-09-15 12:22:47 +02:00
Richard Kuhnt fb58e92c13 json: catch JsonReaderException 2018-09-14 18:32:31 +02:00
Richard Kuhnt e82587dfc4 buckets: change wording of new_issue_msg() 2018-09-10 13:21:25 +02:00
Richard Kuhnt 98afb99990 autoupdate: Fix base64 hash extraction 2018-09-10 03:18:19 +02:00
Richard Kuhnt c9539b6575 autoupdate: linter fix 2018-09-09 21:19:45 +02:00
Richard Kuhnt 04c9ddeb6d autoupdate: Convert base64 encoded hash values 2018-09-09 16:57:47 +02:00
Leon Yu 9bc7d5f8b3 Fix .ps1 shim parsing logic due to prior PR (#2564)
Due to my prior PR #2562 which changed the content of .ps1 shims, the code that attempts to warn about shims being overwritten no longer detects app name correctly. This is to correct that.
2018-09-07 16:25:37 +02:00
Richard Kuhnt 19373f4b9b Add metalink support for aria2c (#2560)
This should fix #2480 and fix https://github.com/lukesampson/scoop-extras/issues/1126
2018-09-06 11:57:09 +02:00
Leon Yu 0f4a41a4ec core: Make shim support PowerShell 2.0 (#2562)
PowerShell on Windows comes with both 2.0 and 3.0+ installed. This is a feature inherited from .NET -- PowerShell 2.0 is based on .NET 2.0 which is installed side-by-side with .NET 3.0-4.7. It is possible to run PowerShell 2.0 by invoking the command powershell.exe -Version 2.0 -NoProfile.

This is a fairly useful feature for PowerShell scripters, as one can use PowerShell 2.0 to check for the basic compatibility of scripts without having to run a VM. As such, a user can have scoop apps installed via PowerShell 3.0+, and then launch PowerShell 2.0 for casual testing.

Currently the scoop shims are broken in PowerShell 2.0, as they use $PSScriptRoot. In addition, since PowerShell picks up {command}.ps1 before {command}.exe when looking for {command}, this makes using scoop-installed app difficult in PowerShell 2.0.

While Scoop command itself doesn't support PowerShell 2.0, and there is no point in doing so, it is fairly easy to make the shims support PowerShell 2.0, so this is what this patch does.
2018-09-05 12:14:22 +02:00
Richard Kuhnt f374924ab6 install/core: add function for extracting magic bytes 2018-09-04 14:34:29 +02:00
Richard Kuhnt 2ad547477b autoupdate: Fix metalink hash extraction 2018-09-04 14:21:39 +02:00
Richard Kuhnt fc938db7b1 Save install.json as UTF-8 2018-09-02 16:32:47 +02:00
Grigory f46131a798 Fix PowerShell core crash due to '-Encoding byte' being replaced with '-AsByteStream' (#2554) 2018-09-02 12:27:21 +02:00
Chawye Hsu 7697ba4ba8 feature(scoop-info): support url manifest (#2538) 2018-08-27 16:51:18 +02:00
Richard Kuhnt 1a2598bc30 Fix condition for persist_permission() again 2018-08-27 14:15:58 +02:00
Richard Kuhnt eb7b7cbf4f Fix condition for persist_permission() 2018-08-27 11:26:05 +02:00
Retia-Adolf fc1c2a6ac3 Set file write permission to global persist dir (#2524) 2018-08-26 15:37:42 +02:00
Richard Kuhnt ecf627c3b8 Allow simple metalink and meta4 hash extraction 2018-08-14 19:00:58 +02:00
Richard Kuhnt 2224da82f8 Allow extraction of nupkg files with 7zip 2018-08-09 19:23:06 +02:00
x-kej 77a2769ace Catch unzip failures from bad file names (like ../file.exe) (#2472) 2018-08-08 20:36:28 +02:00
Mathias Hermansson cd33a9e31e Change sf regex not to break some manifests. Fixes #2474 (#2476) 2018-08-08 20:34:54 +02:00
Richard Kuhnt f3ddf0c0f8 Allow $dir, $original_dir and $persist_dir substitutions for shortcuts 2018-08-08 20:13:03 +02:00
Richard Kuhnt bf54a978a1 Add option to indent debug output 2018-08-08 11:48:58 +02:00
Richard Kuhnt 55ce0c0b0c Check if 7zip installed via Scoop instead of using 7z.exe from PATH 2018-08-08 11:06:35 +02:00
Richard Kuhnt 0f4640168d Refactor aria2_path() to file_path() 2018-08-08 11:06:20 +02:00
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 23ae5e348e Add default value to get_config() 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 f901911132 Fix global aria2 detection 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 ba94d2bc2e Reshape Sourceforge.net URLs to avoid redirections 2018-08-07 20:11:38 +02:00
Richard Kuhnt b463b15b8d Add aria2 helper functions 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
Richard Kuhnt e8af15cc06 Store last update time as String (fixes #2239)
Prevents problems with PowerShell 5 and 6 using different methods to store dates in JSON
2018-08-07 19:56:43 +02:00
Chawye Hsu 3201c5714d Support persisting files without a file extension (#2408) 2018-08-05 11:15:31 +02:00