Skip to content

Commit 66a867a

Browse files
Merge pull request #16 from xcomponent/updatescript
update scripts
2 parents 3e5e221 + 33b4478 commit 66a867a

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

docs/en/scripts/appcontrolinstall.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,12 @@ $response = Invoke-RestMethod -Uri $apiEndpoint -Method Get
5656
# Assuming the API returns a string, you can access it like this
5757
$codeString = $response
5858

59+
$machineName = [System.Environment]::MachineName
60+
5961

6062
# Display a clickable hyperlink in PowerShell 7 or Windows Terminal
61-
Write-Host "Please, log-in here " -ForegroundColor Blue -NoNewline
62-
Write-Host " $appcontrolRootUrl/register/gateways" -NoNewline -ForegroundColor Green
63+
Write-Host "Please, log-in here " -ForegroundColor Green -NoNewline
64+
Write-Host " $appcontrolRootUrl/register/gateways?code=$codeString&gatewayName=$machineName" -NoNewline -ForegroundColor Blue
6365
Write-Host " and enter this code: $codeString"
6466

6567
# Define the interval between each poll (in seconds)

docs/en/scripts/appcontrolinstallmac.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ check_login_status() {
2626
brew install jq >/dev/null
2727

2828
# Display clickable hyperlink
29-
echo "Please, log-in here $appcontrolRootUrl/register/gateways and enter this code: $codeString"
29+
echo "Please, log-in here $appcontrolRootUrl/register/gateways?$codeString&gatewayName=$HOST and enter this code: $codeString"
3030

3131
# Define the interval between each poll (in seconds)
3232
pollingInterval=5
@@ -125,15 +125,15 @@ sudo chmod -R 755 "$INSTALL_DIR"
125125
BOOST_VERSION="1.83"
126126

127127
# Install Boost
128-
brew install boost@$BOOST_VERSION
128+
brew install boost@$BOOST_VERSION --quiet
129129

130130
# Install libssh2
131-
brew install libssh2
131+
brew install libssh2 --quiet
132132

133133
# Install OpenSSL@3
134-
brew install openssl@3
134+
brew install openssl@3 --quiet
135135

136-
brew install mono
136+
brew install mono --quiet
137137

138138
# Set environment variables for the build process
139139
export LDFLAGS="-L/usr/local/opt/openssl@3/lib"

0 commit comments

Comments
 (0)