From 33feb7e6ffd139a86adcc488f8da3df11bc16934 Mon Sep 17 00:00:00 2001 From: Anthony Steiner Date: Sun, 2 Oct 2022 14:50:14 -0400 Subject: [PATCH] build automatically appends version now. --- LoupedeckPackage.yaml | 2 +- build-plugin.ps1 | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/LoupedeckPackage.yaml b/LoupedeckPackage.yaml index 88c1526..9e6e528 100644 --- a/LoupedeckPackage.yaml +++ b/LoupedeckPackage.yaml @@ -1,7 +1,7 @@ type: plugin4 name: Webhooks displayName: Webhooks -version: 1.0.1 +version: x.x.x author: Steinerd.com copyright: Copyright (c) 2022 Anthony Steiner diff --git a/build-plugin.ps1 b/build-plugin.ps1 index 9a6737f..bf404ee 100644 --- a/build-plugin.ps1 +++ b/build-plugin.ps1 @@ -17,6 +17,8 @@ New-Item -Path "$buildPath" -Force -Name "bin" -ItemType "directory" > $null New-Item -Path "$buildPath" -Force -Name "metadata" -ItemType "directory" > $null Copy-Item "$loupedeckYaml" -Force -Destination "$buildPath\metadata\$loupedeckYaml" > $null +((Get-Content -Path "$buildPath\metadata\$loupedeckYaml" -Raw) -replace 'x.x.x', $version) | Set-Content "$buildPath\metadata\$loupedeckYaml" + Copy-Item "$($project)Plugin\Resources\256.png" -Force -Destination "$buildPath\metadata\256.png" > $null Copy-Item "$dllPath\$dllName" -Force -Destination "$buildPath\bin\$dllName" > $null