Richard Kuhnt
e52c24c94e
Add .NET 4.5 check to scoop install script (See #2487 )
2018-08-20 15:07:18 +02:00
xeijin
0d4312370b
Reset $errorActionPreference to original value ( #2489 )
...
For AppVeyor CI the `$errorActionPreference` setting is persisting after I install scoop, subsequently causing issues with installing scoop apps (e.g. failing the whole build because an installer executable outputs what looks like an error).
2018-08-11 20:47:28 +02:00
Ross Smith II
091c60c5fa
auto-pr: Change commit message to: app: Update ...
2018-06-23 07:28:33 -07:00
Ross Smith II
c7c9de46dc
Change commit message to: $app: update to x.y ( #2324 )
...
Change commit message to: $app: update to x.y
2018-06-22 13:14:25 +02:00
Richard Kuhnt
8d8452f21e
scoop-config: Small fix for Boolean config values (mentioned in #460 )
...
- `scoop config test $true` (fixed by using `$args[0]` instead of `$args`)
- `scoop config test $false` (fixed by `$null -ne $value`)
2018-05-04 18:46:39 +02:00
Richard Kuhnt
12962acfa8
Use consistent User-Agent Header on all webrequests
2018-03-18 16:35:01 +01:00
Chawye Hsu
731247876d
[Pending] Finally we add the code linting and its tests! ( #2108 )
...
* Lint: PSPossibleIncorrectComparisonWithNull
* Lint: PSUseLiteralInitializerForHashtable
* Lint: PSUseBOMForUnicodeEncodedFile
* Lint: PSUseApprovedVerbs
* Lint: PSAvoidGlobalVars
* Lint: PSAvoidUsingEmptyCatchBlock
* Lint: PSUseShouldProcessForStateChangingFunctions
* Lint helper: Add PSScriptAnalyzer integration for vscode
* Fix lint: PSUseBOMForUnicodeEncodedFile
* Tests: ignore previous TestResults.xml
* Tests: add PowerShell script linting into tests!
* Add PSScriptAnalyzer into appveyor ci
* Update Scoop-Linting.Tests.ps1
2018-03-13 14:26:55 +01:00
Steve Baker
31075f6200
Clean up some error messages ( #2032 )
...
Removes extra 'ERROR' in text where the `error` method is used.
Converts some `write-host "error message"` to use the `error` method
Converts some `write-host "error message"; exit 1` to use the `abort`
method.
2018-03-12 18:32:57 +01:00
Richard Kuhnt
126e9c97d2
Import config.ps1 in checkurls.ps1 (related to #2100 )
2018-03-07 18:32:57 +01:00
Chawye Hsu
e1bb1e91d0
Lint: PSAvoidUsingCmdletAliases ( #2075 )
2018-03-03 18:41:19 +01:00
Richard Kuhnt
8a67eeb8df
Prevent the -v option from overtaking other commands
2017-12-24 13:43:29 +01:00
Richard Kuhnt
b212655140
Fix handling of -h and -v parameter
2017-12-15 18:53:51 +01:00
Richard Kuhnt
c2200513c2
Add -v/--version parameter to show current git commit version
...
closes #1829
2017-12-15 18:46:43 +01:00
Mathias Hermansson
42ed53b0bf
Add replace for regexp, allow regexp and replace for jsonpaths ( #1709 )
...
* Add replace for regexp, allow regexp and replace for jsonpaths
* Remove extra space from if(!$ver)
* Check if replace property is a string instead of replace()-function
2017-09-28 19:38:22 +02:00
Ilja Nosik
ecc0e44969
Use the correct Regex.Matches method ( #1707 )
...
References #1704 .
2017-09-14 09:43:13 +02:00
Richard Kuhnt
806785c636
Remove the .NET 4.7 only Group.Name property from checkver.ps1
...
The Name property was first added to System.Text.RegularExpressions.Group with .NET 4.7 (See: https://msdn.microsoft.com/en-us/library/system.text.regularexpressions.group.name )
This change makes checkver.ps1 backward compatible with older .NET versions. (thanks @nightroman)
2017-09-13 18:59:40 +02:00
Richard Kuhnt
044b168fe6
Avoid using cmdlet aliases in installer script
2017-09-12 21:46:20 +02:00
Richard Kuhnt
141aa3df95
Add PowerShell 3 warning to scoop installer script
...
`#requires -v 3` doesn't get evaluated by running `iex` on the downloaded script.
Related issues #1700 , #1524 , #1462
2017-09-12 21:38:15 +02:00
Richard Kuhnt
c30a4c6432
Fix possible null reference
2017-09-12 20:06:21 +02:00
Richard Kuhnt
25dfc4d997
Rename variable so it doesn't impact automatic $matches variable (see #1704 )
2017-09-12 19:32:51 +02:00
Richard Kuhnt
82ec0fe7a1
Use Newtonsoft.Json for JSONPath querys
2017-09-10 18:04:03 +02:00
Richard Kuhnt
8098bf58b7
Add reverse property to checkver ( #1630 )
...
* Add reverse property to checkver
If set to true, the regex matches get reversed. This helps to find new versions in directory listings. (see x264)
* Update x264 to version 2851
2017-09-10 17:53:31 +02:00
Richard Kuhnt
3d145e0b8f
Fix forced updates on unix in auto-pr.ps1
2017-08-24 22:30:38 +02:00
Richard Kuhnt
3f495c6eb2
Add output for forced updates to auto-pr.ps1
2017-08-24 22:17:40 +02:00
Richard Kuhnt
8cc4a7a77b
auto-pr.ps1: detect LR/CRLF changes and skip them
...
This is mainly for Unix
2017-06-10 17:48:25 +02:00
Richard Kuhnt
d575c0a5dd
Add $specialSnowflakes parameter to auto-pr.ps1
...
Comma separated list of apps which should be force updated
2017-06-10 16:50:59 +02:00
Richard Kuhnt
2d8e2a079a
Remove wrong continue from checkver.ps1
2017-06-10 15:49:04 +02:00
Richard Kuhnt
492dc44b4d
Improve force update logic in checkver.ps1
...
force update now really forces an update (prior to this change it only worked when the versions were the same)
2017-06-10 15:45:27 +02:00
Richard Kuhnt
5d8f276035
Change $dir behavior in auto-pr.ps1
...
Accompanies changes in scoop-extras and versions bin scripts
2017-05-31 00:02:15 +02:00
Richard Kuhnt
f737315e73
Merge pull request #1517 from lukesampson/unix-compatible
...
[WIP] Add Unix compatibility (for maintenance jobs and manifest testing)
2017-05-30 21:59:15 +02:00
Luke Sampson
887f041fc7
Extract to _tmp instead of _scoop_extract to conserve 10 more characters in path.
2017-05-29 17:59:09 +10:00
Richard Kuhnt
24fd3a3c7e
Move unix compatible functions to unix.ps1
...
- Change helper functions to snake_case
2017-05-28 13:59:42 +02:00
Richard Kuhnt
687fcaabb2
Fix response closed and freed before usage
2017-05-27 18:27:02 +02:00
Richard Kuhnt
d28cf794cc
Add isUnix/isLinux/isMacOS helper functions
2017-05-27 17:07:36 +02:00
Richard Kuhnt
9282751914
Make auto-pr.ps1 able to run on unix
2017-05-24 20:02:02 +02:00
Luke Sampson
6914508e8e
Auto-describe apps based on homepage. No UI yet.
2017-05-24 21:59:04 +10:00
Richard Kuhnt
deb7ebdab2
Add tab replacment to formatjson.ps1
2017-05-07 20:50:13 +02:00
Richard Kuhnt
215d8edf90
Fix auto-pr.ps1 pull requests
2017-04-14 21:39:50 +02:00
Richard Kuhnt
274f4e0533
Fix auto-pr.ps1 pull requests
2017-04-14 21:22:54 +02:00
Richard Kuhnt
95a600d953
Fix auto-pr.ps1 pull requests
2017-04-14 20:52:13 +02:00
Richard Kuhnt
83000a8539
Improve exception handling for specific version installation and checkver
2017-04-06 18:37:17 +01:00
Richard Kuhnt
a5ce716758
Add newline to checkurls.ps1
2017-04-03 22:11:51 +01:00
Richard Kuhnt
25ddb381ea
Add tool to check for broken urls
2017-04-03 22:10:23 +01:00
Richard Kuhnt
9a650799e0
Strip filename from referer url
2017-03-21 17:52:10 +01:00
Richard Kuhnt
c682723d99
Add referer-header to all webrequests
2017-03-19 16:29:27 +01:00
Rémy
df74d2bc0e
autoupdate: do not autodowngrade
...
The autoupdate function did not check if the found version is newer
(just !=) so it was happy to downgrade everything automatically.
Downgrades can still be forced with the -force param
2017-03-13 21:12:19 +01:00
Rémy
693491b5af
add -skipSupported param to missing-checkver script for easier filtering
2017-03-13 21:12:19 +01:00
Richard Kuhnt
825f19aa52
Add jsonpath support for checkver and hash extraction
...
Unravel if-blocks in checkver
Use new jsonpath for openssl, nuget, dart and bfg
2017-03-03 21:15:37 +01:00
Richard Kuhnt
cd49d0e37c
Better error handling for autoupdate and checkver
...
do_dl() now rethrows an exception instead of aborting. this prevents killing the autoupdate process prematurely and thus skipping queued updates.
2017-03-02 21:01:54 +01:00
Richard Kuhnt
6f932ec113
Add missing variable
2017-02-27 10:09:59 +01:00