Skip to content

Commit fe58959

Browse files
jsonifyclaudeJason Rueckertgemini-code-assist[bot]
authored
Claude/fix image cache issue 011 cv11 fz qx jng9 qr gy wi2ov (#18)
* docs: add image resource update workflow to CLAUDE.md Add documentation for updating bundled image resources like target-64.png. Explains SPM resource bundling behavior and provides clean build steps. * feat: update target image asset * feat: update target image asset * Update CLAUDE.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --------- Co-authored-by: Claude <[email protected]> Co-authored-by: Jason Rueckert <[email protected]> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 656054d commit fe58959

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

CLAUDE.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,26 @@ ClickIt is a native macOS auto-clicker application built with Swift Package Mana
1515
- Preset configuration system
1616
- Visual feedback with overlay indicators
1717

18-
[... rest of existing content remains unchanged ...]
19-
2018
## Development Guidelines
2119

2220
### Workflow Reminders
2321
- Always check most recent agent os spec task lists for next feature to work on
2422

25-
[... rest of existing content remains unchanged ...]
23+
### Image Resource Updates
24+
25+
When updating image assets (like `target-64.png`), you **must** rebuild the app to see changes:
26+
27+
**Why:** Swift Package Manager bundles resources into `.bundle` files at build time. The app loads from the bundle, not the source file.
28+
29+
**Steps to update an image:**
30+
1. Replace the image file in `Sources/ClickIt/Lite/Resources/`
31+
2. Clean the build: `swift package clean` or in Xcode: `Product > Clean Build Folder` (⇧⌘K).
32+
3. Rebuild: `swift build` or in Xcode: `Product > Build` (⌘B).
33+
4. The new image will now be bundled and loaded
34+
35+
**Quick command:**
36+
```bash
37+
rm -rf .build && swift build
38+
```
39+
40+
**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.
3.47 KB
Loading

assets/target-64.png

3.47 KB
Loading

0 commit comments

Comments
 (0)