Roy Ivy III
5d097a7c78
Merge branch 'upstream' into dev-whitespace
...
Conflicts:
bucket/apache.json
bucket/cmake.json
bucket/curl.json
bucket/git.json
bucket/openssl.json
bucket/php54.json
bucket/php55.json
bucket/sliksvn.json
lib/core.ps1
2015-08-25 22:27:55 -05:00
Roy Ivy III
1fbcd53f2d
Remove now-erroneous comment
2015-08-20 13:44:58 -05:00
Roy Ivy III
2f367eff9d
Merge branch 'upstream' into fix-shim-encoding
...
Conflicts:
lib/core.ps1
2015-08-20 13:39:27 -05:00
Roy Ivy III
6d9bca805f
whitespace cleanup
...
* makes changes to almost all main repo files to be in accordance with .editorconfig
* some files in "test\fixtures\..." were left alone to avoid breaking tests
* NOTE: whitespace changes *only* (`git diff -b` shows no changes)
2015-08-17 22:54:43 -05:00
Simon Hartcher
e01faae68b
Make shim paths relative
2015-07-27 17:49:33 +10:00
Roy Ivy III
3b5887e0f9
Change encoding of generated shim files to ASCII
...
* change file encoding of the basic shim to be in a normal ASCII character set
.# DISCUSSION
Within PowerShell, `echo STRING > FILE` generates a file encoded in UCS-2-BOM format
(or "Unicode", in PowerShell terminology). UCS-2 later morphed into the similar
UTF-16 encoding format, and, within PowerShell, is treated as a "fuzzy equivalent"
encoding. Problematically, these UCS-2 files are misinterpreted by CMD, which expects
files using the ASCII (or "extended-ASCII") character encoding. And, in general, the
UCS-2 format has many drawbacks when interpreted outside of a narrow PowerShell
window. So, in general, it's best to stick to pure ASCII (or UTF-8, *without BOM*)
encoded files, if at all possible.
NOTE: ASCII (not "extended-ASCII") and UTF-8 (non-BOM) encoded files are exactly equivalent.
NOTE: "Extended-ASCII" is poorly defined, requiring an associated Windows Code Page designation to firmly establish the encoding.
ref: [Unicode UTF and BOM] http://www.unicode.org/faq/utf_bom.html @@ https://archive.is/TKnyk
ref: [Unicode and NET] http://csharpindepth.com/Articles/General/Unicode.aspx @@ https://archive.is/czs89
2015-07-24 21:33:24 -05:00
Simon Hartcher
bf4e92588c
Sanitise path when returning manifest path
...
Fixes #386
2015-07-24 14:04:38 +10:00
Simon Hartcher
8a0e8b8bc0
Fix error when passing regex keywords to getopt #386
2015-07-24 13:38:27 +10:00
Luke Sampson
cf1c2b1866
allow '@' and ':' in proxy password using '\' to escape
2015-06-17 21:44:50 +10:00
Simon Hartcher
53a3224b3a
Add --quiet opt to update command to suppress extraneous messages
2015-06-04 12:44:28 +10:00
Simon Hartcher
3578a65454
Merge pull request #380 from lukesampson/scoop-alias
...
Add scoop-alias command
2015-06-01 10:31:01 +10:00
Simon Hartcher
9e7bb98399
Add scoop-alias command
...
Fixes #377
2015-05-31 16:47:30 +10:00
Simon Hartcher
1a2db05366
Fix #376 Robocopy is not always in PATH
...
Add ensure_robocopy_in_path method to core.ps1 which checks if
robocopy is available, then shims it if not.
2015-05-30 17:53:41 +10:00
Luke Sampson
561c773672
override all leaked aliases, not just those from global scope
2015-05-12 20:36:45 +10:00
Luke Sampson
bc1a8e4945
brute force fix for powershell alias problems
2015-05-11 20:17:59 +10:00
Simon Hartcher
49bd9b637d
Add tests for shim
...
Refactored rm_shims into two functions rm_shims and rm_shim
Added tests for shim and rm_shim
Added test for quote in username (#196 )
2015-04-12 21:15:50 +10:00
Luke Sampson
083cdd9743
handle version change from string to numeric ( fixes #322 )
2015-04-05 14:54:25 +10:00
Simon Hartcher
2c31213431
Added simplistic nightly support
...
When an app versioned as "nightly" is installed (or updated),
the current date is appended to the version which changes the
version directory to nightly-yyyymmdd.
Fixes #181
2015-03-30 23:32:08 +11:00
Simon Hartcher
ed81937b1a
Bugfixes
...
Fixed failure to overwrite cached file
Fixed no cache warning every update
2015-03-28 17:52:54 +11:00
Simon Hartcher
cecb04542c
Added --no-cache option to scoop update
...
Ignores cache when updating an app
2015-03-28 17:45:10 +11:00
Simon Hartcher
47b85e62fe
Merge branch 'master' into custom-commands
...
Conflicts:
lib/commands.ps1
2015-03-26 21:54:05 +11:00
Simon Hartcher
53a6c680aa
Changed $env:scoop to $scoopdir for when $env:scoop is null
2015-03-26 21:47:28 +11:00
Luke Sampson
7959c1cfe2
Revert "Added support for custom commands"
2015-03-26 18:33:09 +10:00
Simon Hartcher
e6e4b7492f
Added support for custom commands
...
Custom commands `scoop-*` that are in the `$env:scoop\shims` directory
can now be run using scoop as well as the built-in commands
2015-03-26 18:24:28 +11:00
Luke Sampson
7a243c72f6
fix mkdir function
2015-03-11 13:18:15 +10:00
Simon Hartcher
2581bd8c53
Add missing commands to alias
2015-03-11 13:55:40 +11:00
Simon Hartcher
afa8166e81
Added functions as aliases for powershell commands
...
Fixes #183
2015-03-11 13:52:30 +11:00
Luke Sampson
b806cbd412
don't fail a global install when dependencies are installed locally ( fixes #216 )
2014-11-18 06:55:44 +07:00
Luke Sampson
d9a1d0041c
a few small cookie clean-ups
2014-11-12 06:16:10 +10:00
Scott Moore
0af8ebff5b
Support HTTP cookies
2014-11-11 22:59:02 +11:00
Luke Sampson
cb2ff446e6
fixes #189 : check for failed installs of dependencies and give a more useful error message if that's the case
2014-11-03 09:33:43 +10:00
Kody Brown
89dcbefbc5
Renamed pre_create_shims to pre_install. Much better.
2014-08-14 22:21:14 -06:00
Kody Brown
7d62d005da
Added a new event 'before_create_shims'.. the json file uses 'before_shims', but I spelled it out in the ps code. Don't really like the name of either, but I needed the functionality for gow.json (incoming).
2014-08-14 20:20:36 -06:00
Luke Sampson
0ee6b97abb
Let 7-zip extract .xz files too
2014-07-25 11:36:59 +10:00
Luke Sampson
b68c737cf4
fix for #129
2014-07-17 09:06:43 +10:00
Luke Sampson
2a3427bdd7
fix for install where username contains spaces (see #128 )
2014-07-16 10:56:37 +10:00
Luke Sampson
26195a626d
experimenting with possible solution for #126 where packages aren't accessible after updating an app
2014-07-15 13:44:44 +10:00
Luke Sampson
df1567c778
workarounds for windows not handling 'long' (260 char) paths (see #127 )
2014-07-10 02:38:42 +10:00
Luke Sampson
b70a107d45
handle int/string mismatch when comparing versions
2014-06-23 09:27:43 +10:00
Luke Sampson
bf02a335d9
Use Scoop/1.0 user agent for downloads
2014-05-26 09:38:14 +10:00
Luke Sampson
a8ea0b8b20
enable log for MSI extract, and show a better error message when it fails (see #105 )
2014-05-15 13:20:29 +10:00
Luke Sampson
b4ab131d91
add proxy support, see #86
2014-05-12 12:42:55 +10:00
Luke Sampson
482f9b6637
add config command
2014-05-12 10:19:13 +10:00
Luke Sampson
655e346999
experimental path override for #52
2014-03-25 12:28:37 +10:00
Luke Sampson
f0f678261a
fix for issue #83 : handle space in path when extracting MSI
2014-03-21 14:10:58 +10:00
Luke Sampson
69c11d449a
Revert "updated for new color naming in concfg (see lukesampson/concfg#3"
...
This reverts commit d4ff02bbef .
2014-03-17 18:08:33 +10:00
Luke Sampson
d4ff02bbef
updated for new color naming in concfg (see lukesampson/concfg#3
2014-03-17 15:58:49 +10:00
Luke Sampson
31410a12ba
fix for unzip when .NET version pre 4.5: ensure output directory exists first (issue #80 )
2014-03-16 10:05:11 +10:00
Luke Sampson
619a7a1b05
cache show: handle 1 file
2014-03-03 17:52:55 +10:00
Luke Sampson
5e0b74630e
improved comment
2014-02-21 19:57:38 +10:00