Skip to content

Commit

Permalink
Include Libs in src
Browse files Browse the repository at this point in the history
Added powershell script for release builds
  • Loading branch information
CoreyHayward committed Dec 22, 2023
1 parent 1f5a407 commit 8c73cb6
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -363,3 +363,10 @@ FodyWeavers.xsd

# Jetbrains
.idea/

# Release build outputs
InputTyper*.zip

# Include dependecies
!*/Libs/x64
!*/Libs/ARM64
26 changes: 26 additions & 0 deletions Build.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
$ErrorActionPreference = "Stop"

$projectDirectory = "$PSScriptRoot\Community.PowerToys.Run.Plugin.InputTyper"
[xml]$xml = Get-Content -Path "$projectDirectory\Community.PowerToys.Run.Plugin.InputTyper.csproj"
$version = $xml.Project.PropertyGroup.Version
$version = "$version".Trim()

foreach ($platform in "ARM64", "x64")
{
if (Test-Path -Path "$projectDirectory\bin")
{
Remove-Item -Path "$projectDirectory\bin\*" -Recurse
}

if (Test-Path -Path "$projectDirectory\obj")
{
Remove-Item -Path "$projectDirectory\obj\*" -Recurse
}

dotnet build $projectDirectory.sln -c Release /p:Platform=$platform

Remove-Item -Path "$projectDirectory\bin\*" -Recurse -Include *.xml, *.pdb, PowerToys.*, Wox.*
Rename-Item -Path "$projectDirectory\bin\$platform\Release" -NewName "InputTyper"

Compress-Archive -Path "$projectDirectory\bin\$platform\InputTyper" -DestinationPath "$PSScriptRoot\InputTyper-$version-$platform.zip"
}
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.
Binary file not shown.
Binary file not shown.

0 comments on commit 8c73cb6

Please sign in to comment.