Jakub Čábera
614b3279ba
[autoupdate] base64 hash extraction fix ( #2852 )
2018-12-06 20:54:47 +01:00
Jakub Čábera
a20b2e99e2
Fix empty bucket name ( #2827 )
2018-12-01 07:08:19 -08:00
Jakub Čábera
87df537f8c
[json] Apparently I cannot use variable ( #2768 )
...
json.ps1: Fix a variable Problem introduced with the last changes
2018-11-14 05:41:04 +01:00
Jakub Čábera
3e1649553d
formatjson.ps1: Format single value Arrays into String ( #2642 )
...
- Automatically convert single value arrays and recursively normalize PSObjects values
- Add tests
- Add .yml .editorconfig settings
2018-11-13 20:49:20 +01:00
Pakorn Vongseela
f284dba5d7
install.ps1: Fix persisting bug with already existing folder ( #2732 )
...
closes https://github.com/lukesampson/scoop-extras/issues/1300
closes https://github.com/lukesampson/scoop-extras/issues/1370
closes #2724
closes #2671
2018-11-12 10:26:16 +01:00
krokofant
5a51098df5
Fix #2745 Workaround Microsofts syntactic PSModulePath ( #2748 )
...
* Workaround Microsofts syntactic PSModulePath
The default user PSModulePath is "$env:USERPROFILE\Documents\WindowsPowerShell\Modules". I the user env variable PSModulePath actually exists the default path is omitted - so we need to explicitly add it.
2018-11-08 19:35:02 +01:00
Ishan Arora
98e0721bb9
core.ps1: Fixed sh shims (path escaping in MSYS2 and Git bash) ( #2742 )
...
#2741 broke sh shims in MSYS2 environments (includes Git bash).
2018-11-05 20:27:55 +01:00
Ishan Arora
ea1c3e5446
core.ps1: Fixed sh shims ( #2741 )
...
Fixes #2740 .
Adding .exe suffix to cmd is needed in WSL.
Removing MSYS' slash-escaping from //C is needed in WSL, Cygwin, or anywhere outside MSYS (or Git Bash). Doesn't break MSYS after .exe suffix is added.
See also #1949 , #1951
2018-11-05 18:07:10 +01:00
Richard Kuhnt
1eb2609db5
apps_in_bucket(): Use $_.Name on gci result ( closes #2707 )
2018-10-29 15:33:01 +01:00
Richard Kuhnt
310096e238
autoupdate: improve base64 hash detection
2018-10-01 16:35:47 +02:00
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