Skip to content

Commit

Permalink
pbi-tools 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
flcdrg committed Nov 2, 2024
1 parent 33ec628 commit 77da9f1
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 5 deletions.
8 changes: 5 additions & 3 deletions pbi-tools/pbi-tools.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>pbi-tools</id>
<version>1.0.0-rc02</version>
<version>1.1.1</version>
<packageSourceUrl>https://github.com/flcdrg/au-packages/tree/master/pbi-tools</packageSourceUrl>
<owners>flcdrg</owners>
<title>pbi-tools</title>
<authors>Mathias Thierbach</authors>
<projectUrl>https://pbi.tools/</projectUrl>
<iconUrl>https://pbi.tools/images/company_logo.png</iconUrl>
<iconUrl>https://rawcdn.githack.com/flcdrg/au-packages/33ec628bb4b38f7af7616a47b2324de34c648998/pbi-tools/icons/pbi-tools.png</iconUrl>
<copyright>Mathias Thierbach</copyright>
<licenseUrl>https://raw.githubusercontent.com/pbi-tools/pbi-tools/main/LICENSE</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
Expand All @@ -25,7 +25,9 @@
- Windows 64-bit
- Power BI Desktop 64-bit. Installer version (default location) and/or Windows Store version supported. Optionally, pbi-tools works with Power BI Desktop in a custom location, provided the path is specified in the `PBITOOLS_PbiInstallDir` environment variable.
- .Net Framework Runtime 4.7.2 (Comes with Power BI Desktop)
</description>
</description><releaseNotes><![CDATA[- Resolves [#351](https://github.com/pbi-tools/pbi-tools/issues/351)
- Implements workaround for linux-specific bug in TOM
- Adds CI integration test performing an e2e semantic model deployment (TMDL)]]></releaseNotes>
</metadata>
<files>
<file src="tools\**" target="tools" />
Expand Down
7 changes: 5 additions & 2 deletions pbi-tools/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
$ErrorActionPreference = 'Stop';
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

$url64 = 'https://github.com/pbi-tools/pbi-tools/releases/download/1.1.1/pbi-tools.1.1.1.zip'
$checksum64 = 'f2d0a26f68f9ac20a8729513dad850cf9253182c86637209bd49e6753cfe2a77'

$packageArgs = @{
packageName = $env:ChocolateyPackageName
softwareName = 'pbi-tools*'
fileType = 'zip'
silentArgs = ''

validExitCodes= @(0)
url64 = "https://github.com/pbi-tools/pbi-tools/releases/download/1.0.0-rc.2/pbi-tools.1.0.0-rc.2.zip" #download URL, HTTPS preferrred
checksum64 = '2DA0061A53C17BA1B2840BF89EF58B496F9AAB1355FB09A16094D3E3FFB6E934'
url64 = $url64
checksum64 = $checksum64
checksumType64= 'sha256'
destination = $toolsDir
}
Expand Down
46 changes: 46 additions & 0 deletions pbi-tools/update.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
Import-Module chocolatey-au

$ErrorActionPreference = 'Stop'

function global:au_SearchReplace {
@{
".\tools\chocolateyInstall.ps1" = @{
"(?i)(^[$]url64\s*=\s*)'.*'" = "`${1}'$($Latest.URL64)'"
"(?i)(^[$]checksum64\s*=\s*)'.*'" = "`${1}'$($Latest.Checksum64)'"
}
}
}

. ../_scripts/GitHub.ps1

function global:au_GetLatest {
$release = Get-GitHubLatestRelease "pbi-tools/pbi-tools"

$version = Get-ReleaseVersion -release $release

# Convert semver2 to semver1
$version = $version.Replace("-beta.", "-beta").Replace("-rc.", "-rc")

if (-not $version) {
Write-Warning "Couldn't find version number"
return "Ignore"
}

$assets = Invoke-RestMethod -Method Get -Uri $release.assets_url -Headers $headers

# filename 'pbi-tools.1.1.1.zip'
$asset64 = $assets | Where-Object { $_.name -match 'pbi-tools\.\d+\.\d+\.\d+\.zip' } | Select-Object -First 1

$Latest = @{
Version = $version
Url64 = $asset64.browser_download_url
ReleaseNotes = $release.body.Replace("# ", "## ") # Increase heading levels
}
return $Latest
}

function global:au_AfterUpdate ($Package) {
Update-ReleaseNotes $Package
}

update -ChecksumFor 64

0 comments on commit 77da9f1

Please sign in to comment.