Skip to content

Commit

Permalink
restore readme and change type
Browse files Browse the repository at this point in the history
  • Loading branch information
siyuniu-ms committed Apr 24, 2024
1 parent 8f889a9 commit f7b9cbe
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 22 deletions.
1 change: 1 addition & 0 deletions AISKU/README.md
Expand Up @@ -34,6 +34,7 @@ See [Breaking Changes](https://microsoft.github.io/ApplicationInsights-JS/upgrad
| Version | Full Size | Raw Minified | GZip Size
|---------|-----------|--------------|-------------
| [<nightly3>](https://github.com/microsoft/ApplicationInsights-JS/tree/main/AISKU) | [![full size size](https://js.monitor.azure.com/nightly/ai.3-nightly3.js.svg)](https://js.monitor.azure.com/nightly/ai.3-nightly3.js.svg)| ![minified size size](https://js.monitor.azure.com/nightly/ai.3-nightly3.min.js.svg) | ![gzip size](https://js.monitor.azure.com/nightly/ai.3-nightly3.min.js.gzip.svg)
| 3.2.0: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.2.0.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.2.0.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.2.0.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.2.0.min.js.gzip.svg)
| 3.1.2: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.1.2.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.1.2.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.1.2.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.1.2.min.js.gzip.svg)
| 3.1.1: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.1.1.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.1.1.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.1.1.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.1.1.min.js.gzip.svg)
| 3.1.0: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.1.0.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.1.0.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.1.0.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.1.0.min.js.gzip.svg)
Expand Down
15 changes: 3 additions & 12 deletions AISKU/scripts/publishImgToCdn.ps1
Expand Up @@ -86,7 +86,7 @@ if ([string]::IsNullOrWhiteSpace($jsSdkDir) -eq $true) {
}

$cacheControl1Year = "public, max-age=31536000, immutable, no-transform";
$contentType = "text/javascript; charset=utf-8";
$contentType = "image/svg";

Write-LogParams

Expand All @@ -112,16 +112,7 @@ Write-Log "Release Files : $($releaseFiles.Count)"

Write-Log "----------------------------------------------------------------------"

# Publish the full versioned files to all release folders
if ($version.type -eq "svg") {
# Normal publishing deployment
PublishFiles $releaseFiles "scripts/b" $cacheControl1Year $contentType $overwrite
}
else {
# Upload to the test container rather than the supplied one
$global:connectDetails.testOnly = $true
$global:connectDetails.storeContainer = "tst"
PublishFiles $releaseFiles "$($version.type)" $cacheControl1Year $contentType $overwrite
}
# Publish the img to the folder that is same to the script folder.
PublishFiles $releaseFiles "scripts/b" $cacheControl1Year $contentType $overwrite

Write-Log "======================================================================"
20 changes: 10 additions & 10 deletions common/publish/AzureStorageHelper/AzureStorageHelper.psm1
Expand Up @@ -28,7 +28,7 @@ Function InstallRequiredModules (
Write-LogWarning "--------------------------------------"
Write-Log ""
Write-Log "Please install / run the following from an administrator powershell window"
Write-Log "Install-Module AzureRM"
Write-Log "Install-Module Az.Accounts"
Write-Log "Install-Module Az.Storage"
Write-Log ""
Write-Log "Additional Notes for Internal Application Insights Team"
Expand All @@ -38,28 +38,28 @@ Function InstallRequiredModules (
}

$commandsExist = $true
$c = Get-Command Login-AzureRMAccount -errorAction SilentlyContinue
$c = Get-Command Login-AzureAccount -errorAction SilentlyContinue
if ($null -eq $c) {
$commandsExist = $false
} else {
Write-Log "Importing Module $($c.Source) for Login-AzureRMAccount"
Write-Log "Importing Module $($c.Source) for Connect-AzAccount"
Import-Module $c.Source
$c = Get-Command Get-AzureRmStorageAccount -errorAction SilentlyContinue
$c = Get-Command Get-AzStorageAccount -errorAction SilentlyContinue
if ($null -eq $c) {
$commandsExist = $false
} else {
Write-Log "Importing Module $($c.Source) for Get-AzureRmStorageAccount"
Write-Log "Importing Module $($c.Source) for Get-AzStorageAccount"
Import-Module $c.Source
}
}

if ($commandsExist -eq $false) {
# You will need to at least have the AzureRM module installed
$m = Get-Module -ListAvailable -Name "AzureRM"
# You will need to at least have the Az.Storage module installed
$m = Get-Module -ListAvailable -Name "Az.Storage"
if ($null -eq $m) {
Write-Log "The AzureRM module is not currently installed -- it needs to be"
Write-Log "Attempting to Install AzureRM Module"

Write-Log "The Az.Storage module is not currently installed -- it needs to be"
Write-Log "Attempting to Install Az.Storage Module"
InstallRequiredModules $($retry-1)
}
}
Expand Down

0 comments on commit f7b9cbe

Please sign in to comment.