-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-plugin.ps1
24 lines (20 loc) · 750 Bytes
/
build-plugin.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$version = "1.0"
$project = "RemoteApps"
$dllName = "RemoteAppsPlugin.dll"
$dllPath = "$($env:LOCALAPPDATA)\Loupedeck\Plugins\$project"
$buildPath = ".builds"
$outputFileName = "$project"
$zipPath = "$buildPath\$outputFileName.zip"
$pluginName = "$outputFileName.lplug4"
$loupedeckYaml = "LoupedeckPackage.yaml"
$cwd = Get-Location
New-Item -Path "$buildPath" -Force -Name "bin" -ItemType "directory" > $null
Copy-Item $loupedeckYaml -Force -Destination $buildPath > $null
Copy-Item "$dllPath\$dllName" -Force -Destination "$buildPath\bin\$dllName" > $null
$compress = @{
Path = "$buildPath\*"
CompressionLevel = "Fastest"
DestinationPath = $zipPath
}
Compress-Archive @Compress > $null
Rename-Item $zipPath -Force -NewName $pluginName > $null