@@ -9,11 +9,11 @@ Add-Type -AssemblyName System.IO.Compression.FileSystem
99$SkinsDir = Get-Item (join-path - Path $SolutionDir - ChildPath " examples" )
1010$SkinsRegex = [regex ]::Escape($SkinsDir.Fullname )
1111
12- $version = ' '
12+ $version = ' 0.2.5.0522 '
1313$skinfile = $SolutionDir + " bin\MqttClient_$version .rmskin"
1414
1515# Create RMSKIN.ini
16- Set-Content - Path " $SolutionDir \bin\RMSKIN.ini" - Value " [rmskin]`n Name=MqttPlugin`n Author=NetwiZe.be`n Version=0.2.5.0522 `n MinimumRainmeter=4.3.1.3321`n MinimumWindows=10.0"
16+ Set-Content - Path " $SolutionDir \bin\RMSKIN.ini" - Value " [rmskin]`n Name=MqttPlugin`n Author=NetwiZe.be`n Version=$version `n MinimumRainmeter=4.3.1.3321`n MinimumWindows=10.0"
1717
1818# Delete Rmskin file if it exists
1919if (Test-Path $skinfile ) { Remove-Item $skinfile }
@@ -34,17 +34,17 @@ $entries = @()
3434$entries += Get-ChildItem - File (" $SkinsDir " ) - Recurse |
3535Sort-Object DirectoryName, FullName |
3636% {
37- $shortName = $_.FullName -replace $SkinsRegex , " Skins\MqttClient"
37+ $shortName = $_.FullName -replace $SkinsRegex , " Skins\MqttClient"
3838 [System.IO.Compression.ZipFileExtensions ]::CreateEntryFromFile($rmskin , $_.FullName , $shortName , ' optimal' )
3939}
4040
4141# Add Plugins
42- $dllfile = $Targetpath -replace " x64" , " x86"
42+ $dllfile = $Targetpath -replace " x64" , " x86"
4343if (Test-Path $dllfile ) {
4444 $entries += [System.IO.Compression.ZipFileExtensions ]::CreateEntryFromFile($rmskin , $dllfile , ' Plugins\32bit\MqttClient.dll' , ' optimal' )
4545}
4646
47- $dllfile = $Targetpath -replace " x86" , " x64"
47+ $dllfile = $Targetpath -replace " x86" , " x64"
4848if (Test-Path $dllfile ) {
4949 $entries += [System.IO.Compression.ZipFileExtensions ]::CreateEntryFromFile($rmskin , $dllfile , ' Plugins\64bit\MqttClient.dll' , ' optimal' )
5050}
0 commit comments