Richard Kuhnt
1e19829334
refactor(config): Fix set_config
2019-05-10 12:16:36 +02:00
Richard Kuhnt
1e1a806783
refactor(config): Fix set_config function
2019-05-10 12:16:36 +02:00
Richard Kuhnt
445d4fdee2
refactor(core): Remove hard-coded path
2019-05-10 12:16:36 +02:00
Hsiao-nan Cheung and r15ch13
e9004e126b
refactor(core): ensure config path exists
...
Co-Authored-By: r15ch13 <r15ch13+git@gmail.com >
2019-05-10 12:16:36 +02:00
Hsiao-nan Cheung and r15ch13
f1c4a6cc64
refactor(core): Use ASCII encoding because of PowerShell 5
...
Encode file in "ASCII", since "UTF8" in Powershell 5 will be "UTF8-with-BOM", while "ASCII" be "UTF8".
Co-Authored-By: r15ch13 <r15ch13+git@gmail.com >
2019-05-10 12:16:36 +02:00
Hsiao-nan Cheung and r15ch13
2749104e82
refactor(core): Prefer $XDG_CONFIG_HOME over ~\.config
...
Co-Authored-By: r15ch13 <r15ch13+git@gmail.com >
2019-05-10 12:16:36 +02:00
Richard Kuhnt
df64db0675
refactor(config): Fix config value removing
2019-05-10 12:16:36 +02:00
Richard Kuhnt
f7a9cd9ceb
refactor(config): Move configuration handling to core.ps1
...
- Migrate ~\.scoop to ~\.config\scoop\config.json
- Remove hashtable and hashtable_val functions because ConvertFrom-Json is enough
- Add PowerShell 6 time conversion to tests
2019-05-10 12:16:36 +02:00
Richard Kuhnt
44975dce58
feature(update): Add hold/unhold command ( #3444 )
...
Allows un/locking a program to the current version and enable/disable updates.
Close #3232
Close #1941
2019-05-08 20:01:21 +02:00
Richard Kuhnt
f396d8837d
Sync #3425 hotfix to develop
2019-05-01 21:27:44 +02:00
Hsiao-nan Cheung
a6fd88f582
Expand-ZipArchive: Compatible with Pscx ( #3425 )
...
Close scoopinstaller/scoop-main#19
Close scoopinstaller/scoop-main#20
Close lukesampson/scoop-extras#2078
2019-05-01 21:26:54 +02:00
Hsiao-nan Cheung
83e457661d
fix(core): Remove wrong parenthesis Test-Aria2Enabled and Get-AppFilePath
2019-05-01 14:17:49 +02:00
Richard Kuhnt
010546cf26
refactor(core): Combine helpers to Get-HelperPath and Test-HelperInstalled
2019-05-01 14:17:49 +02:00
Richard Kuhnt
3cb37f0cd1
refactor(core): file_path > Get-AppFilePath
2019-05-01 14:17:49 +02:00
Richard Kuhnt
e162255824
refactor(decompress): Use helper functions for 7zip/lessmsi/innounp
2019-05-01 14:17:49 +02:00
Richard Kuhnt
d3ba0b203f
fix(decompress): Fix return value of extract_7zip
2019-05-01 14:17:49 +02:00
Richard Kuhnt
51c6e77d61
fix(install): Check if 7zip/lessmsi/innounp is installed before adding dependency
...
Prevents installing 7zip/lessmsi/innounp locally if they are already available globally
2019-05-01 14:17:49 +02:00
Richard Kuhnt
1149402f29
feature(core): Add lessmsi and innounp helper functions
2019-05-01 14:17:49 +02:00
Richard Kuhnt
42e4505089
refactor(core): Rename aria2 helper functions
...
aria2_path > Get-Aria2Path
aria2_installed > Test-Aria2Installed
aria2_enabled > Test-Aria2Enabled
2019-05-01 14:17:49 +02:00
Richard Kuhnt
501d4b4d35
refactor(decompress): Change function name casing
...
7zip_path -> Get-7zipPath
7zip_installed -> Test-7zipInstalled
Expand-7ZipArchive -> Expand-7zipArchive
Test-7ZipRequirement -> Test-7zipRequirement
Expand-MSIArchive -> Expand-MsiArchive
Test-LessMSIRequirement -> Test-LessmsiRequirement
2019-05-01 14:17:49 +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
Hsiao-nan Cheung
34c26aab6c
Patch(decompress): Allow other args to be passthrough ( #3411 )
...
ref: https://github.com/lukesampson/scoop-extras/pull/2021#issuecomment-484182951 , https://github.com/lukesampson/scoop/pull/3204#issuecomment-484402074
- Add new param `Overwrite` to `Expand-7ZipArchive`, with following values
- "All": 7z param `-aoa`, overwrite All existing files without prompt, behave the same with default
- "Skip": 7z param `-aos`, Skip extracting of existing files
- "Rename": 7z param `-aou`, aUto rename extracting file
- Add new param `Switches` to `Expand-7ZipArchive` and `Expand-InnoArchive`
- It could pass all unrecognized params to `7z` and `innounp`
- Patch `extract_7zip` and `unpack_inno` to adapt to `Expand-XXX`
Usage: https://github.com/lukesampson/scoop-extras/pull/2021 , https://github.com/lukesampson/scoop-extras/pull/2070
2019-04-29 17:26:42 +02:00
HenriqueB
70d6d9cab7
install: Fix bug with Start-Process -Wait, exclusive to PowerShell Core on Windows 7 ( #3415 )
...
Close: https://github.com/lukesampson/scoop/issues/2580
See: https://github.com/PowerShell/PowerShell/issues/6561
2019-04-29 17:24:27 +02:00
Hsiao-nan Cheung
e513430766
refactor(core): ensure_all_installed() to Confirm-InstallationStatus() ( #3293 )
2019-04-29 13:29:18 +02:00
Hsiao-nan Cheung
7ef4270c2b
shim: Add '.com'-type shim ( #3366 )
2019-04-29 13:23:42 +02:00
Hsiao-nan Cheung
a757dea15e
refactor(cmd_available/Get-Command): Add Test-CommandAvailable function ( #3314 )
2019-04-28 18:53:00 +02:00
Chawye Hsu
2db651c13a
fix: correct deprecation function name ( #3406 )
2019-04-28 14:23:04 +02:00
Richard Kuhnt
1268d74224
[Regression]: Rename extract_inno to unpack_inno
2019-04-28 12:50:49 +02:00
Richard Kuhnt
79a6d5cb04
decompress: Fix get_config calls
2019-04-26 20:34:16 +02:00
Jakub Čábera
1a6fd6e396
feat: Check for LongPaths setting ( #3387 )
2019-04-26 18:37:18 +02:00
Hsiao-nan Cheung
72730e0d73
decompress.ps1: Refactor extraction handling functions ( #3204 )
...
* Refactored functions:
* requires_7zip > Test-7ZipRequirement
* requires_lessmsi > Test-LessMSIRequirement
* extract_7zip > Expand-7ZipArchive
* extract_msi/extract_lessmsi > Expand-MSIArchive
* unpack_inno > Expand-InnoArchive
* extract_zip/unzip_old > Expand-ZipArchive
* Fix 7zip failed when .tar and .tgz have diff names
* Add tools to CI
* Add test cases for Expand-7ZipArchive
* Add test cases for Expand-InnoArchive
* Add test cases for Expand-MSIArchive
* Add config `7ZIPEXTRACT_USE_EXTERNAL`
* Change '$recurse' to '$removal'
2019-04-26 18:35:59 +02:00
Chawye Hsu
404a6b82a6
fix(scoop-update): fix branch switching ( #3372 ) ( #3390 )
...
fix(scoop-update): fix branch switching
2019-04-26 17:11:57 +02:00
Hsiao-nan Cheung
58eb2e9bff
buckets.ps1: Fix new_issue_msg ( #3375 )
...
buckets.ps1: Fix new_issue_msg
2019-04-26 16:58:46 +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
Richard Kuhnt
9eed3d8914
refactor(install): rename locate() to Find-Manifest()
...
See https://github.com/lukesampson/scoop/issues/3339#issuecomment-485242390
2019-04-22 12:44:07 +02:00
Jakub Čábera
f8c4d174a8
[buckets] Get back to if ( #3351 )
2019-04-21 20:48:26 +02:00
Jakub Čábera
4a2f3bbfe8
fix ( #3350 )
...
[Regression] Fix search after buckets optimize
2019-04-21 20:14:34 +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
Edgard Lorraine Messias
79d7af971f
install.ps1: Fixed cache copy with aria2 ( #3318 )
2019-04-10 14:20:23 +02:00
Hsiao-nan Cheung
6d7fafb145
autoupdate.ps1: Add $base64 hash template
2019-04-04 12:30:18 +02:00
Richard Kuhnt
10d191a4b1
git.ps1: Don't use proxy if it's set to "none"
2019-03-18 15:16:10 +01:00
Jakub Čábera
54235efe59
Fix buckets.ps1: regression from bucket folder structure ( #3218 )
...
- Closes lukesampson/scoop-extras#1794
2019-03-18 11:39:40 +01:00
Chawye Hsu
17cb68fca0
refactor(core): move default_aliases into the scoped function ( #3233 )
2019-03-18 11:29:27 +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
5d14db6786
core.ps1: Fix url_remote_filename (edited) ( #3022 )
...
EDITED: No WebRequest, Local URL Treatment
Current `url_remote_filename()` cannot handle redirected urls like "https://www.apache.org/dyn/closer.cgi?action=download&filename=tomcat/tomcat-9/v9.0.14/bin/apache-tomcat-9.0.14-windows-x64.zip ", this modified one works in most cases.
- Get filename from PathAndQuery instead of AbsolutePath
- Throw away leading `?=`
- If got `vxx.xx.xx`, fallback to AbsolutePath
- Use fragment name if all above failed
2019-03-11 10:07:53 +01:00
Ross Smith II
8b7f3fc218
install.ps1: Allow persist dirs to have trailing slash ( #3203 )
2019-03-10 12:47:23 +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
bc8985402a
[Schema] Add metalink mode to hashmode ( #3170 )
...
* [Schema] Add metalink mode
Schema is missing property for metalink
See: https://github.com/lukesampson/scoop/blob/57b0b0e1eb2c946ca74541b2464d3e61e195e979/lib/autoupdate.ps1#L213-L218
* Make fosshub and sourceforge same as other methods
2019-03-04 14:00:16 +01:00
kiennq
ef97f0875a
Invoke powershell with -noprofile flag from bash shims ( #3165 )
2019-02-24 11:30:08 +01:00