Skip to content

Commit b22c279

Browse files
author
psadi
committed
feat: add support arm build
1 parent 9beedca commit b22c279

File tree

3 files changed

+44
-21
lines changed

3 files changed

+44
-21
lines changed

README.md

Lines changed: 39 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 many Linux distributions.
2020

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

@@ -32,12 +32,20 @@ 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+
sudo install ./Ghostty-x86_64.AppImage /usr/local/bin/ghostty
46+
47+
# Now you can run Ghostty from anywhere using the command:
48+
# ghostty
4149
```
4250

4351
### Graphical
@@ -57,26 +65,39 @@ chmod +x Ghostty-x86_64.AppImage
5765

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

60-
**To update manually:**
68+
**Update manually:**
6169

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.
70+
1. Download the latest AppImage package from the [releases](https://github.com/psadi/ghostty-appimage/releases) section.
71+
2. Follow the same steps as in the [Installation](#installation) section to make it executable and run it.
6472

6573
**Update automatically:**
6674

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.
75+
1. Use [AppImageUpdate](https://github.com/AppImageCommunity/AppImageUpdate) which reads the update information in the AppImage. This is a low level tool.
76+
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.
6977

70-
## ❓ What's Next?
78+
## 🖥️ Supported System Architectures
7179

72-
1. Submit AppImage(s) to [AppImageHub](https://appimage.github.io/).
73-
2. Provide AppImages for other supported architectures.
80+
This AppImage supports the following architectures:
81+
82+
| **#** | **Architecture** | **Status** | **Availability** |
83+
| :---: | ---------------- | :--------: | ------------------------ |
84+
| 1 | x86_64 | 🟢 | Available |
85+
| 2 | aarch64 | 🟠 | Available, needs testing |
86+
| 3 | armhf | 🟠 | Available, needs testing |
87+
| 4 | i686 | 🟠 | Available, needs testing |
88+
89+
**Notes:**
90+
91+
- **x86_64**: Widely used in modern desktops and servers, supporting 64-bit processing.
92+
- **ARMhf**: Optimized for embedded systems and energy-efficient for mobile devices.
93+
- **i686**: Represents the 32-bit architecture of Intel's x86 family, suitable for legacy applications.
94+
- **aarch64**: 64-bit ARM architecture, planned for future support in cloud computing environments.
95+
96+
## ❓ What's Next?
7497

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

81102
### 🛠️ Troubleshooting
82103

assets/1.png

-217 Bytes
Loading

build.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22

33
set -e
44

5-
export ARCH="$(uname -m)"
65
GHOSTTY_VERSION="1.0.1"
76
TMP_DIR="/tmp/ghostty-build"
87
APP_DIR="${TMP_DIR}/ghostty.AppDir"
98
PUB_KEY="RWQlAjJC23149WL2sEpT/l0QKy7hMIFhYdQOFy0Z7z7PbneUgvlsnYcV"
10-
UPINFO="gh-releases-zsync|$(echo "$GITHUB_REPOSITORY" | tr '/' '|')|latest|*$ARCH.AppImage.zsync"
119

1210
rm -rf "${TMP_DIR}"
1311

@@ -97,4 +95,8 @@ EOF
9795
cd "${TMP_DIR}"
9896

9997
# create app image
100-
appimagetool -u "${UPINFO}" "${APP_DIR}"
98+
for arch in "x86_64" "aarch64" "armhf" "i686"; do
99+
export ARCH="${arch}"
100+
UPINFO="gh-releases-zsync|$(echo "$GITHUB_REPOSITORY" | tr '/' '|')|latest|*$ARCH.AppImage.zsync"
101+
appimagetool -u "${UPINFO}" "${APP_DIR}"
102+
done

0 commit comments

Comments
 (0)