Commit Graph
864 Commits
Author SHA1 Message Date
b4e0ff16a6 fix(scoop-import): Use foreach instead of ForEach-Object for nullity check (#5034)
* Add nullity check and alread_in_local_bucket check

* update CHANGELOG

* Use foreach instead of ForEach-Object

* changelog

* update help

* refine the info and warning when adding an already-added bucket

* Update lib/buckets.ps1

Make warning clearer

Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com>

Co-authored-by: Rashil Gandhi <rashil2000@gmail.com>
Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com>
2022-07-07 10:49:53 +05:30
Issac Lin 1b5ee6f090 fix(decompress): Handle split RAR archives (#4994) 2022-06-24 22:15:54 +08:00
Rashil Gandhi c4d1b9c22f feat(scoop-import): Import a Scoop installation from JSON (#5014)
* feat(scoop-export): Export Scoop installation in JSON

* optimize

* yesss done

* complete

* Update CHANGELOG.md

* Add suggestions from code review

* fix CI
2022-06-24 11:12:01 +05:30
Rashil Gandhi 83d0fef02f fix(shortcuts): Fix missing parentheses (#5006)
* fix(shortcuts): Fix missing parentheses

* Update CHANGELOG.md
2022-06-21 18:31:20 +05:30
Rashil GandhiandHsiao-nan Cheung 847756bd1e refactor(scoop-search): Output PSObject, use API token (#4997)
* refactor(scoop-search): Output PSObject, use API token

* warn about parsing error

* Update CHANGELOG.md

* Update scoop-search.ps1

* Apply suggestions from code review

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

* separate lines

Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
2022-06-21 11:48:58 +05:30
86e3efbaf0 fix(shortcuts): Fix network drive shortcut creation (#4410)
Co-authored-by: Rashil Gandhi <rashil2000@gmail.com>
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
2022-06-21 14:12:08 +08:00
Chawye Hsu 666d474ee1 feat(scoop-update): Support scoop update scoop (#4992) 2022-06-20 14:43:28 +08:00
Hsiao-nan Cheung 0b38c91f1a fix(manifest): Fix bugs in 'Get-Manifest()' (#4986) 2022-06-14 14:25:53 +08:00
yi_XuandHsiao-nan Cheung 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 9e70dcad79 fix(get-manfest): Add back '$appPath' (#4981) 2022-06-10 22:31:43 +08:00
Daniel Villarreal 64364b40b4 fix(buckets): Make sure list_buckets return array (#4979) 2022-06-10 18:06:00 +08:00
Hsiao-nan Cheung ccd067b2b1 refactor(manifest): Rename 'Find-Manifest()' to 'Get-Manifest()' (#4966) 2022-06-07 09:31:30 +08:00
Chawye Hsu dd0f51426b feat(core): Add pre_uninstall and post_uninstall hooks (#4957) 2022-06-02 00:34:57 +08:00
Rosen Penev 2e52888b63 chore(core): Deprecate tls1 and tls1.1 (#4950) 2022-05-28 22:38:29 +08:00
Rashil GandhiandHsiao-nan Cheung 0f6d012d26 fix(shim): Add 'Get-CommandPath()' to find git (#4913)
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
2022-05-27 10:18:41 +08:00
Hsiao-nan Cheung d056d542db fix(core): Use Invoke-Command instead of Invoke-Expression (#4941) 2022-05-26 10:54:34 +08:00
ISHIKAWA Takayuki ad04dc9e6f fix(core): Allow to use '_' and '.' in bucket name (#4952) 2022-05-25 20:07:21 +08:00
L. Yeung bb5392b486 fix(shim): Remove character replacement in .cmd -> .ps1 shims (#4914) 2022-05-17 23:18:10 +08:00
Garcha Sprgchma f49f976618 fix(config): Load config file before initialization (#4932) 2022-05-17 23:02:56 +08:00
Issac LinandHsiao-nan Cheung b130e606cf fix(depends): Avoid digits in archive file extension (#4915)
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
2022-05-16 22:32:26 +08:00
Chawye Hsu c6fc2de306 fix(buckets): Don't write message OK before bucket is cloned (#4925) 2022-05-15 17:10:08 +08:00
Hsiao-nan Cheung a2600b1203 fix(buckets): Don't check remote URL of non-git buckets (#4923) 2022-05-15 15:49:38 +08:00
22365c2169 fix(bucket): Return empty list correctly in Get-LocalBucket (#4885)
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
Co-authored-by: Rashil Gandhi <rashil2000@gmail.com>
2022-04-27 17:37:18 +08:00
Hsiao-nan Cheung e6d03715fa fix(libs): Add missing 'json.ps1' dependency (#4884) 2022-04-23 01:44:03 +08:00
Hsiao-nan Cheung 6296822f1f perf(scoop): Load libs only once (#4839) 2022-04-21 21:34:26 +08:00
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
Kinshuk Bairagi d29e336417 fix(install): Fix Junction creation during installation inside containers (#4837) 2022-03-23 13:43:44 +08:00
Hsiao-nan Cheung 32de4c5714 refactor(bucket): Move 'Find-Manifest' and 'list_buckets' to 'buckets' (#4814) 2022-03-23 10:47:52 +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
45db5fb325 feat(install): Allow downloading from private repositories (#4254)
* added ability to use private github repositories

To do this, define a gh_api_token in the sccop config, if the repository is private it will use the apis to get and use the asset id

* corrected inherited linting error

* updated url to pull filename

* inlined get_headers and get-members functions and updated changelog

* simplified host headers and switched to checkver_token from: astelmachonak-nydig

* added ability to use private github repositories

To do this, define a gh_api_token in the sccop config, if the repository is private it will use the apis to get and use the asset id

* updated url to pull filename

* inlined get_headers and get-members functions and updated changelog

* simplified host headers and switched to checkver_token from: astelmachonak-nydig

* Update lib/core.ps1

Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com>

* Update lib/core.ps1

Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com>

* Fix RegEx

* Some tweaks

* optimize

Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com>
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
Co-authored-by: Rashil Gandhi <rashil2000@gmail.com>
2022-03-22 02:25:53 +05:30
Chawye HsuandHsiao-nan Cheung 4d36cbd90d fix(decompress): Fix tarball decompression (#4813)
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
2022-03-17 20:30:43 +08:00
e6c31d 635ae1715a fix(shim): Correctly quote $@ in sh->ps1 shims (#4809) 2022-03-14 08:58:30 +05:30
Hsiao-nan Cheung 5a795caca5 refactor(reset_aliases): Move core function of reset_aliases to scoop (#4794) 2022-03-11 18:10:04 +08:00
Chawye Hsu 5025661fa2 fix(shim): Manipulating shims with UTF8 encoding (#4791) 2022-03-10 15:55:15 +08:00
Hsiao-nan Cheung a66a086fb0 fix(installed): If no $global, check both local and global installed (#4798) 2022-03-10 13:05:49 +08:00
Hsiao-nan Cheung af26d86d02 refactor(relpath): Use $PSScriptRoot instead of relpath (#4793) 2022-03-10 00:30:40 +08:00
HUMORCE 63b858c41f style: Use correct casing for $PSScriptRoot (#4775) 2022-03-04 22:55:45 +08:00
Chawye Hsu 59328fc83c fix(config): Ensure manipulating config with UTF8 encoding (#4644) 2022-03-04 20:28:13 +08:00
Hsiao-nan Cheung 9024ee450c fix(shim): Fix shim when app path has white spaces (#4734) 2022-02-26 22:52:46 +08:00
Hsiao-nan Cheung e4580dd705 feat(scoop-shim): Add scoop shim to manipulate shims (#4736) 2022-02-26 22:32:54 +08:00
Xavier Young 4047d6962c perf(install): Avoid checking all files for unlink persisted data (#4681) 2022-02-25 10:08:07 +08:00
Rashil Gandhi b95ccbe14a refactor(scoop-config): Use underscores everywhere (#4745) 2022-02-21 10:01:20 +08:00
Rashil GandhiandHsiao-nan Cheung e1f569b01b feat(scoop-cat): Use bat to pretty-print JSON (#4742)
* feat(scoop-cat): Use `bat` to pretty-print JSON

* update changelog

* hide filename and line numbers

* Add `cat_style` config option

* use underscores

* Revert "use underscores"

This reverts commit 46524fc947.

* Apply suggestions from code review

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

Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
2022-02-17 22:57:18 +05:30
Hsiao-nan Cheung c41cb84404 feat(scoop-alter): Add scoop alter command to switch shim's target (#4727) 2022-02-13 20:42:55 +08:00
Hsiao-nan Cheung f24159c8f1 fix(test-running-process): Fix wrong output (#4731) 2022-02-11 15:09:46 +08:00
CrendKingandHsiao-nan Cheung 14854c3548 feat(config): Allow Scoop to ignore running processes during reset/uninstall/update (#4713)
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
2022-02-11 13:55:42 +08:00
jantariandHsiao-nan Cheung ef2bfeb3f2 fix(config): Fix set_config bugs (#3681)
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
2022-02-11 00:38:39 +08:00
Hsiao-nan Cheung c01960f283 fix(scoop-update): Enforce $null array (#4725) 2022-02-09 18:27:37 +08:00
Hsiao-nan Cheung 285ffd0322 fix(no-junction): Fix error when 'NO_JUNCTIONS' is been set (#4722) 2022-02-09 11:08:56 +08:00
Hsiao-nan Cheung ba970d5c42 fix(versions): Get current version from failed installation if possible (#4720) 2022-02-09 11:07:54 +08:00