mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-02-14 17:49:53 +00:00
docs: add new webi.sh and webi.ms
This commit is contained in:
@@ -70,7 +70,7 @@ You can do this **in about 30 seconds**:
|
||||
1. Run [`git-config-gpg`](https://webinstall.dev/git-config-gpg) from Webi:
|
||||
```sh
|
||||
# On Mac & Linux
|
||||
curl https://webinstall.dev/git-config-gpg | sh
|
||||
curl https://webi.sh/git-config-gpg | sh
|
||||
```
|
||||
2. Copy the GPG public key (it will be printed to your screen)
|
||||
3. Add it to your GitHub profile: <https://github.com/settings/gpg/new>
|
||||
|
||||
10
README.md
10
README.md
@@ -10,7 +10,7 @@
|
||||
- in short: no nonsense
|
||||
|
||||
```sh
|
||||
curl https://webinstall.dev/webi | sh
|
||||
curl https://webi.sh/webi | sh
|
||||
```
|
||||
|
||||
This repository contains the primary and community-submitted packages for
|
||||
@@ -41,7 +41,7 @@ More technically:
|
||||
- (re-)linking directories
|
||||
4. `<package>/install.sh` may provide functions to override `_webi/template.sh`
|
||||
5. Recap:
|
||||
- `curl https://webinstall.dev/<pkg>` => `bootstrap-<pkg>.sh`
|
||||
- `curl https://webi.sh/<pkg>` => `bootstrap-<pkg>.sh`
|
||||
- `sh bootstrap-<pkg>.sh` =>
|
||||
`https://webinstall.dev/api/installers/<pkg>@<ver>.sh?formats=zip,tar`
|
||||
- `sh install-<pkg>.sh` => download, unpack, move, link, update PATH
|
||||
@@ -273,7 +273,7 @@ set WEBI_HOST=https://webinstall.dev
|
||||
Windows has curl too!?
|
||||
|
||||
```bat
|
||||
curl.exe -sL -A "MS" https://webinstall.dev/node | powershell
|
||||
curl.exe -sL https://webi.ms/node | powershell
|
||||
```
|
||||
|
||||
And it's easy enough to ignore the execution policy
|
||||
@@ -286,11 +286,11 @@ And if we want something that looks as complicated as we expect Windows to be,
|
||||
historically, we have options:
|
||||
|
||||
```bat
|
||||
powershell "Invoke-Expression ( Invoke-WebRequest -UseBasicParsing https://webinstall.dev/node ).Contents"
|
||||
powershell "Invoke-Expression ( Invoke-WebRequest -UseBasicParsing https://webi.ms/node ).Contents"
|
||||
```
|
||||
|
||||
```bat
|
||||
powershell ( Invoke-WebRequest -UseBasicParsing https://webinstall.dev/node ).Contents | powershell
|
||||
powershell ( Invoke-WebRequest -UseBasicParsing https://webi.ms/node ).Contents | powershell
|
||||
```
|
||||
|
||||
-->
|
||||
|
||||
@@ -20,13 +20,13 @@ npm install -g webi
|
||||
Mac & Linux:
|
||||
|
||||
```sh
|
||||
curl -fsS https://webinstall.dev/node | sh
|
||||
curl -fsS https://webi.sh/node | sh
|
||||
```
|
||||
|
||||
Windows (includes `curl.exe` and PowerShell by default):
|
||||
|
||||
```sh
|
||||
curl.exe -fsSA "MS" https://webinstall.dev/node | powershell
|
||||
curl.exe -fsSA "MS" https://webi.ms/node | powershell
|
||||
```
|
||||
|
||||
## Example: Switching node versions
|
||||
|
||||
@@ -14,27 +14,22 @@ if (/^win/i.test(os.platform())) {
|
||||
console.warn("This npm installer doesn't work on windows yet.");
|
||||
console.warn('Copy and paste this into cmd.exe or PowerShell instead:');
|
||||
console.warn('');
|
||||
console.warn(
|
||||
" curl.exe -fsSA 'MS' https://webinstall.dev/webi | powershell"
|
||||
);
|
||||
console.warn(' curl.exe -fsS https://webi.ms/webi | powershell');
|
||||
console.warn('');
|
||||
return;
|
||||
}
|
||||
|
||||
exec(
|
||||
'curl -fsS https://webinstall.dev/webi | sh',
|
||||
function (err, stdout, stderr) {
|
||||
if (err) {
|
||||
console.error(err);
|
||||
}
|
||||
if (stdout) {
|
||||
console.info(stdout);
|
||||
}
|
||||
if (stderr) {
|
||||
console.error(stderr);
|
||||
}
|
||||
exec('curl -fsS https://webi.sh/webi | sh', function(err, stdout, stderr) {
|
||||
if (err) {
|
||||
console.error(err);
|
||||
}
|
||||
);
|
||||
if (stdout) {
|
||||
console.info(stdout);
|
||||
}
|
||||
if (stderr) {
|
||||
console.error(stderr);
|
||||
}
|
||||
});
|
||||
/*
|
||||
.then(function () {
|
||||
// nada
|
||||
|
||||
@@ -210,7 +210,7 @@ From macOS you can easily cross-compile cgo for Windows and Linux.
|
||||
Install [brew](https://webinstall.dev/brew), if needed:
|
||||
|
||||
```sh
|
||||
curl -sS https://webinstall.dev/brew | sh
|
||||
curl -sS https://webi.sh/brew | sh
|
||||
```
|
||||
|
||||
Install mingw and musl-cross: \
|
||||
|
||||
@@ -22,7 +22,7 @@ This installs two commands.
|
||||
The easiest way to get your GnuPG Public Key:
|
||||
|
||||
```sh
|
||||
curl https://webinstall.dev/gpg-pubkey | sh
|
||||
curl https://webi.sh/gpg-pubkey | sh
|
||||
```
|
||||
|
||||
This is what the output of `gpg-pubkey` looks like (except much longer):
|
||||
|
||||
@@ -17,7 +17,7 @@ For example, if you wanted to install Node.js with powershell and
|
||||
webinstall.dev, you can:
|
||||
|
||||
```cmd
|
||||
curl.exe -s -A "MS" https://webinstall.dev/node@lts | powershell
|
||||
curl.exe -s https://webi.ms/node@lts | powershell
|
||||
```
|
||||
-->
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ tagline: |
|
||||
The easiest way to get your SSH Public Key:
|
||||
|
||||
```sh
|
||||
curl https://webinstall.dev/ssh-pubkey | sh
|
||||
curl https://webi.sh/ssh-pubkey | sh
|
||||
```
|
||||
|
||||
```txt
|
||||
|
||||
@@ -27,7 +27,7 @@ Since `webi` is just a small helper script, it always updates on each use.
|
||||
You can install _exactly_ what you need, from memory, via URL:
|
||||
|
||||
```sh
|
||||
curl https://webinstall.dev/node@lts | sh
|
||||
curl https://webi.sh/node@lts | sh
|
||||
```
|
||||
|
||||
Or via `webi`, the tiny `curl | sh` shortcut command that comes with each
|
||||
|
||||
Reference in New Issue
Block a user