Commit Graph
9771 Commits
Author SHA1 Message Date
linsui 9ad783d3a5 fix(autoupdate): remove any whitespace from hash (#3579)
Allow extracting hashes with containing spaces and newlines
(e.g. `ef 5d 41 08 32 9c 71 b4 b5 b6 0f be 2f bc 49 ac ef 86 69 49 42 e8 37 65 a4 86 30
 10 ea be 0d 79`)

FreeCad Example:
```json
"hash": {
    "url": "$url-SHA256.txt",
    "regex": "(?sm):\\s+([a-f\\d\\s]+)CertUtil"
}
```
2019-08-01 18:08:16 +02:00
Hsiao-nan Cheung 1508d2ab00 fix(versions): Refactor compare_versions -> Compare-Version (#3333)
fix #3329 
fix #2981 
fix #2720 
fix lukesampson/scoop-extras#2106
close #3469
2019-07-31 15:36:19 +02:00
issaclin32 544e6094cc fix(decompress): fix bugs on extract_dir (#3540) 2019-07-24 22:37:31 +02:00
Eric Bouchard 78d2ff75f4 fix(help): Rename help() to scoop_help() (#3564)
When a user has an alias named `help`, the `scoop help` command does not work anymore.
To prevent collision with a user alias the function is renamed from `help` to `scoop_help`
2019-07-18 18:33:22 +02:00
Hsiao-nan Cheung f33799dee8 improvement(core): tweak Invoke-ExternalCommand parameters (#3547)
- Redirect standard error to log file.
- Fix `-RunAs` error.
  - `-RunAs` and `-Log` cannot be used together.
2019-07-16 18:30:15 +02:00
Niklas H 0550605de1 fix(comspec): Escape variables when calling COMSPEC commands (#3538)
COMSPEC commands fail when called with unescaped directory arguments which contain white spaces (typically a compound user name).

- Closes lukesampson/scoop-extras#1781
- Closes lukesampson/scoop-extras#2389
- Closes #2801

Signed-off-by: Niklas H. <Typhoon.CommanderCool@gmail.com>
2019-07-02 15:46:43 +02:00
Huiyi.FYJ b71b5074b2 fix(editorconfig): add missing } to bat/cmd regex (#3529) 2019-06-24 14:35:15 +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