-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added powershell script for release builds
- Loading branch information
1 parent
1f5a407
commit 8c73cb6
Showing
12 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 added
BIN
+21.4 KB
Community.PowerToys.Run.Plugin.InputTyper/Libs/ARM64/PowerToys.Common.UI.dll
Binary file not shown.
Binary file added
BIN
+40 KB
Community.PowerToys.Run.Plugin.InputTyper/Libs/ARM64/PowerToys.ManagedCommon.dll
Binary file not shown.
Binary file added
BIN
+222 KB
Community.PowerToys.Run.Plugin.InputTyper/Libs/ARM64/PowerToys.Settings.UI.Lib.dll
Binary file not shown.
Binary file added
BIN
+79.4 KB
Community.PowerToys.Run.Plugin.InputTyper/Libs/ARM64/Wox.Infrastructure.dll
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+21.4 KB
Community.PowerToys.Run.Plugin.InputTyper/Libs/x64/PowerToys.Common.UI.dll
Binary file not shown.
Binary file added
BIN
+39.9 KB
Community.PowerToys.Run.Plugin.InputTyper/Libs/x64/PowerToys.ManagedCommon.dll
Binary file not shown.
Binary file added
BIN
+222 KB
Community.PowerToys.Run.Plugin.InputTyper/Libs/x64/PowerToys.Settings.UI.Lib.dll
Binary file not shown.
Binary file added
BIN
+79.4 KB
Community.PowerToys.Run.Plugin.InputTyper/Libs/x64/Wox.Infrastructure.dll
Binary file not shown.
Binary file not shown.