Skip to content

Commit e5471ec

Browse files
Updates beta install script to enable beta update channel. Closes #522 (#524)
1 parent 93bef5e commit e5471ec

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

scripts/setup-beta.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ Write-Host "1. Create the 'devproxy' directory in the current working folder"
1010
Write-Host "2. Download the latest beta Dev Proxy release"
1111
Write-Host "3. Unzip the release in the devproxy directory"
1212
Write-Host "4. Configure devproxy and its files as executable (Linux and macOS only)"
13-
Write-Host "5. Add the devproxy directory to your PATH environment variable in `$PROFILE.CurrentUserAllHosts"
13+
Write-Host "5. Configure new version notifications for the beta channel"
14+
Write-Host "6. Add the devproxy directory to your PATH environment variable in `$PROFILE.CurrentUserAllHosts"
1415
Write-Host ""
1516
Write-Host "Continue (y/n)? " -NoNewline
1617
$response = [System.Console]::ReadKey().KeyChar
@@ -80,6 +81,9 @@ if ($os -match "Linux" -or $os -match "Darwin") {
8081
chmod +x ./devproxy ./libe_sqlite3.dylib
8182
}
8283

84+
Write-Host "Configuring new version notifications for the beta channel..."
85+
(Get-Content -Path devproxyrc.json) -replace '"newVersionNotification": "stable"', '"newVersionNotification": "beta"' | Set-Content -Path devproxyrc.json
86+
8387
if (!(Test-Path $PROFILE.CurrentUserAllHosts)) {
8488
Write-Host "Creating `$PROFILE.CurrentUserAllHosts..."
8589
New-Item -ItemType File -Force -Path $PROFILE.CurrentUserAllHosts | Out-Null

scripts/setup-beta.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ echo "1. Create the 'devproxy' directory in the current working folder"
1111
echo "2. Download the latest beta Dev Proxy release"
1212
echo "3. Unzip the release in the devproxy directory"
1313
echo "4. Configure devproxy and its files as executable"
14-
echo "5. Add the devproxy directory to your PATH environment variable in your shell profile"
14+
echo "5. Configure new version notifications for the beta channel"
15+
echo "6. Add the devproxy directory to your PATH environment variable in your shell profile"
1516
echo ""
1617

1718
if [ -t 0 ]; then
@@ -72,6 +73,9 @@ rm ./devproxy.zip
7273
echo "Configuring devproxy and its files as executable..."
7374
chmod +x ./devproxy ./libe_sqlite3.dylib
7475

76+
echo "Configuring new version notifications for the beta channel..."
77+
sed -i '' 's/"newVersionNotification": "stable"/"newVersionNotification": "beta"/g' ./devproxyrc.json
78+
7579
echo "Adding devproxy to the PATH environment variable in your shell profile..."
7680

7781
if [[ ":$PATH:" != *":$full_path:"* ]]; then

0 commit comments

Comments
 (0)