Skip to content

Commit

Permalink
Merge pull request #487 from machv/rebranding
Browse files Browse the repository at this point in the history
Rebranding
  • Loading branch information
machv authored Jan 18, 2022
2 parents fef57e6 + 4e95299 commit 4d5ffe6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,5 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./Release.zip
asset_name: wslab_${{ needs.new-version.outputs.new_tag }}.zip
asset_name: mslab_${{ needs.new-version.outputs.new_tag }}.zip
asset_content_type: application/zip
6 changes: 3 additions & 3 deletions Scripts/0_Shared.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ function New-TelemetryEvent {
time = $([System.dateTime]::UtcNow.ToString("o"))
iKey = $TelemetryInstrumentationKey
tags = @{
"ai.internal.sdkVersion" = 'wslab-telemetry:1.0.1'
"ai.application.ver" = $wslabVersion
"ai.internal.sdkVersion" = 'mslab-telemetry:1.0.2'
"ai.application.ver" = $mslabVersion
"ai.cloud.role" = Split-Path -Path $PSCommandPath -Leaf
"ai.session.id" = $TelemetrySessionId
"ai.user.id" = $machineHash
Expand Down Expand Up @@ -361,7 +361,7 @@ function Read-TelemetryLevel {

# Instance values
$ScriptRoot = $PSScriptRoot
$wslabVersion = "dev"
$mslabVersion = "dev"
$TelemetryEnabledLevels = "Basic", "Full"
$TelemetryInstrumentationKey = "9ebf64de-01f8-4f60-9942-079262e3f6e0"
$TelemetrySessionId = $ScriptRoot + $env:COMPUTERNAME + ((Get-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Cryptography).MachineGuid) | Get-StringHash
Expand Down
4 changes: 2 additions & 2 deletions Scripts/Cleanup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ If (-not $isAdmin) {
if ((Get-ChildItem -Path "$PSScriptRoot\temp\mountdir" -ErrorAction SilentlyContinue)){
Dismount-WindowsImage -Path "$PSScriptRoot\temp\mountdir" -Discard -ErrorAction SilentlyContinue
}
if ((Get-ChildItem -Path "$env:Temp\WSLAbMountdir" -ErrorAction SilentlyContinue)){
Dismount-WindowsImage -Path "$env:Temp\WSLAbMountdir" -Discard -ErrorAction SilentlyContinue
if ((Get-ChildItem -Path "$env:Temp\MSLAbMountdir" -ErrorAction SilentlyContinue)){
Dismount-WindowsImage -Path "$env:Temp\MSLAbMountdir" -Discard -ErrorAction SilentlyContinue
}

#ask for cleanup and clean all if confirmed.
Expand Down
4 changes: 2 additions & 2 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ foreach($file in $files) {
}

# special variable populated with current version
if($line -match '^\s*\$wslabVersion') {
$line = $line -replace '\$wslabVersion\s*=\s*"[^"]*"', "`$wslabVersion = `"$Version`""
if($line -match '^\s*\$mslabVersion') {
$line = $line -replace '\$mslabVersion\s*=\s*"[^"]*"', "`$mslabVersion = `"$Version`""
}

$line
Expand Down

0 comments on commit 4d5ffe6

Please sign in to comment.