Commit Graph
509 Commits
Author SHA1 Message Date
Richard Kuhnt 609329bd2d Use fixed path to cmd.exe (#1921)
* Use fixed path to cmd.exe

* Use $env:COMSPEC instead of $env:WINDIR
2017-12-24 13:09:41 +01:00
Richard Kuhnt a9c2d4c486 If architecture isn't supported show an error on installation
https://github.com/lukesampson/scoop-extras/issues/678
2017-12-15 18:44:08 +01:00
Richard Kuhnt 36dc7a880c Allow more architecture naming conventions for --arch parameters
closes #1908
2017-12-15 17:05:12 +01:00
Richard Kuhnt da9c8e228a Use -Path instead of -InputStream parameter for Get-FileHash (closes #1905)
Fixes a problem with Get-FileHash not excepting -InputStream parameter in PowerShell 4.0
2017-12-12 21:39:52 +01:00
Richard Kuhnt da7d61f3e3 Use Get-FileHash instead of System.Security.Cryptography.HashAlgorithm (#1725)
* Use Get-FileHash instead of System.Security.Cryptography.HashAlgorithm if available

This satisfies these two cases:
* PowerShell 3 doesn't support Get-FileHash
* PowerShell 6 doesn't support HashAlgorithm yet

* Add tests for compute_hash() function
2017-12-12 13:12:48 +01:00
Richard Kuhnt ef230c8b7b fix null reference error in strip_path() 2017-12-11 23:29:49 +01:00
Richard Kuhnt 897e7247a4 Add SourceForge Mode to autoupdate
* Automatically extract the sha1 if it's a SourceForge URL
* Matches downloads.sourceforge.net / sourceforge.net / <anyMirror>.sourceforge.net and rewrites it to sourceforge.net/projects/<project>/files/<pathToFile>
2017-11-19 23:04:44 +01:00
Richard Kuhnt 1ebad24647 Add $dashVersion substitution to autoupdate 2017-11-05 23:44:10 +01:00
Richard Kuhnt 637b7c163b Add regex support for RELEASES files created by Squirrel.Windows
See: https://github.com/Squirrel/Squirrel.Windows/blob/master/docs/getting-started/5-updating.md#distributing-the-new-release
2017-11-05 16:20:34 +01:00
Richard Kuhnt c15d8e2393 Fix a problem with persistent config files that get created on first startup
This prevents the creation of an empty directory if the file to persist doesn't exist on installation (e.g. config files getting created on first startup)
2017-10-26 20:02:28 +02:00
Richard Kuhnt 6380981b4c Prevent autoupdate from settings property to empty string
This prevents setting arch specific `extract_dir` properties to an empty string if there is no `extract_dir` in `autoupdate.architecture`
2017-09-28 20:30:40 +02:00
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