Commit Graph
9767 Commits
Author SHA1 Message Date
星 3e55a70971 docs(readme): Improve installation instructions (#3600) 2019-09-02 13:38:30 +02:00
Richard Kuhnt 79f8538b57 fix(auto-pr): hard reset bucket after running 2019-08-02 17:20:43 +02:00
Richard Kuhnt 7decfd4c10 fix(auto-pr): Fix git status detection
- Reverts: https://github.com/lukesampson/scoop/pull/3026

See https://git-scm.com/docs/git-status#_short_format
If the file was modified it shows ` M` and `M ` means it's staged.
 Files only containing whitespaces don't get staged by `git add` and we only care about actually staged files.

Since the order of the `git status`-output is not sorted anymore the `Select-Object -First 1` is useless and it now uses `Where-Object` to find the correct line.
2019-08-02 13:18:26 +02:00
Richard Kuhnt b9b48182b4 Merge remote-tracking branch 'origin/develop' into develop 2019-06-24 2019-06-24 14:27:09 +02:00
Hsiao-nan Cheung 1caaed8f3d feat(compress): Allow 'Expand-InnoArchive -ExtractDir' to accept '{xxx}' (#3487) 2019-06-24 14:26:35 +02:00
Jakub Čábera e12a7da593 fix(bin): Checkhashes downloading twice when architecture properties does hot have url property (#3479) 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
Mark Huo 2d22ac8233 fix(config): show correct output when removing a config value (#3462) 2019-06-24 14:26:27 +02:00
Jakub Čábera 1836edba88 fix(checkhashes): Do not call scoop directly (#3527)
* fix(checkhashes): Do not call scoop directly

https://github.com/Ash258/GithubActionsBucketForTesting/runs/153802813

* Also fix build
2019-06-22 12:42:05 -07:00
Ross Smith II e8d0be663b Update readme with correct count of nirsoft apps 2019-06-19 16:05:00 -07:00
Ross Smith II 03bb07c823 Fix typo in readme 2019-06-19 13:20:12 -07:00
Ross Smith II 2849e0f960 Add known buckets to end of readme
Fixes #3515
2019-06-19 13:18:24 -07:00
Asif Mehedi 69a0843e9a Fix a small typo (#3512) 2019-06-17 23:16:17 -07:00
Hsiao-nan Cheung 81e3cf61b6 feat(compress): Allow 'Expand-InnoArchive -ExtractDir' to accept '{xxx}' (#3487) 2019-05-30 14:55:48 +02:00
Richard Kuhnt 51f40e11c9 Sync hotfixes to develop 2019-05-29 18:55:38 +02:00
Jorg Heymans 1ac8ac0c65 hotfix(proxy): rename parameters for Net.NetworkCredential (#3483)
close #3471
2019-05-29 18:48:12 +02:00
jonz94 5d0d39abae fix(readme): adjust URL of runat.json (#3484) 2019-05-29 18:38:34 +02:00
Jakub Čábera 1b84fe04fc fix(bin): Checkhashes downloading twice when architecture properties does hot have url property (#3479) 2019-05-26 11:51:06 +02:00
Hsiao-nan Cheung a775d452ff 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-05-17 18:19:51 +02:00
Hsiao-nan Cheung f5fdc275ca fix(decompress): '$ExtractDir' removed original extract file by accident (#3470) 2019-05-17 05:53:57 +02:00
Hsiao-nan Cheung e6b2e3d31e feature(decompress): Add 'ExtractDir' to 'Expand-...' functions (#3466)
* feature(decompress): Add 'ExtractDir' to 'Expand-...' functions

* Fix 'TrimEnd' and nested 7z
2019-05-16 17:59:42 +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
Hsiao-nan Cheung b9deb57d03 refactor(core): Add more generic 'Invoke-ExternalCommand' instead of 'run' (#3432) 2019-05-15 19:18:28 +02:00
Mark Huo ad6198eeb4 fix(config): show correct output when removing a config value (#3462) 2019-05-15 18:08:08 +02:00
Richard Kuhnt 731d878490 Merge branch 'release/2019-05-15' 2019-05-15 2019-05-15 17:51:56 +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
Chawye Hsu 16bdee060b fix(update): support changing scoop tracking repository (#3459)
Allows tracking of custom scoop fork:
```
$ scoop config SCOOP_REPO "https://github.com/<user>/scoop-fork"
$ scoop config SCOOP_BRANCH "patch-17"
$ scoop update
```
2019-05-13 21:01:45 +02:00
Richard Kuhnt 81226ae2f9 Sync hotfix #3454 to develop 2019-05-12 14:06:03 +02:00
Richard Kuhnt 87a1e784d7 fix(decompress): Fix dark parameter order
close #3454
2019-05-12
2019-05-12 14:05:39 +02:00
Richard Kuhnt b1a09e6b82 Sync hotfix #3453 to develop 2019-05-12 13:01:43 +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