38 Commits

Author SHA1 Message Date
Hsiao-nan Cheung
fa06e921c2 refactor(shim): Remove CS shim codebase (#5903) 2024-04-18 19:09:08 +08:00
Hsiao-nan Cheung
9770c86598 fix(shim): Update kiennq-shim to v3.1.1 (#5847) 2024-03-25 18:07:31 +08:00
Hsiao-nan Cheung
5153d7375b perf(shim): Update kiennq-shim to v3.1 (#5841) 2024-03-22 19:06:27 +08:00
Hsiao-nan Cheung
5354ab5d16 builds(supporting): Update Json to 13.0.3, Json.Schema to 3.0.15 (#5835) 2024-03-21 13:30:51 +08:00
Suhas
90766f9315 fix(shim): Allow GUI applications to attach to the shell's console when launched using the GUI shim (#5721) 2024-03-20 22:16:10 +08:00
Hsiao-nan Cheung
24301ac028 refactor(hash): Use 'Get-FileHash()' directly (#5177) 2022-10-13 19:15:32 +08:00
Hsiao-nan Cheung
6ae0d5eb8f builds(json): Update Newtonsoft.Json.Schema to 3.0.15-beta2 (#5053) 2022-07-19 15:01:28 +08:00
Hsiao-nan Cheung
76c3bcd70c builds(json): Update Newton.Json to 13.0.1 (#5026) 2022-07-01 22:29:48 +08:00
Rashil Gandhi
6629331799 feat(scoop-status): Check bucket status, improve output (#5011)
* feat(scoop-status): Check bucket status, improve output

* Update CHANGELOG.md
2022-06-22 15:40:24 +05:30
Hsiao-nan Cheung
d056d542db fix(core): Use Invoke-Command instead of Invoke-Expression (#4941) 2022-05-26 10:54:34 +08:00
Krisztián Csordás
7ee74a0638 fix(scoop-list): Fix format specifier for minutes in date format (#4880) 2022-04-19 17:48:59 +08:00
kiennq
22c7d58e33 fix(shim-kiennq): Update shimexe file name (#4850) 2022-04-01 23:45:18 +08:00
Hsiao-nan Cheung
e4580dd705 feat(scoop-shim): Add scoop shim to manipulate shims (#4736) 2022-02-26 22:32:54 +08:00
Rashil Gandhi
b69bdbd6d2 feat(scoop-list): Show last-updated time (#4723) 2022-02-09 11:08:24 +08:00
Hsiao-nan Cheung
d021438b20 Revert "feat(shim): Add another alternative shim written in rust (#4229)" (#4553)
This reverts commit 5ad8c76dd7.

Co-authored-by: Zoritle <66551926+zoritle@users.noreply.github.com>
2021-12-01 08:46:26 -08:00
Hsiao-nan Cheung
ef3bf14547 feat(supporting): Update Json to 12.0.3, Json.Schema to 3.0.14 (#3352) 2021-11-13 21:42:00 +08:00
Zoritle
5ad8c76dd7 feat(shim): Add another alternative shim written in rust (#4229)
* Add alt-shim support via scoop config shim rshim

* update to new version
2021-11-11 00:05:18 +08:00
Mehmet Ümit
3d67b7d37c Fixed trailing whitespace issue (#4307) 2021-03-30 19:40:48 -07:00
Ross Smith II
227de6cfb8 Fix typo in Makefile's comments 2020-10-25 10:43:08 -07:00
Ross Smith II
0948824ec7 Fix typo 2020-10-23 11:11:35 -07:00
Ross Smith II
7db0fe9382 Add alt-shim support (fixes #3634) (#3998)
* Add alt-shim support via scoop config shim 71|kiennq

* Add exes for alt-shim support

* Bump kiennq's shim.exe to v2.2

* s/true/$true/

* Upgrade kiennq's shim to version 2.2.1

* Tweak Makefile to be less chatty

* Fix Makefile to correctly report bump
2020-10-22 22:39:22 -07:00
Richard Kuhnt
7bedd449b5 validator: Improve error reporting, add support for multiple files
- Display clickable links to directly jump to error line
- Display invalid JSON path
- Dynamic error nesting
- Support for validation multiple files 
  e.g. `validator.exe .\schema.json .\bucket\*.json`
  or `validator.exe .\schema.json .\manifest1.json .\manifest2.json`
2019-02-24 13:20:44 +01:00
Richard Kuhnt
23e44f6ee3 validator/shimexe: Add -Fast Switch to build scripts 2019-02-24 13:20:44 +01:00
Hsiao-nan Cheung
03ebcc2984 supporting: Update Newtonsoft.Json to 11.0.2, Newtonsoft.Json.Schema to 3.0.10 (#3043)
- Update supporting\validator\bin\Newtonsoft.Json to 11.0.2
  - **HIGHLIGHT**: support for regex operator in JSON Paths
  - Latest Newtonsoft.Json version is 12.0.1, which has some compatibility issues with Json.Schema 3.0.10 and PowerShell Core 6.1.12 (On my PC)
- Update supporting\validator\bin\Newtonsoft.Json.Schema to 3.0.10
- Use .NET 4.5 instead of .NET 4.0, since Scoop's requirements is [.NET Framework 4.5+](https://github.com/lukesampson/scoop#requirements)
- Modify `json_path()` to escape `$version` substitutions when `$jsonpath` has regex

**EXAMPLE OF JPATH REGEX**
```json
"checkver": {
    "url": "https://dist.nuget.org/index.json",
    "jp": "$..versions[?(@.displayName =~ /.*recommended.*/)].version"
}
```
2019-02-16 22:20:37 +01:00
Vladimir Chebotarev
2d9f964068 Enabled applications which require elevated privileges. (#2053) 2018-03-13 13:07:20 +01:00
Vladimir Chebotarev
a8b181071a Enabled wide characters forwarding in shims. (#2106) 2018-03-12 18:12:48 +01:00
Richard Kuhnt
f0a15886f2 Update validator.exe and shim.exe (#2024)
* Update Newtonsoft.Json and improve validator build process

* Improve shimexe build process and create deterministic builds
2018-02-20 18:48:02 +01:00
Richard Kuhnt
2ae8be3d14 Fix newline in validator.csproj 2017-09-10 18:04:03 +02:00
Richard Kuhnt
99820e8ce3 Update json validator
* Update Newtonsoft.Json to version 10.0.3
* Update Newtonsoft.Json.Schema to version 3.0.3
* Add Microsoft.Net.Compiles dependency
* Improve build/update process
* Use deterministic builds for Scoop.Validator.dll and validator.exe
2017-09-10 18:04:03 +02:00
Richard Kuhnt
1feda7a088 [WIP] Validate manifests against JSON Schema in CI Tests (#1331)
* Add suggest and psmodule to schema.json
* Fix required fields in schema.json
* Improve url validation in schema.json
* Add validator.exe as a single file validation tool
* Add Scoop.Validator Lib for use in Manifest-Tests
* Add buildscript for Scoop.Validator and validator.exe
* Exclude .dll and packages folder from Project-Tests
* Validate manifests against JSON Schema in CI Tests
* Complete JSON Schema Validation
* Dlls shouldn't be treated as text
2017-02-17 19:00:56 +01:00
Roy Ivy III
6d9bca805f whitespace cleanup
* makes changes to almost all main repo files to be in accordance with .editorconfig
* some files in "test\fixtures\..." were left alone to avoid breaking tests
* NOTE: whitespace changes *only* (`git diff -b` shows no changes)
2015-08-17 22:54:43 -05:00
Luke Sampson
de2cf3f5dd shims should now pass arguments exactly as they receive them, without stripping '\' (fixes #382) 2015-06-03 22:31:29 +10:00
Luke Sampson
24c64c9161 fix shimexe argument passing 2014-02-20 22:47:53 +10:00
Luke Sampson
1cece993f4 fix shimexe not passing arguments 2014-02-20 22:36:27 +10:00
Luke Sampson
3dd2928218 use win32 functions for shimexe 2014-01-26 13:23:50 +10:00
Luke Sampson
da0b109755 shimexe: for programs that exit quickly, make sure any remaining output on stderr or stdout is pumped to the right output stream 2014-01-12 16:22:03 +10:00
Luke Sampson
3b90306472 allow alias and arguments for shims 2014-01-12 15:46:59 +10:00
Luke Sampson
5c52166fcd add .exe shims for programs that only look for .exes (e.g. tar calling gzip) 2014-01-05 16:25:16 +10:00