Commit Graph
140 Commits
Author SHA1 Message Date
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
Richard Kuhnt c1486fdaa3 Unstage manifests if something goes wrong 2017-02-16 18:28:31 +01:00
Richard Kuhnt 8ef3f9637e Pretty print missing-checkver.ps1 output 2017-02-15 13:24:48 +01:00
Luke Sampson e8e5ac5615 Update more UI messages for consistency. 2017-02-13 20:53:36 +11:00
Luke Sampson 1c173bc56d Use sentence case for UI messages. 2017-02-13 20:20:41 +11:00
Richard Kuhnt e5a5f41db1 Add $dir parameter to auto-pr 2017-02-07 19:00:24 +01:00
Richard Kuhnt 5a0bab5949 Small fixes on auto-pr.ps1 2017-02-06 22:10:55 +01:00
Richard Kuhnt ef3cc28422 Small fix on auto-pr.ps1 2017-02-06 22:08:21 +01:00
Richard Kuhnt a5ea1828ce Add autopushing to auto-pr.ps1
auto-pr.ps1can now push directly to master branch or create pull requests. Also added commandline help
2017-02-06 22:06:19 +01:00
Richard Kuhnt 8bc791a96e Create branches for auto pullrequests under manifest/*
Use manifest/* as branch name for automatic pullrequests so it can be collapsed in GUI clients (convince feature)
2017-02-01 18:01:18 +01:00
Luke Sampson 8a457e3abf fix autoupdate always writes to main bucket directory even when another directory is specified (see #1273) 2017-01-27 15:48:35 +11:00