Skip to content

Commit 46e1d98

Browse files
Ralph Kuepperclaude
andcommitted
Linux: inject assets/ into published tarball
The perry publish build server doesn't include the assets/ directory in the Linux output tarball. Extract, inject assets, and repack so ImageFile() paths resolve correctly in the distributed binary. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent fedb334 commit 46e1d98

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,16 @@ jobs:
136136
- name: Publish Linux
137137
run: perry publish linux
138138

139-
- name: Rename and upload artifact
139+
- name: Inject assets into tarball and rename
140140
run: |
141141
VERSION="${GITHUB_REF_NAME#v}"
142-
mv dist/Mango-*.tar.gz "dist/Mango-${VERSION}-linux-x86_64.tar.gz"
142+
TARBALL=$(find dist -name "Mango-*.tar.gz" -size +0c | head -1)
143+
TMPDIR=$(mktemp -d)
144+
tar xzf "$TARBALL" -C "$TMPDIR"
145+
BIN_DIR=$(find "$TMPDIR" -type d -name bin | head -1)
146+
cp -r assets "$BIN_DIR/assets"
147+
tar czf "dist/Mango-${VERSION}-linux-x86_64.tar.gz" -C "$TMPDIR" .
148+
rm -rf "$TMPDIR"
143149
144150
- name: Upload to GitHub Release
145151
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)