Commit Graph
196 Commits
Author SHA1 Message Date
星 3e55a70971 docs(readme): Improve installation instructions (#3600) 2019-09-02 13:38:30 +02:00
Richard Kuhnt 79f8538b57 fix(auto-pr): hard reset bucket after running 2019-08-02 17:20:43 +02:00
Richard Kuhnt 7decfd4c10 fix(auto-pr): Fix git status detection
- Reverts: https://github.com/lukesampson/scoop/pull/3026

See https://git-scm.com/docs/git-status#_short_format
If the file was modified it shows ` M` and `M ` means it's staged.
 Files only containing whitespaces don't get staged by `git add` and we only care about actually staged files.

Since the order of the `git status`-output is not sorted anymore the `Select-Object -First 1` is useless and it now uses `Where-Object` to find the correct line.
2019-08-02 13:18:26 +02:00
Jakub Čábera e12a7da593 fix(bin): Checkhashes downloading twice when architecture properties does hot have url property (#3479) 2019-06-24 14:26:35 +02:00
Jakub Čábera 1836edba88 fix(checkhashes): Do not call scoop directly (#3527)
* fix(checkhashes): Do not call scoop directly

https://github.com/Ash258/GithubActionsBucketForTesting/runs/153802813

* Also fix build
2019-06-22 12:42:05 -07: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
Richard Kuhnt 8beffc4329 Sync renaming changes to develop 2019-05-06 18:19:57 +02:00
Richard Kuhnt f1f86494d7 Incorporate organization and bucket renaming
See: https://github.com/lukesampson/scoop/issues/3437
2019-05-06 18:18:16 +02:00
Richard Kuhnt 466c286ecf Sync #3419 hotfix to develop 2019-04-30 10:55:32 +02:00
Chawye Hsu fd5d2fec37 fix: force to add new main bucket (#3419)
* fix: force to add new main bucket

* fix(git): use internal get config function
2019-04-30 10:41:35 +02:00
Emil Sundin 7fa8a69b91 checkver.ps1: Fix example parameters (#3413) 2019-04-29 15:03:40 +02:00
Hsiao-nan Cheung fe1a91e699 PowerShell: Update requirement to version 5 or greater (#3330) 2019-04-28 18:37:21 +02:00
Richard KuhntandJakub Čábera 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
Jakub Čábera 4463514948 [buckets] Optimize buckets function (#3341)
* Optimize buckets function
* Use Verb-Noun naming
* Add Show-DeprecatedWarning function to core
2019-04-21 13:02:19 +02:00
Jakub Čábera 631276fd5b Convert sourceforge urls to use downloads mirror (#3340)
#2199

Also fix small typo in checkhashes
2019-04-20 21:36:00 +02:00
Jakub Čábera d8d1400bf0 uninstall: Add support for soft/purge uninstalling of scoop itself (#2781) 2019-03-25 13:55:49 +01:00
Jakub Čábera ad01bff667 Add bin\checkhashes.ps1 (#2766)
- Checks if all URLs inside manifest have correct hashes
2019-03-11 10:39:37 +01:00
Hsiao-nan Cheung 5f91682a79 decompress.ps1: Refactored (w/ install.ps1, core.ps1) (edited) (#3169)
* decompress.ps1: Refactored (w/ install.ps1, core.ps1)

* fix install.ps1
2019-03-07 22:14:06 +01:00
Jakub Čábera 8650dd4a74 [auto-pr] Add -SkipUpdated parameter (#3168) 2019-02-24 17:22:33 +01:00
Jakub Čábera 26e778a63a [auto-pr] add -App parameter (#3157) 2019-02-22 18:44:36 +01:00
Richard Kuhnt 38e346d380 install.ps1: replace raw.github.com with raw.githubusercontent.com
closes #3142
2019-02-19 22:08:11 +01:00
Chawye Hsu e3c248b77a scoop.ps1: import config.ps1 (#3115)
Make sure configs have been loaded every time when user run `scoop` command and sub-command.
2019-02-12 19:20:32 +01:00
Richard Kuhnt 7ba87d5aea bin\install.ps1: rename unzip to extract_zip (closes #3074)
- Fix bug introduced with https://github.com/lukesampson/scoop/commit/39136fc6fedcce91255d082706655bb3a111903a
2019-02-03 17:44:31 +01: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
Jakub Čábera 0621db20ca [auto-pr] Use regex instead of Starts|EndsWith (#3026)
* [auto-pr] Use regex instead of Starts|EndsWith

On my end result of `hub status --porcelain -uno` is prefixed with space on left for some reason, 

![Auto-PR](https://i.imgur.com/3FKQZOg.png)

Alternatively $status could be Trimed before condition

![Trimed](https://i.imgur.com/1DRUlv4.png)

* Use x20
2019-01-23 20:16:13 +01:00
Jakub Čábera b654eb05c9 Describe.ps1: Add parameter validation, format (#2993)
* Add synopsis
* Add native parameter validation
* Some renames
* Formatting
2019-01-16 18:39:42 +01:00
Jakub Čábera c3195915ab auto-pr.ps1: Fix table syntax, allow help without hub, format (#2933)
* Use Markdown format in commit message
* Table produced was wrong formatted due to syntax mismatch
  * ![wrong syntax](https://i.imgur.com/CgoXlvo.png)
* Allow -Help to be called without hub installed
* Add Synopsis
* Respect PascalCase in Parameters
* Add default values for parameters and ValidateScript
2019-01-14 16:06:26 +01:00
Jun Ueoka f23b2bbde5 install.ps1: Fix lastupdate config value after scoop installation (#2919)
Related to #2906
2018-12-20 18:46:09 +01:00
Jun Ueoka 79a0d3b768 core/update: Scoop updates itself automatically for the first time after fresh install (#2907)
Fixes #2906
2018-12-16 13:16:48 +01:00
Jakub Čábera 44a2194c87 [checkurls] Add SkipValid Parameter (#2845)
* Format first

* Add SkipValid parameter

* Remove junk comment
2018-12-05 16:15:46 -08:00
Jakub Čábera c830cf3253 missingcheckver.ps1: fixes and formatting (#2785)
- Fix bug presented in https://github.com/lukesampson/scoop/commit/2a2c2059e00e3cca9fd87d1cacf0352bd39cfb0e#diff-67e44d47bfea08ffe769c6adc77f7215R22
- Missed $ before the bracket
- Add `App` parameter
- Format
2018-11-19 18:59:01 +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
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
Richard Kuhnt a3cae34b13 Fix ExecutionPolicy regression introduced with #2703 2018-10-27 22:48:31 +02:00
Ben Dang 1d27f264b7 Fix the check for ExecutionPolicy scope (#2703)
Under certain terminals like cmder, `Get-ExecutionPolicy` will show the scope of `Process`.  This fix explicitly checks the scope of `CurrentUser`.

Signed-off-by: Ben Dang <me@bdang.it>
2018-10-25 17:45:14 +02: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 e52c24c94e Add .NET 4.5 check to scoop install script (See #2487) 2018-08-20 15:07:18 +02:00
xeijin 0d4312370b Reset $errorActionPreference to original value (#2489)
For AppVeyor CI the `$errorActionPreference` setting is persisting after I install scoop, subsequently causing issues with installing scoop apps (e.g. failing the whole build because an installer executable outputs what looks like an error).
2018-08-11 20:47:28 +02:00
Ross Smith II 091c60c5fa auto-pr: Change commit message to: app: Update ... 2018-06-23 07:28:33 -07:00
Ross Smith II c7c9de46dc Change commit message to: $app: update to x.y (#2324)
Change commit message to: $app: update to x.y
2018-06-22 13:14:25 +02:00