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
Richard Kuhnt
379d1ba38d
Use url_remote_filename() instead of fname and substrings to get the basename
2017-05-14 04:58:45 +02:00
Richard Kuhnt
92ab8f5e80
Move some functions to core.ps1
2017-05-14 04:54:32 +02:00
Richard Kuhnt
14a461296b
Allow fosshub.com as download source
2017-05-13 18:27:52 +02:00
Richard Kuhnt
45721fc54c
Add support arrays without a property name to json path (e.g. $.[0])
2017-05-08 13:00:05 +02:00
Simon Hartcher
9f594ebe9a
Merge pull request #1418 from rrelmy/tests
...
[WIP] Add more unit tests
2017-05-04 12:33:45 +10:00
Silver Zachara
7bf823186c
Quote source and target paths
...
Prevent failure, when path contains whitespaces
2017-05-03 20:15:35 +02:00
Luke Sampson
e3fd2925b9
Don't set proxy for Git unless configured. See #1454 .
2017-04-29 08:36:43 +10:00
Richard Kuhnt
a66ae9626f
Allow $dir, $original_dir and $persist_dir variables in manifest notes
2017-04-25 19:19:09 +02:00
Luke Sampson
222bac5c74
Add 'checkup' command.
2017-04-21 19:02:17 +10:00
Luke Sampson
47aac5b6ba
Revert to ~ means $home instead of $env:userprofile ( fix #1442 )
2017-04-21 16:59:00 +10:00
Luke Sampson
adf0e2cdaf
Adjust style, use $env:userprofile for consistency
2017-04-21 08:41:43 +10:00
Marty Gentillon
6396fef55e
Fixed bug where $home doesn't support .endswith
...
In Windows 10, at least after the Creators update, $h is of type
PathInfo, which does not support String operations. By toStringing it,
we turn it into a String and enable the expected String operations.
see https://github.com/lukesampson/scoop/issues/1440
2017-04-20 15:27:37 -07:00
Luke Sampson
5841a704b2
Don't make 7-zip an install dependency if it's already installed ( fixes #1438 )
2017-04-19 19:43:39 +10:00