From c34e1201ab5da4c8a6f0ab04ee3946039794ea93 Mon Sep 17 00:00:00 2001 From: Kyle Bolen Date: Sun, 2 Aug 2026 03:12:44 +0000 Subject: [PATCH] Packaging setup: DMG distribution + proper log location MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit logback.xml: write to ~/Library/Logs/PhotoPhetch/ (standard macOS app log location), rolling 7-day retention, 50MB cap. Console output retained for development runs. build.gradle.kts: fix packaging config — remove missing icon.icns reference, add copyright, add signing block (disabled by default). To build: ./gradlew packageDmg # Output: build/compose/binaries/main/dmg/PhotoPhetch-1.0.0.dmg Logs viewable in Console.app or: tail -f ~/Library/Logs/PhotoPhetch/photophetch.log --- build.gradle.kts | 7 ++++++- src/main/resources/logback.xml | 23 ++++++++++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 8f8b8e1..2cc0ce9 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -43,9 +43,14 @@ compose.desktop { packageVersion = "1.0.0" description = "Import photos from phones into PhotoPhile" vendor = "bolenpad" + copyright = "© 2026 Kyle Bolen" macOS { bundleID = "com.bolenpad.photophetch" - iconFile.set(project.file("src/main/resources/icon.icns")) + // Uncomment and add icon.icns to src/main/resources/ for a custom icon: + // iconFile.set(project.file("src/main/resources/icon.icns")) + signing { + sign.set(false) // set true + add identity for App Store / Gatekeeper + } } } diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml index 4efdbb2..ffdaba2 100644 --- a/src/main/resources/logback.xml +++ b/src/main/resources/logback.xml @@ -1,13 +1,34 @@ + + %d{HH:mm:ss} [%-5level] %logger{20} - %msg%n + + + + ${user.home}/Library/Logs/PhotoPhetch/photophetch.log + + + ${user.home}/Library/Logs/PhotoPhetch/photophetch.%d{yyyy-MM-dd}.log + 7 + 50MB + + + %d{yyyy-MM-dd HH:mm:ss} [%-5level] %logger{30} - %msg%n + + + + + + + + -