Skip to content

Commit 8c73cb6

Browse files
committed
Include Libs in src
Added powershell script for release builds
1 parent 1f5a407 commit 8c73cb6

12 files changed

Lines changed: 33 additions & 0 deletions

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,3 +363,10 @@ FodyWeavers.xsd
363363

364364
# Jetbrains
365365
.idea/
366+
367+
# Release build outputs
368+
InputTyper*.zip
369+
370+
# Include dependecies
371+
!*/Libs/x64
372+
!*/Libs/ARM64

Build.ps1

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
$ErrorActionPreference = "Stop"
2+
3+
$projectDirectory = "$PSScriptRoot\Community.PowerToys.Run.Plugin.InputTyper"
4+
[xml]$xml = Get-Content -Path "$projectDirectory\Community.PowerToys.Run.Plugin.InputTyper.csproj"
5+
$version = $xml.Project.PropertyGroup.Version
6+
$version = "$version".Trim()
7+
8+
foreach ($platform in "ARM64", "x64")
9+
{
10+
if (Test-Path -Path "$projectDirectory\bin")
11+
{
12+
Remove-Item -Path "$projectDirectory\bin\*" -Recurse
13+
}
14+
15+
if (Test-Path -Path "$projectDirectory\obj")
16+
{
17+
Remove-Item -Path "$projectDirectory\obj\*" -Recurse
18+
}
19+
20+
dotnet build $projectDirectory.sln -c Release /p:Platform=$platform
21+
22+
Remove-Item -Path "$projectDirectory\bin\*" -Recurse -Include *.xml, *.pdb, PowerToys.*, Wox.*
23+
Rename-Item -Path "$projectDirectory\bin\$platform\Release" -NewName "InputTyper"
24+
25+
Compress-Archive -Path "$projectDirectory\bin\$platform\InputTyper" -DestinationPath "$PSScriptRoot\InputTyper-$version-$platform.zip"
26+
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)