Initial public release of MDEditor

This commit is contained in:
sinmb79
2026-03-30 11:45:27 +09:00
commit 7a27714040
43 changed files with 13498 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
param()
$ErrorActionPreference = 'Stop'
$repoRoot = Split-Path -Parent $PSScriptRoot
$destination = Join-Path $repoRoot 'src-tauri\binaries\pandoc-x86_64-pc-windows-msvc.exe'
$candidatePaths = @(
(Join-Path $env:LOCALAPPDATA 'Pandoc\pandoc.exe')
)
$pandocCommand = Get-Command pandoc -ErrorAction SilentlyContinue
if ($pandocCommand) {
$candidatePaths += $pandocCommand.Source
}
$source = $candidatePaths | Where-Object { $_ -and (Test-Path $_) } | Select-Object -First 1
if (-not $source) {
throw "Pandoc was not found. Install it first or place the sidecar manually at '$destination'."
}
Copy-Item -LiteralPath $source -Destination $destination -Force
Write-Host "Synced Pandoc sidecar from '$source' to '$destination'."