Rashil Gandhi
f94ee533fa
Add function to detect CI environment
2022-11-13 20:13:12 +05:30
Hsiao-nan Cheung
0f795733d8
refactor(unix): Remove unix.ps1 ( #5235 )
2022-11-11 01:10:52 +08:00
Hsiao-nan Cheung
e4f9734b88
fix(shim): Exit if shim creating failed 'cause no git ( #5225 )
2022-10-28 13:17:53 +08:00
Rashil Gandhi
7a599f062f
feat(install): Add support for ARM64 architecture ( #5154 )
...
* Initial support for ARMv8
* Add fallback mechanism
* Update changelog
* Update useragent
* Some typo and format changes
* Use `env:ProgramFiles(Arm)` to detect ARM64
- Move `default_architecture()` to `core.ps1`
* Rename 'ensure_architecture()' and 'default_architecture()'
* Refactor 'supports_architecture()' to 'Get-SupportedArchitecture()'
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com >
2022-09-28 04:19:03 +05:30
Jules
122fdc1a1c
refactor(download): Rename dl() to Invoke-Download() ( #5143 )
2022-09-16 10:36: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
08ecdd16a8
fix(config): Change config option to snake_case in file and SCREAMING_CASE in code ( #5116 )
2022-08-21 19:51:31 +08:00
Hsiao-nan Cheung
a9e5a974dd
feat(scoop-config): Allow 'hold_update_until' be set manually ( #5100 )
...
Co-authored-by: Richard Kuhnt <r15ch13+git@gmail.com >
2022-08-16 10:03:25 +08:00
yi_Xu
ec04dd07bc
feat(scoop-(un)hold): Support scoop (un)hold scoop ( #5089 )
...
* feat(scoop-config): Add new configuration of `SCOOP_HOLD`
Allow to disable Scoop itself updates.
This configuration have the same function with 'scoop (un)hold scoop'.
* perf(scoop-update): Separate `update_bucket` from `update_scoop`
* perf(scoop-(un)hold): remove big overarching if-statement
* perf(scoop-config): use `SCOOP_HOLD_DAYS` instead of `SCOOP_HOLD`
* perf(scoop-config): Update forward Compatible code
* Update libexec/scoop-config.ps1
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com >
* Update libexec/scoop-hold.ps1
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com >
* Update libexec/scoop-unhold.ps1
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com >
* Update libexec/scoop-update.ps1
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com >
* perf(scoop-update): Update last_scoop_update
* docs(changelog): update changelog to add feature
* fix(changelog): fix changelog typo
* Update libexec/scoop-update.ps1
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com >
* Update libexec/scoop-config.ps1
Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com >
* Update libexec/scoop-update.ps1
Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com >
* refactor: Use `lastUpdate` instead of `lastupdate`
Consistent with scoop-export.
* fix(install): make config lastUpdate silent
* refactor(scoop-update): Remove `SCOOP_HOLD`
* fix: update changelog
remove none used code.
* Update lib/core.ps1
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com >
* Update libexec/scoop-update.ps1
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com >
* Update libexec/scoop-update.ps1
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com >
* Update libexec/scoop-update.ps1
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com >
* Update libexec/scoop-update.ps1
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com >
* Update libexec/scoop-update.ps1
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com >
* Update libexec/scoop-update.ps1
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com >
* Update libexec/scoop-update.ps1
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com >
* Update libexec/scoop-update.ps1
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com >
* Update libexec/scoop-update.ps1
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com >
* perf(scoop-update): Handle the judgment in try-catch
* fix(scoop-update): Remove 'update_until' when update scoop itself
* Update lib/core.ps1
Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com >
* docs(CHANGELOG): Update changelog
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com >
Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com >
2022-08-11 14:50:40 +05:30
Hsiao-nan Cheung
5b5daa5ee9
fix(installed): Use 'System.Nullable<bool>' for param 'global' ( #5088 )
2022-08-07 02:57:12 +08:00
L. Yeung
34da8507a8
feat(core): Create no window by default in Invoke-ExternalCommand ( #5066 )
2022-07-26 00:46:08 +08:00
L. Yeung
288aee9ee9
feat(core): Improve argument concatenation in Invoke-ExternalCommand ( #5065 )
2022-07-25 23:44:26 +08:00
L. Yeung
eac520a4d8
fix(core): Avoid deadlock in Invoke-ExternalCommand ( #5064 )
2022-07-25 23:43:08 +08:00
Chawye Hsu
666d474ee1
feat(scoop-update): Support scoop update scoop ( #4992 )
2022-06-20 14:43:28 +08:00
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
ccd067b2b1
refactor(manifest): Rename 'Find-Manifest()' to 'Get-Manifest()' ( #4966 )
2022-06-07 09:31:30 +08:00
Rosen Penev
2e52888b63
chore(core): Deprecate tls1 and tls1.1 ( #4950 )
2022-05-28 22:38:29 +08:00
Rashil Gandhi
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
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
L. Yeung
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
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
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
Thad Smith
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
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
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
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
jantari
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
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
Rashil Gandhi
f559c813df
refactor(shim): Use -file instead of -command in ps1 script shims ( #4721 )
...
* refactor(shim): Use `-file` instead of `-command` in ps1 script shims
* update changelog
* Update CHANGELOG.md
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com >
2022-02-08 10:42:20 +05:30
Rashil Gandhi
8c02776c6c
refactor(git): Remove unused functions ( #4703 )
...
* refactor(git): Remove unused functions
* unused imports
2022-02-01 11:37:44 +00:00
Hsiao-nan Cheung
158c0fd4d0
fix(install-status): Correctly handle failed installation of apps ( #4676 )
2022-01-25 21:58:03 +08:00
Hsiao-nan Cheung
d71fe82f9d
fix(installed): Fix 'core/installed' that mark failed app as 'installed' ( #4650 )
2022-01-12 20:46:44 +08:00
Hsiao-nan Cheung
5b87c99aa8
refactor(deps): Rewrite 'depends.ps1' ( #4638 )
2022-01-12 11:10:55 +08:00
ipcjs
30f57aee6a
fix(shim): Fix sh shim error in WSL ( #4637 )
2022-01-09 22:58:52 +08:00
Hsiao-nan Cheung
4f5ecd029e
fix(config): Allow scoop config use Unicode characters ( #4631 )
2022-01-08 00:23:07 +08:00
Hsiao-nan Cheung
00f7859b3f
fix(shim): Fix PS1 shim error when in different drive in PS7 ( #4614 )
...
Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com >
2022-01-05 14:58:49 +08:00
Hsiao-nan Cheung
cd6d31dae8
fix(decompress): Fix 'Expand-7zipArchive()' for nested archive ( #4582 )
2021-12-15 11:38:02 +08:00
tukanos
6f60059035
fix(core): Escape '.' in 'parse_app()'. ( #4578 )
2021-12-15 02:19:49 +08:00