Hsiao-nan Cheung
1caaed8f3d
feat(compress): Allow 'Expand-InnoArchive -ExtractDir' to accept '{xxx}' ( #3487 )
2019-06-24 14:26:35 +02:00
Hsiao-nan Cheung
c8047bd5ed
fix(decompress): '$ExtractDir' error with '.zip' and subdir ( #3472 )
...
For some `extract_dir` in .zip that has sub-dir, the former one would remove parent dir and get error (flac, flac-1.3.2-win\win64), now use temp dir instead. And also fix .msi, in case of some installer that don't have `SourceDir`.
`Expand-DarkArchive` will be used in wix extraction, so it doesn't need `-ExtractDir`.
`Expand-7zipArchive` and `Expand-InnoArchive` works well.
Tested:
- calibre-normal (msi, PFiles\Calibre2)
- flac (zip, flac-1.3.2-win\win64)
- pkg-config (zip, multiple url and extract_dir)
BTW, `Expand-Archive` has `-PassThru` param in PowerShell 6+, and it will be more convinient to support `-ExtractDir` with it. I'll check function's source code and plan to rewrite `Expand-ZipArchive`.
Fix #3473 , ref https://github.com/lukesampson/scoop/issues/3473#issuecomment-493446461
2019-06-24 14:26:35 +02:00
Hsiao-nan Cheung
a882c4f1eb
fix(decompress): '$ExtractDir' removed original extract file by accident ( #3470 )
2019-06-24 14:26:35 +02:00
Hsiao-nan Cheung
2fafcb880a
feature(decompress): Add 'ExtractDir' to 'Expand-...' functions ( #3466 )
...
* feature(decompress): Add 'ExtractDir' to 'Expand-...' functions
* Fix 'TrimEnd' and nested 7z
2019-06-24 14:26:35 +02:00
Hsiao-nan Cheung
61d1c1c41a
refactor(core): Add more generic 'Invoke-ExternalCommand' instead of 'run' ( #3432 )
2019-06-24 14:26:35 +02:00
Jorg Heymans
1ac8ac0c65
hotfix(proxy): rename parameters for Net.NetworkCredential ( #3483 )
...
close #3471
2019-05-29 18:48:12 +02:00
Richard Kuhnt
6141e46d6a
fix(decompress): Change dark.exe parameter order
...
https://github.com/lukesampson/scoop-extras/pull/2143
https://github.com/ScoopInstaller/Main/pull/56
2019-05-15 19:53:54 +02: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
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