Skip to content

Commit

Permalink
Use shortened installer links
Browse files Browse the repository at this point in the history
  • Loading branch information
Qwerty-133 committed Jul 11, 2023
1 parent b820e74 commit 6dfbea8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
15 changes: 5 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@
Paste the following and hit enter:

```powershell
Invoke-WebRequest -UseBasicParsing https://raw.githubusercontent.com/Qwerty-133/spcache/main/bin/install_spcache.ps1 |
Invoke-Expression
Invoke-WebRequest -UseBasicParsing https://qwertie.pages.dev/install_spcache.ps1 | Invoke-Expression
```

### MacOS/Linux

```bash
curl -sSL https://raw.githubusercontent.com/Qwerty-133/spcache/main/bin/install_spcache.sh | bash -s -
curl -sSL https://qwertie.pages.dev/install_spcache.sh | bash -s -
```

## Usage
Expand Down Expand Up @@ -78,8 +77,7 @@ Spotify displays the current cache size inside the Storage section in the Settin
### Windows

```powershell
Invoke-WebRequest -UseBasicParsing https://raw.githubusercontent.com/Qwerty-133/spcache/main/bin/uninstall_spcache.ps1 |
Invoke-Expression
Invoke-WebRequest -UseBasicParsing https://qwertie.pages.dev/uninstall_spcache.ps1 | Invoke-Expression
```

This will remove the spcache files and remove spcache from your PATH.
Expand All @@ -101,9 +99,7 @@ rm -r "~/.local/share/spcache" || rm -r "${XDG_DATA_HOME}/spcache"
Installing a specific version of spcache:

```powershell
$script = [scriptblock]::Create(
(iwr -useb "https://raw.githubusercontent.com/Qwerty-133/spcache/main/bin/install_spcache.ps1").Content
)
$script = [scriptblock]::Create((iwr -useb "https://qwertie.pages.dev/install_spcache.ps1").Content)
& $script -Version 1.0.0
```
Expand All @@ -112,8 +108,7 @@ $script = [scriptblock]::Create(
Installing a specific version of spcache:
```bash
curl -sSL https://raw.githubusercontent.com/Qwerty-133/spcache/main/bin/install_spcache.sh |
bash -s - --version 1.0.0
curl -sSL https://qwertie.pages.dev/install_spcache.sh | bash -s - --version 1.0.0
```
## Installing from PyPI
Expand Down
2 changes: 1 addition & 1 deletion tests/bin/test_bash_online.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

. ./tests/bin/helpers/utils.sh

readonly LINK="https://qwertie.pages.dev/bin/install_spcache.sh"
readonly LINK="https://qwertie.pages.dev/install_spcache.sh"
bash_command="curl -sSL '${LINK}' --header '${HEADER}' | bash -s - -y -s bash 1>/dev/null"
fish_command="curl -sSL '${LINK}' --header '${HEADER}' | bash -s - -y -s fish 1>/dev/null"
zsh_command="curl -sSL '${LINK}' --header '${HEADER}' | bash -s - -y -s zsh 1>/dev/null"
Expand Down
4 changes: 2 additions & 2 deletions tests/bin/test_pwsh_online.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ param ()
Import-Module "./tests/bin/helpers/utils.psm1"
$ErrorActionPreference = "Stop"

$install_link = "https://qwertie.pages.dev/bin/install_spcache.ps1"
$uninstall_link = "https://qwertie.pages.dev/bin/uninstall_spcache.ps1"
$install_link = "https://qwertie.pages.dev/install_spcache.ps1"
$uninstall_link = "https://qwertie.pages.dev/uninstall_spcache.ps1"

Write-Green "Test a basic installation using invoke-expression"
Invoke-WebRequest -UseBasicParsing -Headers $headers $install_link | Invoke-Expression
Expand Down

0 comments on commit 6dfbea8

Please sign in to comment.