Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Commit

Permalink
Correct scriptversion variable to prevent breaking autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
solacelost committed Mar 1, 2020
1 parent 40e0ef5 commit 1aa142f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Bootstrap-ArcDPS.ps1
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<# Run this with the following:
powershell -c "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; ; iex(New-Object Net.WebClient).DownloadString('https://github.com/solacelost/update-arcdps/raw/0.3.3/Bootstrap-ArcDPS.ps1')"
powershell -c "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; ; iex(New-Object Net.WebClient).DownloadString('https://github.com/solacelost/update-arcdps/raw/0.3.4/Bootstrap-ArcDPS.ps1')"
#>

# First, download the Update-ArcDPS.ps1 script
$ScriptPath = $env:APPDATA + '\Update-ArcDPS.ps1'
Invoke-WebRequest "https://github.com/solacelost/update-arcdps/raw/0.3.3/Update-ArcDPS.ps1" -OutFile $ScriptPath
Invoke-WebRequest "https://github.com/solacelost/update-arcdps/raw/0.3.4/Update-ArcDPS.ps1" -OutFile $ScriptPath

$desktop = [system.environment]::GetFolderPath("Desktop")

Expand Down
6 changes: 4 additions & 2 deletions Update-ArcDPS.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@
.NOTES
Name: Update-ArcDPS.ps1
Author: James Harmison
SCRIPT VERSION: 0.3.2
SCRIPT VERSION: 0.3.4
Requires: Powershell v5 or higher.
Version History:
0.3.4 - Corrected scriptversion variable (I really need to automate updating
versions between tags)
0.3.3 - Fixed bad verb (Until vs While !)
0.3.2 - Corrected some help pages, corrected behavior in search, and added
auto-update functionality.
Expand Down Expand Up @@ -111,7 +113,7 @@ param (
[string]$SearchPath="C:\Program F*"
)

$scriptversion = '0.3.2'
$scriptversion = '0.3.4'
$needsupdate = $false

Function Download-Folder([string]$src,
Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ However, some of my guild mates had a hard time downloading ArcDPS or rememberin
![Right Clicking Run](./docs_run.png)
2. Copy the following and paste it into the "Open:" text box:
```
powershell -c "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; ; iex(New-Object Net.WebClient).DownloadString('https://github.com/solacelost/update-arcdps/raw/0.3.3/Bootstrap-ArcDPS.ps1')"
powershell -c "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; ; iex(New-Object Net.WebClient).DownloadString('https://github.com/solacelost/update-arcdps/raw/0.3.4/Bootstrap-ArcDPS.ps1')"
````

![Run Dialog](./docs_run2.png)
Expand All @@ -26,7 +26,7 @@ However, some of my guild mates had a hard time downloading ArcDPS or rememberin
### The auditable way
1. Download the latest Release from [the releases page](https://github.com/solacelost/update-arcdps/releases).
1. Unzip it to the directory of your choice - the location doesn't matter
1. Review the script on your computer to ensure you're okay with what it does - you only need the Update-ArcDPS.ps1 script, not the Bootstrap. You can reach it via the [raw URL](https://raw.githubusercontent.com/solacelost/update-arcdps/0.3.3/Update-ArcDPS.ps1) and copy/paste, if you like.
1. Review the script on your computer to ensure you're okay with what it does - you only need the Update-ArcDPS.ps1 script, not the Bootstrap. You can reach it via the [raw URL](https://raw.githubusercontent.com/solacelost/update-arcdps/0.3.4/Update-ArcDPS.ps1) and copy/paste, if you like.
1. Open a PowerShell window with the -executionpolicy Bypass option set and run the script with -CreateShortcut:
1. Suppose you unzipped Update-ArcDPS.ps1 to your Desktop on the user named James.
1. Right click on your Start button and click "Run", or press Ctrl+R on your keyboard.
Expand Down

0 comments on commit 1aa142f

Please sign in to comment.