diff --git a/CLAUDE.md b/CLAUDE.md index 65095a6..9a9cc2b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -15,11 +15,26 @@ ClickIt is a native macOS auto-clicker application built with Swift Package Mana - Preset configuration system - Visual feedback with overlay indicators -[... rest of existing content remains unchanged ...] - ## Development Guidelines ### Workflow Reminders - Always check most recent agent os spec task lists for next feature to work on -[... rest of existing content remains unchanged ...] \ No newline at end of file +### Image Resource Updates + +When updating image assets (like `target-64.png`), you **must** rebuild the app to see changes: + +**Why:** Swift Package Manager bundles resources into `.bundle` files at build time. The app loads from the bundle, not the source file. + +**Steps to update an image:** +1. Replace the image file in `Sources/ClickIt/Lite/Resources/` +2. Clean the build: `swift package clean` or in Xcode: `Product > Clean Build Folder` (⇧⌘K). +3. Rebuild: `swift build` or in Xcode: `Product > Build` (⌘B). +4. The new image will now be bundled and loaded + +**Quick command:** +```bash +rm -rf .build && swift build +``` + +**Note:** The cursor image is loaded once at app launch and cached in memory. You must restart the app after rebuilding to see the updated image. \ No newline at end of file diff --git a/Sources/ClickIt/Lite/Resources/target-64.png b/Sources/ClickIt/Lite/Resources/target-64.png index 6d590cb..6161123 100644 Binary files a/Sources/ClickIt/Lite/Resources/target-64.png and b/Sources/ClickIt/Lite/Resources/target-64.png differ diff --git a/assets/target-64.png b/assets/target-64.png index 6d590cb..6161123 100644 Binary files a/assets/target-64.png and b/assets/target-64.png differ