Commit Graph
9734 Commits
Author SHA1 Message Date
Richard Kuhnt 87a1e784d7 fix(decompress): Fix dark parameter order
close #3454
2019-05-12
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
71f504494a Bucket extraction and refactoring (#3449)
- The main bucket of Scoop has been separated to https://github.com/ScoopInstaller/Main
- Requires PowerShell 5 and newer #3330
- Improve and refactor decompression functions #3204 #3409 #3411
- Move scoop config from `~\.scoop` to `~\.config\scoop\config.json` #3242
- Add `scoop hold` and `scoop unhold` for excluding programs from updates #3444
- Refactored some Core functions #3314 #3416
- Small fix for starting processes on Windows 7 #3415

Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
Co-authored-by: Chawye Hsu <h404bi@outlook.com>
Co-authored-by: Jakub Čábera <cabera.jakub@gmail.com>
2019-05-12 11:49:21 +02:00
Richard Kuhnt d006fb9315 fix(update): Rewording PowerShell update notice 2019-05-12 11:39:06 +02:00
Richard Kuhnt 17253e46b9 Add Expand-DarkArchive and some other dependency features (#3450)
- Add `Expand-DarkArchive` helper function
- Allow `dark.exe` from wixtoolset and `7zip-zstd` as valid helpers
- Add warnings to 'scoop checkup' for missing unpackers
- Auto detect dependencies from `pre_install`/`post_install` and `installer.script` by simply searching for the function names.
2019-05-12 11:33:48 +02:00
Richard Kuhnt 846311970f fix(checkup): Remove lessmsi and aria2 from scoop checkup command 2019-05-11 22:40:14 +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 f578cd0767 feature(checkup): Add warnings to 'scoop checkup' for missing unpackers 2019-05-11 22:15:23 +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
Richard Kuhnt 16f88eecaa Main bucket moved to github.com/ScoopInstaller/Main 2019-05-11 18:30:25 +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 7699beafc0 fix(config): Remove config.ps1 imports 2019-05-10 12:16:36 +02:00
Richard Kuhnt fcabada1bc refactor(config): Redirect set_config output to Out-Null 2019-05-10 12:16:36 +02:00
Richard Kuhnt 9f4bc2a77f refactor(config): Better output for scoop config command 2019-05-10 12:16:36 +02:00
Richard Kuhnt 630ba04ecd fix(config): More tests for set_config 2019-05-10 12:16:36 +02:00
Richard Kuhnt d17b4e5a85 fix(config): Test for DateTime object instead for actual Time 2019-05-10 12:16:36 +02:00
Richard Kuhnt 8dd68f61b0 fix(config): fix datetime tests for PowerShell 6 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 40d83d924a refactor(config): Add more tests for load_config and get_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 Cheungandr15ch13 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 Cheungandr15ch13 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 Cheungandr15ch13 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 8ead07ffee refactor(alias): Apply config changes to scoop-alias command 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 4ec576a859 refactor(bin/libexec): remove config.ps1 imports 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 8beffc4329 Sync renaming changes to develop 2019-05-06 18:19:57 +02:00
Richard Kuhnt f1f86494d7 Incorporate organization and bucket renaming
See: https://github.com/lukesampson/scoop/issues/3437
2019-05-06 18:18:16 +02:00
Emil Sundin 9309b52640 scoop-cache: Display help on incorrect cache command (#3431) 2019-05-06 13:24:58 +02:00
Richard Kuhnt 618824e46d Sync missing hotfix #3427 to develop 2019-05-01 21:45:46 +02:00
Dave Neeley abcb59ca35 Expand-ZipArchive: Compatible with Pscx (was missing tests) (#3427)
Extension to https://github.com/lukesampson/scoop/pull/3425
2019-05-01 21:45:03 +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 f58fdaa7f2 refactor(tests): Check checksum of TestCases.zip before extracting 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