Richard Kuhnt
87a1e784d7
fix(decompress): Fix dark parameter order
...
close #3454
2019-05-12 14:05:39 +02:00
Chawye Hsu
bed78ceffb
fix(depends): don't force adding dark dependency ( #3453 )
2019-05-12 13:00:40 +02:00
Richard Kuhnt
2aec0b2d97
feature(depends): Detect dependencies from pre/post and installer script
2019-05-11 22:16:58 +02:00
Richard Kuhnt
039d591b1a
feature(core): Allow wixtoolset and 7zip-zstd as valid helpers
2019-05-11 22:11:19 +02:00
Richard Kuhnt
27afed09d4
feature(decompress): Add Expand-DarkArchive helper function
2019-05-11 22:09:49 +02:00
Richard Kuhnt
5d5c7fa91c
fix(core): Filter null or empty string from Scoops directory settings
2019-05-11 20:15:39 +02:00
Chawye Hsu
89558f41fd
refactor(core): remove old scoopdir support
2019-05-10 14:10:21 +02:00
Chawye Hsu
ee7d22a52d
refactor: move core bootstrapper to the eof
2019-05-10 14:10:21 +02:00
Chawye Hsu
f53ffc6c58
feat: support loading basedirs from config
2019-05-10 14:10:21 +02:00
Richard Kuhnt
630ba04ecd
fix(config): More tests for set_config
2019-05-10 12:16:36 +02:00
Richard Kuhnt
c9fa59dab8
fix(config): fix set_config check for existing property
2019-05-10 12:16:36 +02:00
Richard Kuhnt
7e40e2e61c
refactor(config): Fix warning message
2019-05-10 12:16:36 +02:00
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