Skip to content

Commit

Permalink
🔨
Browse files Browse the repository at this point in the history
  • Loading branch information
hlaueriksson committed Aug 4, 2024
1 parent 02e287c commit 85e67a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/GEmojiSharp.PowerToysRun/deploy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ dotnet build -c Release /p:TF_BUILD=true /p:Platform=$platform

Write-Output "Platform: $platform"

$libs = Get-ChildItem -Path .\libs -File -Recurse
$dependencies = @("PowerToys.Common.UI.dll", "PowerToys.ManagedCommon.dll", "PowerToys.Settings.UI.Lib.dll", "Wox.Infrastructure.dll", "Wox.Plugin.dll")

$name = ((Split-Path -Path $PWD -Leaf).Split(".")[0]) # -1 last

Write-Output "Deploy: $name"

Remove-Item -LiteralPath "$env:LOCALAPPDATA\Microsoft\PowerToys\PowerToys Run\Plugins\$name" -Recurse -Force -ErrorAction SilentlyContinue
Copy-Item -Path ".\bin\$platform\Release\net8.0-windows" -Destination "$env:LOCALAPPDATA\Microsoft\PowerToys\PowerToys Run\Plugins\$name" -Recurse -Force -Exclude $libs
Copy-Item -Path ".\bin\$platform\Release\net8.0-windows" -Destination "$env:LOCALAPPDATA\Microsoft\PowerToys\PowerToys Run\Plugins\$name" -Recurse -Force -Exclude $dependencies

$machinePath = "C:\Program Files\PowerToys\PowerToys.exe"
$userPath = "$env:LOCALAPPDATA\PowerToys\PowerToys.exe"
Expand Down
4 changes: 2 additions & 2 deletions src/GEmojiSharp.PowerToysRun/pack.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Write-Output "Version: $version"
# Platforms
$platforms = "$($props.Project.PropertyGroup.Platforms)".Trim() -split ";"

$libs = Get-ChildItem -Path .\libs -File -Recurse
$dependencies = @("PowerToys.Common.UI.dll", "PowerToys.ManagedCommon.dll", "PowerToys.Settings.UI.Lib.dll", "Wox.Infrastructure.dll", "Wox.Plugin.dll")

foreach ($platform in $platforms)
{
Expand All @@ -64,6 +64,6 @@ foreach ($platform in $platforms)
$destination = ".\bin\$platform\$folder"
$zip = ".\bin\$platform\$name-$version-$($platform.ToLower()).zip"

Copy-Item -Path $output -Destination $destination -Recurse -Exclude $libs
Copy-Item -Path $output -Destination $destination -Recurse -Exclude $dependencies
Compress-Archive -Path $destination -DestinationPath $zip
}

0 comments on commit 85e67a0

Please sign in to comment.