Commit e536d01
fix(packaging): constrain *.png exclude to top-level — let icons through
QA caught that GNU tar 1.35 defaults to `--wildcards-match-slash`, so
the previous `--exclude="$APP_NAME/*.png"` was stripping ALL .png
files at any depth from the .spl — including the launcher icons in
`static/` and `appserver/static/` that build 7b98203 shipped. The
launcher tile would therefore fall back to Splunk's system-default
placeholder for every customer, undoing the icon work.
Verified with a fresh .spl rebuild:
- before: `tar -tzf dist/*.spl | grep appIcon` returned zero matches
- after: 8 appIcon* entries present (4 in static/, 4 in appserver/static/)
- top-level debug PNGs (a11y-*, demo-*, v-*, ~40 files) stay excluded
- .spl size: 449 KB / 96 files (was 448 KB / 88 — added ~7 KB for icons,
no other change). The brief 4.9 MB / 137 file bloat seen during the
intermediate fix-attempt was the same wildcard issue from the other
direction (no exclude at all let 40+ debug PNGs through).
Mechanism: `--anchored --no-wildcards-match-slash` placed JUST BEFORE
the `*.png` exclude constrains the wildcard to repo-root only (one
level deep, no slash crossing). Subsequent excludes are unaffected
because the toggle is positional and the .png exclude is the last
pattern before the source-tree arg.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 7b98203 commit e536d01
1 file changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
119 | 133 | | |
120 | 134 | | |
121 | 135 | | |
| |||
152 | 166 | | |
153 | 167 | | |
154 | 168 | | |
155 | | - | |
156 | 169 | | |
157 | 170 | | |
158 | 171 | | |
159 | 172 | | |
160 | 173 | | |
161 | 174 | | |
| 175 | + | |
| 176 | + | |
162 | 177 | | |
163 | 178 | | |
164 | 179 | | |
| |||
0 commit comments