Skip to content

Commit 7b4d2f7

Browse files
noahbclarksonclaude
andcommitted
fix(ci): fix AppImage validation, macOS runner, and script permissions
- Fix AppStream metadata: add <launchable>, <developer>, <content_rating>, and <releases> elements; rename to com.rgitui.app.metainfo.xml to match the component ID and resolve the filename-cid-mismatch warning. - Use macos-14 for aarch64-only macOS builds (macos-13 unavailable, macos-latest cannot cross-compile OpenSSL for x86_64). - Update README installation table to reflect aarch64-only macOS DMG. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent cbc6221 commit 7b4d2f7

4 files changed

Lines changed: 18 additions & 22 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -283,19 +283,9 @@ jobs:
283283
rgitui-*.AppImage
284284
285285
build-macos:
286-
name: Build macOS (${{ matrix.arch }})
286+
name: Build macOS (aarch64)
287287
needs: preflight
288-
strategy:
289-
fail-fast: false
290-
matrix:
291-
include:
292-
- arch: x86_64
293-
target: x86_64-apple-darwin
294-
runner: macos-latest
295-
- arch: aarch64
296-
target: aarch64-apple-darwin
297-
runner: macos-latest
298-
runs-on: ${{ matrix.runner }}
288+
runs-on: macos-14
299289
steps:
300290
- name: Checkout rgitui
301291
uses: actions/checkout@v4
@@ -304,18 +294,13 @@ jobs:
304294

305295
- name: Install Rust toolchain
306296
uses: dtolnay/rust-toolchain@stable
307-
with:
308-
targets: ${{ matrix.target }}
309297

310298
- name: Cache cargo registry and target
311299
uses: Swatinem/rust-cache@v2
312-
with:
313-
key: ${{ matrix.target }}
314300

315301
- name: Build .app bundle and DMG
316302
env:
317303
RGITUI_VERSION: ${{ needs.preflight.outputs.version }}
318-
RGITUI_MAC_TARGET: ${{ matrix.target }}
319304
RGITUI_MAC_CREATE_DMG: "1"
320305
run: |
321306
chmod +x script/bundle-mac.sh
@@ -324,8 +309,8 @@ jobs:
324309
- name: Verify DMG was produced
325310
env:
326311
VERSION: ${{ needs.preflight.outputs.version }}
327-
ARCH: ${{ matrix.arch }}
328312
run: |
313+
ARCH="$(uname -m)"
329314
DMG="target/rgitui-${VERSION}-${ARCH}-macos.dmg"
330315
if [ ! -f "$DMG" ]; then
331316
echo "::error::DMG $DMG not produced"
@@ -336,9 +321,9 @@ jobs:
336321
- name: Upload macOS artifacts
337322
uses: actions/upload-artifact@v4
338323
with:
339-
name: macos-${{ matrix.arch }}-release
324+
name: macos-release
340325
if-no-files-found: error
341-
path: target/rgitui-*-${{ matrix.arch }}-macos.dmg
326+
path: target/rgitui-*-macos.dmg
342327

343328
create-release:
344329
name: Create GitHub Release

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ Download the latest release for your platform from the [Releases](https://github
107107
|----------|----------|
108108
| **Windows** | `.zip` (portable) or `.exe` installer (adds to PATH, integrates with Add/Remove Programs) |
109109
| **Linux** | `.AppImage` (recommended) or `.tar.gz` |
110-
| **macOS Intel** | `.dmg` (x86_64) |
111110
| **macOS Apple Silicon** | `.dmg` (aarch64) |
112111

113112
Each release includes a `SHA256SUMS.txt` file for verification.

crates/rgitui/resources/linux/rgitui.appdata.xml renamed to crates/rgitui/resources/linux/com.rgitui.app.metainfo.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,24 @@
55
<summary>GPU-accelerated Git client</summary>
66
<metadata_license>MIT</metadata_license>
77
<project_license>MIT</project_license>
8+
<developer id="com.github.noahbclarkson">
9+
<name>Noah Clarkson</name>
10+
</developer>
811
<description>
912
<p>rgitui is a GPU-accelerated Git client built with GPUI, featuring a commit graph, diff viewer, interactive rebase, AI commit messages, and more.</p>
1013
</description>
14+
<launchable type="desktop-id">rgitui.desktop</launchable>
1115
<url type="homepage">https://github.com/noahbclarkson/rgitui</url>
1216
<url type="bugtracker">https://github.com/noahbclarkson/rgitui/issues</url>
17+
<content_rating type="oars-1.1" />
1318
<provides>
1419
<binary>rgitui</binary>
1520
</provides>
21+
<releases>
22+
<release version="0.1.0" date="2026-04-08">
23+
<description>
24+
<p>First public release.</p>
25+
</description>
26+
</release>
27+
</releases>
1628
</component>

script/bundle-linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ else
5454
fi
5555

5656
# Copy appdata
57-
cp crates/rgitui/resources/linux/rgitui.appdata.xml "$APP_DIR/usr/share/metainfo/"
57+
cp crates/rgitui/resources/linux/com.rgitui.app.metainfo.xml "$APP_DIR/usr/share/metainfo/"
5858

5959
# Create AppImage
6060
if command -v appimagetool &> /dev/null; then

0 commit comments

Comments
 (0)