File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ Write-Host "1. Create the 'devproxy' directory in the current working folder"
10
10
Write-Host " 2. Download the latest beta Dev Proxy release"
11
11
Write-Host " 3. Unzip the release in the devproxy directory"
12
12
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"
14
15
Write-Host " "
15
16
Write-Host " Continue (y/n)? " - NoNewline
16
17
$response = [System.Console ]::ReadKey().KeyChar
@@ -80,6 +81,9 @@ if ($os -match "Linux" -or $os -match "Darwin") {
80
81
chmod + x ./ devproxy ./ libe_sqlite3.dylib
81
82
}
82
83
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
+
83
87
if (! (Test-Path $PROFILE.CurrentUserAllHosts )) {
84
88
Write-Host " Creating `$ PROFILE.CurrentUserAllHosts..."
85
89
New-Item - ItemType File - Force - Path $PROFILE.CurrentUserAllHosts | Out-Null
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ echo "1. Create the 'devproxy' directory in the current working folder"
11
11
echo " 2. Download the latest beta Dev Proxy release"
12
12
echo " 3. Unzip the release in the devproxy directory"
13
13
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"
15
16
echo " "
16
17
17
18
if [ -t 0 ]; then
@@ -72,6 +73,9 @@ rm ./devproxy.zip
72
73
echo " Configuring devproxy and its files as executable..."
73
74
chmod +x ./devproxy ./libe_sqlite3.dylib
74
75
76
+ echo " Configuring new version notifications for the beta channel..."
77
+ sed -i ' ' ' s/"newVersionNotification": "stable"/"newVersionNotification": "beta"/g' ./devproxyrc.json
78
+
75
79
echo " Adding devproxy to the PATH environment variable in your shell profile..."
76
80
77
81
if [[ " :$PATH :" != * " :$full_path :" * ]]; then
You can’t perform that action at this time.
0 commit comments