86 Commits

Author SHA1 Message Date
Hsiao-nan Cheung
ebd8c036fa chore(release): Bump to version 0.5.3 (#6257)
* fix (decompress): `Expand-7zipArchive` only delete temp dir / `$extractDir` if it is empty (#6092)

Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>

* refactor(download): Move download-related functions to 'download.ps1' (#6095)

* fix(download): Fallback to default downloader when aria2 fails (#4292)

* fix(commands): Handling broken aliases (#6141)

* fix(shim): properly check `wslpath`/`cygpath` command first (#6114)

Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>

* fix(scoop-bucket): Add missing import for `no_junction` envs (#6181)

Signed-off-by: Chawye Hsu <su+git@chawyehsu.com>

* docs(chglog): Update to 0.5.3 (#6258)

* perf(shim): Update kiennq-shim to v3.1.2 (#6261)

* fix(decompress): Replace deprecated 7ZIPEXTRACT_USE_EXTERNAL config (#6327)

Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>

* fix(scoop-uninstall): Fix uninstaller does not gain Global state (#6430)

* global arg

* changelog

* refactor(Get-Manifest): Select actual source for manifest (#6142)

* first step

* Revert "first step"

This reverts commit c5907c3e25.

* refactor(Get-Manifest): Select actual source for installed manifest

* rework sub-commands, `scoop-depends` is NOT working at this stage

* URI manifest

* opt

* deprecated manifest

* source of manifests

* source of manifest pt2

- Mark URI(path/URL/UNC/etc.) query as standalone manifest
- Drop `installed` and `available update` items for [query] and [installed] are different sources.

* remove variable preventing I forget it

* scoop-info: fix source of manifest on bucket

* fix `scoop-depends`

* Fix Standalone and Source detection

* fix global install

* Fix scoop-cat, scoop-home

- Query for remote manifest

* scoop-list: info +deprecated

* manifest: Fix first selected manifest

* gramma..

* Fix 61b3259

* length

* fix(scoop-depends-tests): Mocking `USE_EXTERNAL_7ZIP` as $false (#6431)

* fix(scoop-depends-tests): Mocking `USE_EXTERNAL_7ZIP` as $false to avoding error when it is $true

* CHANGELOG

* feat(autoupdate): GitHub predefined hashes support (#6416)

* feat(autoupdate): predefined hash case for GitHub

- Remove `sha256:` prefix in `format_hash()`
- Add GitHub support in `get_hash_for_app()`

Close #6381

* doc(chglog): GitHub auto hash update

* fix(autoupdate): remove prefix only

* docs(CHANGELOG): Update to 0.5.3 (#6432)

* docs(CHANGELOG): Update to 0.5.3

* 6416

---------

Signed-off-by: Chawye Hsu <su+git@chawyehsu.com>
Co-authored-by: Olav Rønnestad Birkeland <6450056+o-l-a-v@users.noreply.github.com>
Co-authored-by: kiennq <kien.n.quang@gmail.com>
Co-authored-by: HUMORCE <humorce@outlook.com>
Co-authored-by: Ryan <sitiom@proton.me>
Co-authored-by: Chawye Hsu <su+git@chawyehsu.com>
Co-authored-by: Bassel Rachid <101208715+basselworkforce@users.noreply.github.com>
Co-authored-by: Wordless Echo <wordless@echo.moe>
2025-08-11 00:38:38 +00:00
L. Yeung
d8b3cc8a6c fix(checkver): Correct error messages (#6024) 2024-06-25 10:40:56 +08:00
Chawye Hsu
fa1b42bf28 fix(checkver): Correct variable 'regex' to 'regexp' (#5993) 2024-05-26 14:30:47 +08:00
Hsiao-nan Cheung
98cf8ae4da fix(autoupdate): Fix bug that 'WebClient' doesn't auto-extract 'gzip' (#5901) 2024-04-17 22:29:20 +08:00
Ercolino
1d0bd434ab builds(checkver): Read the private_host config variable (#5381) 2023-02-19 17:19:01 +08:00
Hsiao-nan Cheung
0f795733d8 refactor(unix): Remove unix.ps1 (#5235) 2022-11-11 01:10:52 +08:00
Hsiao-nan Cheung
9fda5428ae builds(checkver): Support XML default namespace (#5191) 2022-10-15 20:17:48 +08:00
Hsiao-nan Cheung
7f47f662e2 feat(subdir): Allow subdir in 'bucket' (#5119) 2022-09-28 11:22:33 +08:00
Hsiao-nan Cheung
04595b417a builds(checkver): Implement SourceForge checkver functionality (#5113)
Co-authored-by: Mathias Hermansson <mathias.hermansson@se.ibm.com>
2022-09-26 19:56:40 +08:00
Hsiao-nan Cheung
1985a05b59 refactor(path): Use 'Convert-Path()' instead of 'Resolve-Path()' (#5109) 2022-08-22 15:12:46 +08:00
Hsiao-nan Cheung
f945e20167 builds(checkver): Load page content before running 'script' (#5080) 2022-08-05 14:41:30 +08:00
Hsiao-nan Cheung
794f8a51aa builds(checkver): Exit routine earlier if error (#5025) 2022-07-01 22:22:49 +08:00
Rashil Gandhi
53f0e9a18c feat(checkver,auto-pr): Allow passing file path (#5019)
* feat(checkver,auto-pr): Allow passing file path

* changelog

* reuse $App parameter

* Update CHANGELOG.md
2022-07-01 12:12:52 +05:30
yi_Xu
6e25e440af feat(core): Add 'Get-Encoding()' function to fix missing webClient encoding (#4956)
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
2022-06-13 23:21:57 +08:00
Hsiao-nan Cheung
d056d542db fix(core): Use Invoke-Command instead of Invoke-Expression (#4941) 2022-05-26 10:54:34 +08:00
Hsiao-nan Cheung
6296822f1f perf(scoop): Load libs only once (#4839) 2022-04-21 21:34:26 +08:00
CrendKing
47c0f46d58 feat(checkver): Add option to throw error as exception (#4867) 2022-04-14 21:38:56 +05:30
Alex Stelmachonak
f441968983 feat(config): Try SCOOP_GH_TOKEN value first before gh_token value from config (#4842) 2022-03-26 23:42:36 +08:00
Alex Stelmachonak
ad3fc4f8fb feat(config): Rename checkver_token to gh_token and SCOOP_CHECKVER_TOKEN to SCOOP_GH_TOKEN (#4832)
* Properly filtering null input in dl function when private_hosts is not set in config

* Rename checkver_token to gh_token and SCOOP_CHECKVER_TOKEN to SCOOP_GH_TOKEN
2022-03-22 03:30:19 +05:30
HUMORCE
63b858c41f style: Use correct casing for $PSScriptRoot (#4775) 2022-03-04 22:55:45 +08:00
Hsiao-nan Cheung
00adc0d828 build(checkver): Fix output with '-Version' (#3774) 2022-01-08 16:09:29 +08:00
Hsiao-nan Cheung
c1d48e4853 Merge branch 'master' into develop 2021-12-06 14:49:52 +08:00
Rashil Gandhi
37a886947d fix(checkver): Use GitHub token from environment (#4557)
* Use GitHub token from environment

* consistent naming

* Update bin/checkver.ps1

Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>

Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
2021-12-03 21:01:51 +05:30
Pratik Chowdhury
4ec9eccdb4 feat(checkver): improve JSONPath extraction support (#4522) 2021-11-29 16:55:13 +08:00
Hsiao-nan Cheung
77d00d1771 refactor(versions): Refactor 'versions.ps1' (#3721)
Co-authored-by: Jakub Čábera <cabera.jakub@gmail.com>
Co-authored-by: David Duque <david.f.s.duque@tecnico.ulisboa.pt>
2021-11-14 00:44:58 +08:00
Hsiao-nan Cheung
30e7967a04 feat(autoupdate): add multiple URL/hash/extract_dir... support 2021-11-01 13:36:37 +08:00
Jakub Čábera
398ccea2ae feat(checkver): Present script property (#3900) 2020-04-20 15:29:10 +02:00
Hsiao-nan Cheung
5851eaf762 feat(autoupdate): add multi-urls aupport to 'autoupdate'
Also refactor
- 'update_manifest_with_new_version' -> 'Update-ManifestProperty'
- 'update_manifest_prop' -> 'PropertyHelper'
- 'autoupdate' -> 'Invoke-AutoUpdate'

Co-Authored-By: Jakub Čábera <cabera.jakub@gmail.com>

Signed-off-by: Hsiao-nan Cheung <niheaven@gmail.com>
2020-03-10 14:30:09 +08:00
Hsiao-nan Cheung
2a91ddb101 refactor(autoupdate): 'get_version_substitutions' -> 'Get-VersionSubstitution'
Signed-off-by: Hsiao-nan Cheung <niheaven@gmail.com>
2020-03-10 13:46:36 +08:00
Chawye Hsu
765706ce38 fix(autoupdate): Handle xml namespace in xpath mode (#3465) 2019-05-15 16:54:59 +02:00
Chawye Hsu
f6062855ba feat(manifest): xpath support in checkver and autoupdate (#3458) 2019-05-13 21:06:26 +02:00
Richard Kuhnt
4ec576a859 refactor(bin/libexec): remove config.ps1 imports 2019-05-10 12:16:36 +02:00
Emil Sundin
7fa8a69b91 checkver.ps1: Fix example parameters (#3413) 2019-04-29 15:03:40 +02:00
Richard Kuhnt
7782249199 [bin] Remove path aliases
Co-authored-by: Jakub Čábera <cabera.jakub@gmail.com>
2019-04-28 11:03:30 +02:00
Jakub Čábera
56d54d1c91 feature: Prepare extraction of main bucket (#3060)
- Add preparing changes for extracting the main bucket to https://github.com/scoopinstaller/scoop-main
- Download main bucket on installation
- Add check_main_bucket function
- Add main bucket to buckets.json
- Add docker-compose.yml with default debugging image
- Remove old TODOs
- Refactor bucketdir -> Find-BucketDirectory
- Remove redundant .vscode settings
2019-04-24 21:08:53 +02:00
Chawye Hsu
e5addb9487 Refactor: Tweak SecurityProtocol usage (#3065)
reopen #3051 
Now the code logic: if `SecurityProtocol` is `SystemDefault`, don't change, else change it to `Tls1.2,Tls1.1,Tls1.0`,  never support `Ssl3` anymore.
2019-02-01 18:17:40 +01:00
Ross Smith II
44085256d5 checkver.ps1: Add -v option (#2761) 2018-11-12 10:15:29 +01:00
Brandon Smith
2e2633e964 GitHub checkver case-insensitive version check 2018-11-11 14:40:08 -05:00
Jakub Čábera
63deba02be [Checkver] Support skipping up to date manifests (#2624)
- Lint file a bit
- Add synopsis
- Add default parameters
- Replace shortcutted cmdlets / parameters
- Add schema validation for VSCode
- Add recommended VSCode extensions
- Move everything from scoop-sublime-project into settings.json
- Small progress on #2609 and making developers life easier
2018-10-03 15:42:11 +02:00
Richard Kuhnt
8feb3867a7 checkver: add 'useragent' property 2018-09-18 19:31:23 +02:00
Richard Kuhnt
72754036a2 checkver: remove old commented code 2018-09-18 19:30:46 +02:00
Richard Kuhnt
76fdb6b74c checkver: add 'jsonpath' alias for 'jp' 2018-09-18 19:29:48 +02:00
Richard Kuhnt
468649c88d checkver: Add 're' alias 'regex' 2018-09-18 18:56:40 +02:00
Mathias Hermansson
2a2c2059e0 checkver: Resolve issue on Powershell >6.1.0 (#2592)
* Fixes #2591
2018-09-16 16:13:48 +02:00
Richard Kuhnt
607ac9ca7c checkver: Allow using the current version in checkver URL 2018-09-14 18:33:42 +02:00
Richard Kuhnt
12962acfa8 Use consistent User-Agent Header on all webrequests 2018-03-18 16:35:01 +01:00
Steve Baker
31075f6200 Clean up some error messages (#2032)
Removes extra 'ERROR' in text where the `error` method is used.
Converts some `write-host "error message"` to use the `error` method
Converts some `write-host "error message"; exit 1` to use the `abort`
method.
2018-03-12 18:32:57 +01:00
Chawye Hsu
e1bb1e91d0 Lint: PSAvoidUsingCmdletAliases (#2075) 2018-03-03 18:41:19 +01:00
Mathias Hermansson
42ed53b0bf Add replace for regexp, allow regexp and replace for jsonpaths (#1709)
* Add replace for regexp, allow regexp and replace for jsonpaths

* Remove extra space from if(!$ver)

* Check if replace property is a string instead of replace()-function
2017-09-28 19:38:22 +02:00
Ilja Nosik
ecc0e44969 Use the correct Regex.Matches method (#1707)
References #1704.
2017-09-14 09:43:13 +02:00