Archive v0.1.0 — 사진/영상 라이브러리 관리 프로그램

Tauri v2 + SolidJS + SQLite + ffmpeg 사이드카로 구현한 크로스플랫폼
사진·영상 관리 앱. 로컬/NAS(SFTP·WebDAV·FTP) 소스, 가상 그리드,
인앱 재생, 태그/이동/삭제/undo, 중복 탐지, 포터블 배포.

- archive-db: SQLite 스키마·마이그레이션·단일 writer 스레드 + FTS5 trigram
- archive-vfs: VFS 4백엔드(local/sftp/ftp/webdav) + 자격증명(키체인/볼트)
- archive-indexer: 스캔·해시·썸네일·중복탐지·태그·파일작업·유지보수
- archive-media: localhost HTTP 미디어 서버(Range) + ffmpeg 스트림 잡
- 프론트: 3-pane UI, justified 가상 그리드, 라이트박스, 중복 검토 패널

Rust 테스트 49개 통과. CI: win x64/arm64 포터블 zip + macOS universal dmg.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
강 한
2026-07-16 22:04:06 +09:00
co-authored by Claude Opus 4.8
commit 394d1b9805
132 changed files with 23468 additions and 0 deletions
+62
View File
@@ -0,0 +1,62 @@
# Windows 포터블 zip 패키징.
# 사용: .\scripts\package-portable.ps1 [-Target x64|arm64]
# 결과: dist-portable\Archive-<ver>-windows-<arch>.zip
# 내용: Archive.exe, ffmpeg.exe, ffprobe.exe, data\(빈 폴더 → 포터블 모드), README.txt
param(
[ValidateSet("x64", "arm64")]
[string]$Target = "x64"
)
$ErrorActionPreference = "Stop"
$root = Split-Path $PSScriptRoot -Parent
$triple = if ($Target -eq "x64") { "x86_64-pc-windows-msvc" } else { "aarch64-pc-windows-msvc" }
# 버전 (tauri.conf.json)
$conf = Get-Content "$root\src-tauri\tauri.conf.json" -Raw | ConvertFrom-Json
$ver = $conf.version
$exe = if ($Target -eq "x64") {
"$root\src-tauri\target\release\archive.exe"
} else {
"$root\src-tauri\target\$triple\release\archive.exe"
}
if (-not (Test-Path $exe)) {
throw "빌드 산출물이 없습니다: $exe (먼저 tauri build --no-bundle 실행)"
}
$ffmpeg = "$root\src-tauri\binaries\ffmpeg-$triple.exe"
$ffprobe = "$root\src-tauri\binaries\ffprobe-$triple.exe"
if (-not (Test-Path $ffmpeg)) {
throw "ffmpeg 사이드카 없음: $ffmpeg (scripts\fetch-ffmpeg.ps1 -Target win$($Target -replace 'x','') 먼저 실행)"
}
$stage = "$root\dist-portable\stage-$Target"
Remove-Item -Recurse -Force $stage -ErrorAction SilentlyContinue
New-Item -ItemType Directory -Force "$stage\data" | Out-Null
Copy-Item $exe "$stage\Archive.exe"
Copy-Item $ffmpeg "$stage\ffmpeg.exe"
Copy-Item $ffprobe "$stage\ffprobe.exe"
@"
Archive $ver ()
: Archive.exe .
- data\ (archive.db) .
USB/ PC .
- WebView2 . Windows 11 Windows 10
. :
https://developer.microsoft.com/microsoft-edge/webview2/
data\logs\ .
"@ | Set-Content "$stage\README.txt" -Encoding utf8
$outDir = "$root\dist-portable"
$zip = "$outDir\Archive-$ver-windows-$Target.zip"
Remove-Item $zip -ErrorAction SilentlyContinue
Compress-Archive -Path "$stage\*" -DestinationPath $zip -CompressionLevel Optimal
Remove-Item -Recurse -Force $stage
$sizeMB = [math]::Round((Get-Item $zip).Length / 1MB, 1)
Write-Host "[package-portable] 완료: $zip ($sizeMB MB)"