Skip to content

Commit d9c8ba2

Browse files
author
psadi
committed
feat: add support arm build
1 parent f9de6ea commit d9c8ba2

File tree

5 files changed

+51
-24
lines changed

5 files changed

+51
-24
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ jobs:
1515
security-events: write
1616
contents: write
1717
name: Build Ghostty
18-
runs-on: ubuntu-24.04
18+
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
container: [ "ubuntu:24.04", "arm64v8/ubuntu:24.04" ]
1922
container:
20-
image: ubuntu:24.04
23+
image: ${{ matrix.container }}
2124
options: "--privileged --cap-add SYS_ADMIN --device /dev/fuse"
2225
steps:
2326
- name: Checkout ghostty-appimage
@@ -36,7 +39,7 @@ jobs:
3639
with:
3740
name: ghostty-appimage
3841
retention-days: 7
39-
path: /tmp/ghostty-build/Ghostty-x86_64.AppImage*
42+
path: /tmp/ghostty-build/Ghostty-.*\.AppImage.*
4043

4144
release_appimage:
4245
permissions:
@@ -56,7 +59,7 @@ jobs:
5659
uses: svenstaro/upload-release-action@v2
5760
with:
5861
repo_token: ${{ secrets.GITHUB_TOKEN }}
59-
file: ./Ghostty-x86_64.AppImage*
62+
file: ./Ghostty-.*\.AppImage.*
6063
tag: ${{ github.ref }}
6164
overwrite: true
6265
file_glob: true

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ repos:
3232
- id: actionlint-system
3333

3434
- repo: https://github.com/woodruffw/zizmor
35-
rev: v0.5.0
35+
rev: v0.8.0
3636
hooks:
3737
- id: zizmor
3838
files: ^\.github/workflows/.*\.ya?ml$

README.md

Lines changed: 42 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<img src="https://img.shields.io/github/contributors/psadi/ghostty-appimage" alt="Contributors">
1717
</p></h1>
1818

19-
This repository provides build scripts to create a Universal AppImage for [Ghostty](https://ghostty.org/). This unofficial build offers an executable AppImage compatible with any Linux distribution following the **x86_64 architecture**.
19+
This repository provides build scripts to create a Universal AppImage for [Ghostty](https://ghostty.org/). This unofficial build offers an executable AppImage compatible with any Linux distribution.
2020

2121
**Ghostty Source Code:** [Click Here](https://github.com/ghostty-org/ghostty)
2222

@@ -32,14 +32,29 @@ This repository provides build scripts to create a Universal AppImage for [Ghost
3232
Run the following commands in your terminal:
3333

3434
```bash
35-
# Download the latest AppImage package
36-
wget https://github.com/psadi/ghostty-appimage/releases/download/[TAG]/Ghostty-x86_64.AppImage
37-
# Provide executable permissions
35+
# Download the latest AppImage package from releases
36+
wget https://github.com/psadi/ghostty-appimage/releases/download/${TAG}/Ghostty-x86_64.AppImage
37+
38+
# Make the AppImage executable
3839
chmod +x Ghostty-x86_64.AppImage
39-
# Execute the AppImage
40+
41+
# Run the AppImage
4042
./Ghostty-x86_64.AppImage
43+
44+
# Optionally, add the AppImage to your PATH for easier access
45+
46+
# With sudo for system wide availability
47+
sudo install ./Ghostty-x86_64.AppImage /usr/local/bin/ghostty
48+
49+
# Without sudo, XDG base spec mandate
50+
install ./Ghostty-x86_64.AppImage $HOME/.local/bin/ghostty
51+
52+
# Now you can run Ghostty from anywhere using the command:
53+
# ghostty
4154
```
4255

56+
_**Note:** By using [**AM**](https://github.com/ivan-hc/AM)/[**AppMan**](https://github.com/ivan-hc/AppMan), **PATH** config done automatically when you install appimages with it._
57+
4358
### Graphical
4459

4560
1. Download the latest AppImage package from the [releases](https://github.com/psadi/ghostty-appimage/releases) section.
@@ -57,26 +72,35 @@ chmod +x Ghostty-x86_64.AppImage
5772

5873
Since AppImages are self-contained executables, there is no formal installation process beyond setting executable permissions.
5974

60-
**To update manually:**
75+
**Update manually:**
6176

62-
1. Download the latest AppImage package from the [releases](https://github.com/psadi/ghostty-appimage/releases) section.
63-
2. Follow the same steps as in the [Installation](#installation) section to make it executable and run it.
77+
1. Download the latest AppImage package from the [releases](https://github.com/psadi/ghostty-appimage/releases) section.
78+
2. Follow the same steps as in the [Installation](#installation) section to make it executable and run it.
6479

6580
**Update automatically:**
6681

67-
1. Use [AppImageUpdate](https://github.com/AppImageCommunity/AppImageUpdate) which reads the update information in the AppImage. This is a low level tool.
68-
2. Use a higher level tool that uses AppImageUpdate, like [AM](https://github.com/ivan-hc/AM) or [appimaged](https://github.com/probonopd/go-appimage/blob/master/src/appimaged/README.md) daemon, these tools also automatically handle desktop integration.
82+
1. Use [AppImageUpdate](https://github.com/AppImageCommunity/AppImageUpdate) which reads the update information in the AppImage. This is a low level tool.
83+
2. Use a higher level tool that uses AppImageUpdate, like [AM](https://github.com/ivan-hc/AM) or [appimaged](https://github.com/probonopd/go-appimage/blob/master/src/appimaged/README.md) daemon, these tools also automatically handle desktop integration.
6984

70-
## ❓ What's Next?
85+
## 🖥️ Supported System Architectures
86+
87+
This AppImage supports the following architectures:
88+
89+
| **#** | **Architecture** | **Status** | **Availability** |
90+
| :---: | ---------------- | :--------: | ---------------- |
91+
| 1 | x86_64 | 🟢 | Available |
92+
| 2 | aarch64 | 🟠 | In Progress |
7193

72-
1. Submit AppImage(s) to [AppImageHub](https://appimage.github.io/).
73-
2. Provide AppImages for other supported architectures.
94+
**Notes:**
95+
96+
- **x86_64**: Widely used in modern desktops and servers, supporting 64-bit processing.
97+
- **aarch64**: 64-bit ARM architecture, planned for future support in cloud computing environments.
98+
99+
## ❓ What's Next?
74100

75-
| # | **Architecture** | **Status** |
76-
| :-: | ---------------- | :--------: |
77-
| 1 | x86_64 ||
78-
| 2 | i386 | 🟠 |
79-
| 3 | ARM | 🟠 |
101+
- [x] Provide AppImages for other supported architectures
102+
- [ ] Submit AppImage(s) to [AppImageHub](https://appimage.github.io/)
103+
- [ ] Dependency caching in ci for a faster release cycle
80104

81105
### 🛠️ Troubleshooting
82106

assets/1.png

-217 Bytes
Loading

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ GHOSTTY_VERSION="1.0.1"
77
TMP_DIR="/tmp/ghostty-build"
88
APP_DIR="${TMP_DIR}/ghostty.AppDir"
99
PUB_KEY="RWQlAjJC23149WL2sEpT/l0QKy7hMIFhYdQOFy0Z7z7PbneUgvlsnYcV"
10-
UPINFO="gh-releases-zsync|$(echo "$GITHUB_REPOSITORY" | tr '/' '|')|latest|*$ARCH.AppImage.zsync"
10+
UPINFO="gh-releases-zsync|$(echo "${GITHUB_REPOSITORY}" | tr '/' '|')|latest|*${ARCH}.AppImage.zsync"
1111

1212
rm -rf "${TMP_DIR}"
1313

0 commit comments

Comments
 (0)