Commit Graph
498 Commits
Author SHA1 Message Date
Richard Kuhnt af1e9ebdd3 Better error message if dependeny from another bucket couldn't be found (closes #1703) 2017-09-12 22:22:06 +02:00
Richard Kuhnt 12c8248439 Move Add-Type into json_path (possible fix for #1702) 2017-09-11 21:29:14 +02:00
Winter Young c86c727084 Fix scoop status error by improving scoop update (#1699)
* fix git status error
* Fix setting the lastupdate in is_scoop_outdated()
2017-09-10 19:46:19 +02:00
Richard Kuhnt 82ec0fe7a1 Use Newtonsoft.Json for JSONPath querys 2017-09-10 18:04:03 +02:00
Richard Kuhnt 4490140ef8 Improve autoupdate console output 2017-09-10 17:59:25 +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
Dave Andersen 330fcaf93e fix #1628 (scoop update --ignore-cache option broken) (#1629)
* fix #1628

* remove unintended change in merge

* Add --no-cache to install and to all parts of the update command
2017-09-01 22:47:11 +02:00
Richard Kuhnt d5c0654cc4 Improve ensure_all_installed() behavior 2017-08-30 22:12:32 +02:00
Richard Kuhnt 10bcc1f194 Add app_status() function to core
This function gathers all status information about an app and returns them as a hashtable
2017-08-30 22:10:44 +02:00
Richard Kuhnt 4ab82f60bb Run scoop update every so often before installing/updating apps
This change should reduce issues with outdated manifests/hashes/URLs.
Every successful execution of `scoop update` will save the date/time to `~\.scoop`
Every execution of `scoop update x` or `scoop install x` will check last saved date/time and run `scoop update` beforehand if the last run was more than 3 hours ago.
2017-08-30 17:17:38 +02:00
Richard Kuhnt 150cba623d Fix an error when reset_aliases() is called twice
Checks if the given scriptblock already exists
2017-08-30 17:07:27 +02:00
Richard Kuhnt 84bd16b82d Improve ensure_all_installed() behavior and move it to core.ps1
This change removes the use of abort() and exit 1 from ensure_all_installed() so the command doesn't stop if only one app in the list is not found.
2017-08-30 15:10:45 +02:00
Richard Kuhnt 9b3e7c83f9 Move applist() from update/cleanup commad to core 2017-08-30 15:06:54 +02:00
Richard Kuhnt 1e451657a1 Improve regex for finding hash values in checksum files
Add ./ as a possible file prefix
2017-08-24 22:59:03 +02:00
Richard Kuhnt 5af29e1b25 Add script to un/installer property
Allow custom installer and uninstaller scripts without creating/downloading *.ps1 files (could also be used to clean-up post_install and pre_install scripts)
2017-08-21 12:52:22 +02:00
Luke Sampson c8a5622196 Fix 'Access denied' error on current directory when resetting. 2017-07-31 14:23:50 +10:00
Nicolas Arnaud-Cormos 949cbabac0 Make scoop home agnostic
Rather use (Get-PsProvider 'FileSystem').home, in case the user
~ is not pointing to $home.
This can happen if the user wants to keep $home on $Env:USERPROFILE
but is working in a different folder and want it to be ~ (for simplicity).
2017-07-13 20:59:26 +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 a92b76905e Running sccop from cmd without args should show help (closes #1530) 2017-06-02 17:46:27 +02:00
Richard Kuhnt 54ec3365f2 Don't set $env:TEMP on unix, instead use /tmp as workingdir for tests 2017-05-31 01:35:51 +02:00
Richard Kuhnt e67d176d95 Change environment variables to uppercase 2017-05-31 00:27:21 +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 392bdf1a07 Move helper functions to unix.ps1 and updated comment 2017-05-28 14:08:27 +02: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 9128eeab13 Fix variable in set_https_protocols 2017-05-28 13:41:58 +02:00
Richard Kuhnt 5b4b2fce99 Some path fixes for unix 2017-05-27 17:12:37 +02:00
Richard Kuhnt d97d02e57f Fix checksum calculations for MacOS
MacOS provides shasum instead of sha256sum
2017-05-27 17:09:47 +02:00
Richard Kuhnt d28cf794cc Add isUnix/isLinux/isMacOS helper functions 2017-05-27 17:07:36 +02:00
Luke Sampson 6aec3fba6c Alter comment. 2017-05-27 21:49:21 +10:00
Luke Sampson 9a0dbfd236 Add reminder to delete block after 1 year. 2017-05-27 21:48:49 +10:00
Richard Kuhnt a8de45f214 Use write-output instead of echo 2017-05-27 13:15:34 +02:00
Mathias Hermansson 7c2107c295 Update shortcuts.ps1 2017-05-26 21:14:31 +02:00
MATHIAS Hermansson 6afce9368e Remove global shortcuts in AppData 2017-05-26 20:56:26 +02:00
MATHIAS Hermansson 062af3b10d Fix global shortcuts 2017-05-26 19:50:23 +02:00
Richard Kuhnt 9bf042f8a9 Add $basename variable 2017-05-26 16:18:26 +02:00
Luke Sampson cef2564564 Escape tildes when generating .cmd shim. 2017-05-25 08:38:03 +10:00
Luke Sampson 58574b97d3 Escape parentheses when passing arguments from .cmd shims to PowerShell. 2017-05-25 07:37:47 +10:00
Richard Kuhnt 4e56191ae3 Fix the path to manifest 2017-05-24 21:52:55 +02:00
Richard Kuhnt 2abd22223d Use sha256sum and friends for hash calculation 2017-05-24 21:52:16 +02:00
Richard Kuhnt c89d82762a Use 'mkdir -p' to create directories with ensure() 2017-05-24 21:48:45 +02:00
Richard Kuhnt 1c1d3fd16e Overwrite default path ($scoopdir, $globaldir and $cachedir) 2017-05-24 21:47:12 +02:00
Richard Kuhnt ff76d131ea Fix version splitting 2017-05-24 21:33:16 +02:00
Richard Kuhnt 75ea431922 Make core.ps1 and install.ps1 able to run on unix 2017-05-24 19:59:24 +02:00
Luke Sampson 6914508e8e Auto-describe apps based on homepage. No UI yet. 2017-05-24 21:59:04 +10:00
Richard Kuhnt 884a7a3361 Allow architecture specific shortcuts for special cases like dont-sleep or mpc-hc 2017-05-23 22:28:49 +02:00
Luke Sampson a4d44ac8f0 Allow .cmd shims to pass double-quoted arguments to PowerShell (see lukesampson/psutils#17). 2017-05-23 20:55:22 +10:00
Mathias Hermansson f2305c84c6 Version substitution for license property 2017-05-16 23:24:08 +02:00
Richard Kuhnt 4eb666c6ee Introducing $baseurl variable for hash file downloads 2017-05-14 14:53:25 +02:00
Richard Kuhnt 106daa83fd Regression 92ab8f5e8, readd substitute() 2017-05-14 05:12:18 +02:00