Improve crop editor and copy publish output to dist
Add resize handles, zoom, view brightness, and a multi-frame still strip. Keep the crop box on mouse-up, and copy AmiReel.exe to dist.
This commit is contained in:
+17
-5
@@ -16,6 +16,8 @@ $releaseDir = Join-Path $projectDir 'bin\Release\net10.0-windows10.0.26100.0\win
|
||||
$releaseExe = Join-Path $releaseDir 'AmiReel.exe'
|
||||
$publishDir = Join-Path $releaseDir 'publish'
|
||||
$publishExe = Join-Path $publishDir 'AmiReel.exe'
|
||||
$distDir = Join-Path $projectDir 'dist'
|
||||
$distExe = Join-Path $distDir 'AmiReel.exe'
|
||||
$publishArguments = @(
|
||||
'publish', $projectPath,
|
||||
'-c', 'Release',
|
||||
@@ -27,11 +29,12 @@ $publishArguments = @(
|
||||
'-p:EnableCompressionInSingleFile=true'
|
||||
)
|
||||
|
||||
if ((Test-Path $releaseExe) -or (Test-Path $publishExe)) {
|
||||
if ((Test-Path $releaseExe) -or (Test-Path $publishExe) -or (Test-Path $distExe)) {
|
||||
$runningReleaseInstances = Get-Process | Where-Object {
|
||||
$_.Path -and (
|
||||
[string]::Equals($_.Path, $releaseExe, [System.StringComparison]::OrdinalIgnoreCase) -or
|
||||
[string]::Equals($_.Path, $publishExe, [System.StringComparison]::OrdinalIgnoreCase)
|
||||
[string]::Equals($_.Path, $publishExe, [System.StringComparison]::OrdinalIgnoreCase) -or
|
||||
[string]::Equals($_.Path, $distExe, [System.StringComparison]::OrdinalIgnoreCase)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -47,7 +50,16 @@ if (Test-Path $publishDir) {
|
||||
}
|
||||
|
||||
& dotnet @publishArguments
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "dotnet publish failed with exit code $LASTEXITCODE."
|
||||
}
|
||||
|
||||
Write-Host "Published AmiReel to $publishDir" -ForegroundColor Green
|
||||
Write-Host "Release folder: $publishDir" -ForegroundColor Cyan
|
||||
Write-Host "Executable: $publishExe" -ForegroundColor Cyan
|
||||
if (-not (Test-Path $publishExe)) {
|
||||
throw "Published executable was not found at $publishExe."
|
||||
}
|
||||
|
||||
New-Item -ItemType Directory -Path $distDir -Force | Out-Null
|
||||
Copy-Item -LiteralPath $publishExe -Destination $distExe -Force
|
||||
|
||||
Write-Host "Published AmiReel to $distDir" -ForegroundColor Green
|
||||
Write-Host "Executable: $distExe" -ForegroundColor Cyan
|
||||
|
||||
Reference in New Issue
Block a user