updated irm to iwr for the progress and

updated one-liner with scoped execution
This commit is contained in:
psyirius 2024-08-21 02:14:40 -07:00
parent 51dd5ee125
commit d73b237550
3 changed files with 7 additions and 5 deletions

View File

@ -23,15 +23,15 @@ Winutil must be run in Admin mode because it performs system-wide tweaks. To ach
### Launch Command ### Launch Command
#### Stable Branch (Recommended) #### Stable Release (Recommended)
```ps1 ```ps1
irm "https://christitus.com/win" | iex iex "& { $(iwr 'https://christitus.com/win') }"
``` ```
#### Dev Branch #### Dev Branch
```ps1 ```ps1
irm "https://christitus.com/windev" | iex iex "& { $(iwr 'https://christitus.com/win') } -preview"
``` ```
If you have Issues, refer to [Known Issues](https://christitustech.github.io/winutil/KnownIssues/) If you have Issues, refer to [Known Issues](https://christitustech.github.io/winutil/KnownIssues/)

View File

@ -20,12 +20,14 @@
.EXAMPLE .EXAMPLE
Launch the latest release of winutil. (one-liner) Launch the latest release of winutil. (one-liner)
Invoke-Expression "& { $(Invoke-RestMethod 'https://christitus.com/win') }" Invoke-Expression "& { $(Invoke-RestMethod 'https://christitus.com/win') }"
iex "& { $(iwr 'https://christitus.com/win') }"
.EXAMPLE .EXAMPLE
Launch the latest preview release of winutil. Launch the latest preview release of winutil.
.\launcher.ps1 -preview .\launcher.ps1 -preview
.EXAMPLE .EXAMPLE
Launch the latest preview release of winutil. (one-liner) Launch the latest preview release of winutil. (one-liner)
Invoke-Expression "& { $(Invoke-RestMethod 'https://christitus.com/win') } -preview" Invoke-Expression "& { $(Invoke-RestMethod 'https://christitus.com/win') } -preview"
iex "& { $(iwr 'https://christitus.com/win') } -preview"
#> #>
[CmdletBinding()] [CmdletBinding()]
param( param(

View File

@ -1,13 +1,13 @@
<# <#
.SYNOPSIS .SYNOPSIS
This Script is used as a target for the https://christitus.com/win/dev alias. This Script is used as a target for the https://christitus.com/win/preview alias.
It queries the latest winget release (no matter if Pre-Release, Draft or Full Release) and invokes It It queries the latest winget release (no matter if Pre-Release, Draft or Full Release) and invokes It
.DESCRIPTION .DESCRIPTION
This Script provides a simple way to always start the bleeding edge release even if it's not yet a full release. This Script provides a simple way to always start the bleeding edge release even if it's not yet a full release.
This function should be run with administrative privileges. This function should be run with administrative privileges.
Because this way of recursively invoking scripts via Invoke-Expression it might very well happen that AV Programs flag this because it's a common way of mulitstage exploits to run Because this way of recursively invoking scripts via Invoke-Expression it might very well happen that AV Programs flag this because it's a common way of mulitstage exploits to run
.EXAMPLE .EXAMPLE
irm https://christitus.com/win/dev | iex iex "& { $(iwr 'https://christitus.com/win/preview') }"
OR OR
Run in Admin Powershell > ./windev.ps1 Run in Admin Powershell > ./windev.ps1
#> #>