Files
yfoxjpandClaude Opus 5 c7f68b6cca Photochk 1.0.0 — 類似写真を探して整理する macOS アプリ
フォルダ内の写真から、中身が同じものと見た目が似ているものを検出して
グループにまとめ、残す1枚を選んでほかをゴミ箱へ送れるようにする。

検出は安い判定から順に4段:
- ファイルサイズが同じものだけ SHA-256 でバイト一致を確定
- dHash(知覚ハッシュ)のハミング距離で候補ペアを抽出
- 候補に出てくる画像だけ Vision の feature print で精査
- Union-Find で連結成分をグループ化

判定のしきい値は実写画像で距離を実測して決めた(docs/calibration.md)。
tools/release-update.sh で Gitea のリリースを更新する。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-28 08:02:14 +09:00

36 lines
932 B
Makefile

PROJECT := Photochk.xcodeproj
SCHEME := Photochk
BUILD := $(CURDIR)/build
VERSION := 1.0.0
.PHONY: generate build test run release install clean
generate:
xcodegen generate
build: generate
xcodebuild -project $(PROJECT) -scheme $(SCHEME) -configuration Debug \
-derivedDataPath $(BUILD) build
test: generate
xcodebuild -project $(PROJECT) -scheme $(SCHEME) -configuration Debug \
-derivedDataPath $(BUILD) test
run: build
open $(BUILD)/Build/Products/Debug/Photochk.app
# 配布用の Release ビルドと zip を dist/ に作る
release: generate
xcodebuild -project $(PROJECT) -scheme $(SCHEME) -configuration Release \
-derivedDataPath $(BUILD) build
mkdir -p dist
ditto -c -k --keepParent $(BUILD)/Build/Products/Release/Photochk.app \
dist/Photochk-$(VERSION).zip
install: release
ditto $(BUILD)/Build/Products/Release/Photochk.app /Applications/Photochk.app
clean:
rm -rf $(BUILD) $(PROJECT) dist