feat: Everything2Everything 양방향 변환 매트릭스 피보팅
EverythingToJpeg(N→JPEG 단방향)에서 Everything2Everything(N×M 매트릭스)으로 앱을 피보팅. 7개 Provider, 200+ 변환 쌍 지원. 리네이밍 - 디렉토리/솔루션/csproj/namespace/AssemblyName/MSIX Identity 일괄 치환 - 임시파일 prefix e2j_ → e2e_, 로고 라벨 E2J → E2E 아키텍처 - ConversionPair(input, output) 신규 + ProviderCapability.SupportedConversions - IConverterProvider.ConvertAsync에 outputExtension 파라미터 추가 - ProviderRegistry를 Dictionary<(input, output), Provider> 매트릭스로 재작성 + OutputsForInput / OutputsForFile 쿼리 API - ConversionEngine: 출력 ext 라우팅, 동일 입출력 자동 skip, 서브폴더 suffix를 출력 ext에서 자동 도출 - ConvertOptions를 형식별 sub-record로 분리 (Jpeg/Png/Webp/Avif/Tiff/Pdf*/Html*/Ocr) Provider 매트릭스 - MagickProvider: PNG/JPEG/WebP/AVIF/BMP/TIFF/GIF/PDF 양방향 + RAW/PSD 디코딩 (단일이미지→1페이지 PDF, GIF/TIFF→다페이지 PDF) - HeicProvider: HEIC/HEIF → 이미지 7종 - PdfProvider: PDF → 이미지 6종 (PNG임베드 후 ImageMagick 인코딩) - HtmlProvider: HTML/HTM → 이미지 + PDF (CDP printToPDF) - DocxProvider/HwpxProvider: PDF + 이미지 7종 (LibreOffice 활용) - OcrProvider 신규: 이미지/PDF → TXT/DOCX (Windows.Media.Ocr + DocumentFormat.OpenXml, PDF는 페이지별 OCR 후 결합) UI - 사이드바 TARGET FORMAT을 동적 ComboBox로 (큐 파일 매트릭스의 교집합만 표시) - 출력 형식별 색상 배지 + Quality 패널 라벨 동적 - OUTPUT DESTINATION hint도 출력 ext 기반 동적 CLI - 신규 'to <ext> <files...>' verb (예: to png photo.heic doc.docx) - help 텍스트 양방향 컨셉으로 갱신 셸 통합 - ContextMenuRegistrar 카스케이드로 재설계 (ExtendedSubCommandsKey + Everything2Everything.SubMenu.<ext>) - 입력별 매트릭스에 따라 인기 출력 10종(JPEG/PNG/WebP/PDF/TXT/DOCX/AVIF/GIF/TIFF/BMP) 동적 노출, 마지막에 '변환…' 옵션 - 메뉴 라벨 'JPEG로 변환' → 'Everything2Everything으로 변환' 기타 - Core.csproj TFM net9.0-windows → net9.0-windows10.0.19041.0 (WinRT API용) - DocumentFormat.OpenXml 3.1.0 NuGet 추가 - README 양방향 매트릭스 기준 전면 개편 - MSIX appxmanifest Description / IExplorerCommand DLL 라벨 갱신 빌드: 0 errors, 0 warnings
This commit is contained in:
parent
96861e627d
commit
9b7e5f0d0c
63 changed files with 1788 additions and 733 deletions
|
|
@ -1,20 +1,20 @@
|
|||
#Requires -Version 5.1
|
||||
# 한방에 빌드+자체서명: 인증서 자동 생성 → MSIX 빌드 → 서명까지 일관 처리.
|
||||
# 산출:
|
||||
# - packaging/dist/EverythingToJpeg-x64.msix (서명됨)
|
||||
# - packaging/EverythingToJpeg-DevCert.pfx (5대 PC 신뢰 등록용)
|
||||
# - packaging/dist/Everything2Everything-x64.msix (서명됨)
|
||||
# - packaging/Everything2Everything-DevCert.pfx (5대 PC 신뢰 등록용)
|
||||
|
||||
[CmdletBinding()]
|
||||
param(
|
||||
[string]$Subject = 'CN=EverythingToJpegDev',
|
||||
[string]$Password = 'EverythingToJpegDev',
|
||||
[string]$Subject = 'CN=Everything2EverythingDev',
|
||||
[string]$Password = 'Everything2EverythingDev',
|
||||
[string]$Configuration = 'Release',
|
||||
[string]$Platform = 'x64'
|
||||
)
|
||||
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$packagingDir = $PSScriptRoot
|
||||
$pfxPath = Join-Path $packagingDir 'EverythingToJpeg-DevCert.pfx'
|
||||
$pfxPath = Join-Path $packagingDir 'Everything2Everything-DevCert.pfx'
|
||||
$securePassword = ConvertTo-SecureString -String $Password -AsPlainText -Force
|
||||
|
||||
# ---- 1) 인증서 ----
|
||||
|
|
@ -36,7 +36,7 @@ if (-not $existing) {
|
|||
-CertStoreLocation 'Cert:\CurrentUser\My' `
|
||||
-HashAlgorithm SHA256 `
|
||||
-NotAfter (Get-Date).AddYears(5) `
|
||||
-FriendlyName 'EverythingToJpeg Dev'
|
||||
-FriendlyName 'Everything2Everything Dev'
|
||||
}
|
||||
else {
|
||||
Write-Host "[1/3] 기존 인증서 재사용 (Thumbprint $($existing.Thumbprint))"
|
||||
|
|
@ -62,7 +62,7 @@ Write-Host ' 1. PFX 파일을 5대 PC 각각에 복사:'
|
|||
Write-Host " $pfxPath"
|
||||
Write-Host ' 2. 각 PC에서 관리자 PowerShell:'
|
||||
Write-Host ' cd packaging'
|
||||
Write-Host " .\Install-EverythingToJpeg.ps1 -PfxPath .\EverythingToJpeg-DevCert.pfx -MsixPath .\dist\EverythingToJpeg-x64.msix"
|
||||
Write-Host " .\Install-Everything2Everything.ps1 -PfxPath .\Everything2Everything-DevCert.pfx -MsixPath .\dist\Everything2Everything-x64.msix"
|
||||
Write-Host ' PFX 비밀번호:' $Password
|
||||
Write-Host ''
|
||||
Write-Host ' 3. 우클릭 → JPEG로 빠른 변환 / JPEG로 변환… 이 메인 메뉴에 노출됨.'
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@ $distDir = Join-Path $packagingDir 'dist'
|
|||
$manifestPath = Join-Path $packagingDir 'Package.appxmanifest'
|
||||
$assetsSrc = Join-Path $packagingDir 'Assets'
|
||||
|
||||
$appProj = Join-Path $repoRoot 'src\EverythingToJpeg.App\EverythingToJpeg.App.csproj'
|
||||
$shellProj = Join-Path $repoRoot 'src\EverythingToJpeg.Shell\EverythingToJpeg.Shell.vcxproj'
|
||||
$appProj = Join-Path $repoRoot 'src\Everything2Everything.App\Everything2Everything.App.csproj'
|
||||
$shellProj = Join-Path $repoRoot 'src\Everything2Everything.Shell\Everything2Everything.Shell.vcxproj'
|
||||
|
||||
function Find-WindowsSdkTool {
|
||||
param([string]$ToolName)
|
||||
|
|
@ -91,12 +91,12 @@ if (-not $nuget) {
|
|||
}
|
||||
|
||||
$packagesDir = Join-Path $repoRoot 'packages'
|
||||
& $nugetCmd restore (Join-Path $repoRoot 'src\EverythingToJpeg.Shell\packages.config') -PackagesDirectory $packagesDir | Out-Host
|
||||
& $nugetCmd restore (Join-Path $repoRoot 'src\Everything2Everything.Shell\packages.config') -PackagesDirectory $packagesDir | Out-Host
|
||||
if ($LASTEXITCODE -ne 0) { throw 'NuGet restore 실패' }
|
||||
|
||||
& $msbuild $shellProj /p:Configuration=$Configuration /p:Platform=$Platform /m /v:minimal | Out-Host
|
||||
if ($LASTEXITCODE -ne 0) { throw 'Shell build 실패' }
|
||||
$shellDll = Join-Path $repoRoot ("src\EverythingToJpeg.Shell\$Platform\$Configuration\EverythingToJpeg.Shell.dll")
|
||||
$shellDll = Join-Path $repoRoot ("src\Everything2Everything.Shell\$Platform\$Configuration\Everything2Everything.Shell.dll")
|
||||
if (-not (Test-Path $shellDll)) { throw "Shell DLL 산출물 없음: $shellDll" }
|
||||
|
||||
# ---- 3) Layout 디렉토리 ----
|
||||
|
|
@ -118,7 +118,7 @@ Copy-Item -Path $manifestPath -Destination (Join-Path $layoutDir 'AppxManifest.x
|
|||
Write-Host ''
|
||||
Write-Host '[4/5] makeappx pack'
|
||||
if (-not (Test-Path $distDir)) { New-Item -ItemType Directory -Path $distDir | Out-Null }
|
||||
$msixPath = Join-Path $distDir ("EverythingToJpeg-$($Platform.ToLower()).msix")
|
||||
$msixPath = Join-Path $distDir ("Everything2Everything-$($Platform.ToLower()).msix")
|
||||
if (Test-Path $msixPath) { Remove-Item $msixPath -Force }
|
||||
& $makeappx pack /d $layoutDir /p $msixPath /o | Out-Host
|
||||
if ($LASTEXITCODE -ne 0) { throw 'makeappx pack 실패' }
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
[CmdletBinding()]
|
||||
param(
|
||||
[string]$Subject = 'CN=EverythingToJpegDev',
|
||||
[string]$OutputPfx = (Join-Path $PSScriptRoot 'EverythingToJpeg-DevCert.pfx'),
|
||||
[string]$Subject = 'CN=Everything2EverythingDev',
|
||||
[string]$OutputPfx = (Join-Path $PSScriptRoot 'Everything2Everything-DevCert.pfx'),
|
||||
[securestring]$Password
|
||||
)
|
||||
|
||||
|
|
@ -28,7 +28,7 @@ $cert = New-SelfSignedCertificate `
|
|||
-CertStoreLocation 'Cert:\CurrentUser\My' `
|
||||
-HashAlgorithm SHA256 `
|
||||
-NotAfter (Get-Date).AddYears(5) `
|
||||
-FriendlyName 'EverythingToJpeg Dev'
|
||||
-FriendlyName 'Everything2Everything Dev'
|
||||
|
||||
Write-Host "Thumbprint: $($cert.Thumbprint)"
|
||||
Write-Host "Exporting PFX: $OutputPfx"
|
||||
|
|
|
|||
|
|
@ -49,8 +49,8 @@ function New-LogoPng {
|
|||
}
|
||||
|
||||
Write-Host 'Generating placeholder logos…'
|
||||
New-LogoPng -Width 50 -Height 50 -Path (Join-Path $assetsDir 'StoreLogo.png') -Label 'E2J'
|
||||
New-LogoPng -Width 44 -Height 44 -Path (Join-Path $assetsDir 'Square44x44Logo.png') -Label 'E2J'
|
||||
New-LogoPng -Width 150 -Height 150 -Path (Join-Path $assetsDir 'Square150x150Logo.png')-Label 'E2J'
|
||||
New-LogoPng -Width 310 -Height 150 -Path (Join-Path $assetsDir 'Wide310x150Logo.png') -Label 'EverythingToJpeg'
|
||||
New-LogoPng -Width 50 -Height 50 -Path (Join-Path $assetsDir 'StoreLogo.png') -Label 'E2E'
|
||||
New-LogoPng -Width 44 -Height 44 -Path (Join-Path $assetsDir 'Square44x44Logo.png') -Label 'E2E'
|
||||
New-LogoPng -Width 150 -Height 150 -Path (Join-Path $assetsDir 'Square150x150Logo.png')-Label 'E2E'
|
||||
New-LogoPng -Width 310 -Height 150 -Path (Join-Path $assetsDir 'Wide310x150Logo.png') -Label 'Everything2Everything'
|
||||
Write-Host 'Done.'
|
||||
|
|
|
|||
|
|
@ -2,14 +2,14 @@
|
|||
#Requires -RunAsAdministrator
|
||||
# 5대 PC에서 MSIX 사이드로드 설치 — 1회 셋업 스크립트.
|
||||
# 사용법:
|
||||
# PowerShell (관리자) > .\Install-EverythingToJpeg.ps1 -PfxPath .\EverythingToJpeg-DevCert.pfx -MsixPath .\EverythingToJpeg.msix
|
||||
# PowerShell (관리자) > .\Install-Everything2Everything.ps1 -PfxPath .\Everything2Everything-DevCert.pfx -MsixPath .\Everything2Everything.msix
|
||||
|
||||
[CmdletBinding()]
|
||||
param(
|
||||
[Parameter(Mandatory)] [string]$PfxPath,
|
||||
[Parameter(Mandatory)] [string]$MsixPath,
|
||||
[securestring]$PfxPassword,
|
||||
[string]$Password = 'EverythingToJpegDev'
|
||||
[string]$Password = 'Everything2EverythingDev'
|
||||
)
|
||||
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
|
@ -10,13 +10,13 @@
|
|||
IgnorableNamespaces="uap rescap desktop desktop4 desktop5 com">
|
||||
|
||||
<Identity
|
||||
Name="EverythingToJpeg.YunChan"
|
||||
Publisher="CN=EverythingToJpegDev"
|
||||
Name="Everything2Everything.YunChan"
|
||||
Publisher="CN=Everything2EverythingDev"
|
||||
Version="1.0.0.0"
|
||||
ProcessorArchitecture="x64" />
|
||||
|
||||
<Properties>
|
||||
<DisplayName>EverythingToJpeg</DisplayName>
|
||||
<DisplayName>Everything2Everything</DisplayName>
|
||||
<PublisherDisplayName>YunChan</PublisherDisplayName>
|
||||
<Logo>Assets\StoreLogo.png</Logo>
|
||||
</Properties>
|
||||
|
|
@ -31,12 +31,12 @@
|
|||
</Resources>
|
||||
|
||||
<Applications>
|
||||
<Application Id="EverythingToJpeg"
|
||||
Executable="EverythingToJpeg.exe"
|
||||
<Application Id="Everything2Everything"
|
||||
Executable="Everything2Everything.exe"
|
||||
EntryPoint="Windows.FullTrustApplication">
|
||||
<uap:VisualElements
|
||||
DisplayName="EverythingToJpeg"
|
||||
Description="모든 파일을 JPEG로 변환"
|
||||
DisplayName="Everything2Everything"
|
||||
Description="이미지·PDF·문서·HTML 양방향 변환 매트릭스"
|
||||
BackgroundColor="transparent"
|
||||
Square150x150Logo="Assets\Square150x150Logo.png"
|
||||
Square44x44Logo="Assets\Square44x44Logo.png">
|
||||
|
|
@ -47,12 +47,12 @@
|
|||
<!-- COM Surrogate Server: hosts the two IExplorerCommand handlers -->
|
||||
<com:Extension Category="windows.comServer">
|
||||
<com:ComServer>
|
||||
<com:SurrogateServer DisplayName="EverythingToJpeg Shell Extension">
|
||||
<com:SurrogateServer DisplayName="Everything2Everything Shell Extension">
|
||||
<com:Class Id="801B2DD3-632C-4731-9510-AEAE09345264"
|
||||
Path="EverythingToJpeg.Shell.dll"
|
||||
Path="Everything2Everything.Shell.dll"
|
||||
ThreadingModel="STA" />
|
||||
<com:Class Id="CEBA1DB7-9175-4DF6-A362-490DEA49B598"
|
||||
Path="EverythingToJpeg.Shell.dll"
|
||||
Path="Everything2Everything.Shell.dll"
|
||||
ThreadingModel="STA" />
|
||||
</com:SurrogateServer>
|
||||
</com:ComServer>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# Phase 2 — MSIX 패키징
|
||||
# MSIX 패키징
|
||||
|
||||
Win11 메인 우클릭 메뉴에 "JPEG로 빠른 변환" / "JPEG로 변환…"을 띄우는 정공법.
|
||||
Win11 메인 우클릭 메뉴에 "Everything2Everything: 빠른 변환 (JPEG)" / "Everything2Everything: 변환…"을 띄우는 정공법. 레지스트리 기반 카스케이드 메뉴는 [Portable EXE 방식](../README.md#a-portable-exe--가장-가벼움)을 참고하세요.
|
||||
|
||||
## 구성
|
||||
|
||||
|
|
@ -11,18 +11,18 @@ packaging/
|
|||
├── GenerateAssets.ps1 — placeholder PNG 일괄 생성
|
||||
├── CreateDevCert.ps1 — 자체 서명 코드사이닝 인증서 생성 + PFX export
|
||||
├── BuildMsix.ps1 — .NET publish + C++ DLL 빌드 + makeappx + (선택) signtool
|
||||
└── Install-EverythingToJpeg.ps1 — 5대 PC 1회 설치 스크립트
|
||||
└── Install-Everything2Everything.ps1 — 5대 PC 1회 설치 스크립트
|
||||
```
|
||||
|
||||
C++ Shell DLL은 `src/EverythingToJpeg.Shell/` 에 있고 `BuildMsix.ps1` 안에서 자동 빌드됩니다.
|
||||
C++ Shell DLL은 `src/Everything2Everything.Shell/` 에 있고 `BuildMsix.ps1` 안에서 자동 빌드됩니다.
|
||||
|
||||
## 1회: 자체 서명 인증서 만들기
|
||||
|
||||
```powershell
|
||||
cd packaging
|
||||
.\CreateDevCert.ps1
|
||||
# Subject 기본값: CN=EverythingToJpegDev (Package.appxmanifest의 Publisher와 일치)
|
||||
# 비밀번호 입력 → EverythingToJpeg-DevCert.pfx 생성
|
||||
# Subject 기본값: CN=Everything2EverythingDev (Package.appxmanifest의 Publisher와 일치)
|
||||
# 비밀번호 입력 → Everything2Everything-DevCert.pfx 생성
|
||||
```
|
||||
|
||||
출력된 Thumbprint를 `BuildMsix.ps1 -CertThumbprint <값>` 으로 사용하거나, PFX 파일을 5대 PC에 복사해서 설치 시 사용합니다.
|
||||
|
|
@ -32,13 +32,13 @@ cd packaging
|
|||
### 미서명 (Phase 1 그대로 사용 가능, 메인 메뉴 노출은 안 됨)
|
||||
```powershell
|
||||
.\BuildMsix.ps1
|
||||
# 산출: packaging/dist/EverythingToJpeg-x64.msix
|
||||
# 산출: packaging/dist/Everything2Everything-x64.msix
|
||||
```
|
||||
|
||||
### 서명
|
||||
```powershell
|
||||
# 방법 1: PFX 사용
|
||||
.\BuildMsix.ps1 -Sign -PfxPath .\EverythingToJpeg-DevCert.pfx
|
||||
.\BuildMsix.ps1 -Sign -PfxPath .\Everything2Everything-DevCert.pfx
|
||||
|
||||
# 방법 2: 인증서 저장소의 Thumbprint
|
||||
.\BuildMsix.ps1 -Sign -CertThumbprint AABBCCDD...
|
||||
|
|
@ -47,9 +47,9 @@ cd packaging
|
|||
## 5대 PC 설치 (관리자 PowerShell)
|
||||
|
||||
```powershell
|
||||
.\Install-EverythingToJpeg.ps1 `
|
||||
-PfxPath .\EverythingToJpeg-DevCert.pfx `
|
||||
-MsixPath .\EverythingToJpeg-x64.msix
|
||||
.\Install-Everything2Everything.ps1 `
|
||||
-PfxPath .\Everything2Everything-DevCert.pfx `
|
||||
-MsixPath .\Everything2Everything-x64.msix
|
||||
```
|
||||
|
||||
스크립트가 자동으로:
|
||||
|
|
@ -64,7 +64,7 @@ cd packaging
|
|||
자체 서명 만들기조차 귀찮을 때:
|
||||
```powershell
|
||||
# 개발자 모드 켜기: 설정 → 개인 정보 및 보안 → 개발자용 → 켜기
|
||||
Add-AppxPackage -AllowUnsigned -Path .\EverythingToJpeg-x64.msix
|
||||
Add-AppxPackage -AllowUnsigned -Path .\Everything2Everything-x64.msix
|
||||
```
|
||||
> Win11 24H2부터 `-AllowUnsigned` 지원. 이전 버전은 자체 서명 권장.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue