Skip to content

Commit 47197d8

Browse files
author
Adithya Ps
committed
Initial commit
0 parents  commit 47197d8

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed

Justfile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
setup_fp := "/tmp/ghostty-build"
2+
dest_fp := "/tmp/ghostty-build/ghostty.AppDir"
3+
cache_fp := "/tmp/offline-cache"
4+
source_fp := "/tmp/ghostty-build/ghostty-source.tar.gz"
5+
minisig_fp := "/tmp/ghostty-build/ghostty-source.tar.gz.minisig"
6+
7+
setup:
8+
rm -rf "{{ setup_fp }}"
9+
mkdir -p -- "{{ setup_fp }}" "{{ dest_fp }}/usr" "{{ cache_fp }}"
10+
wget https://release.files.ghostty.org/1.0.0/ghostty-source.tar.gz -O "{{ source_fp }}"
11+
wget https://release.files.ghostty.org/1.0.0/ghostty-source.tar.gz.minisig -O "{{ minisig_fp }}"
12+
minisign -V -P "${pubkey}" -m "{{ source_fp }}" -s "{{ minisig_fp }}"
13+
tar -zxf "{{ source_fp }}" -C "{{ setup_fp }}"
14+
rm -rf "{{ source_fp }}" "{{ minisig_fp }}"
15+
16+
[working-directory('/tmp/ghostty-build/ghostty-source')]
17+
compile:
18+
zig build \
19+
--prefix "{{ dest_fp }}/usr" \
20+
-Doptimize=ReleaseFast \
21+
-Dcpu=baseline
22+
23+
[working-directory('/tmp/ghostty-build/ghostty.AppDir')]
24+
build:
25+
printf '#!/bin/sh\n\nexec "$(dirname "$(readlink -f "$0")")/usr/bin/ghostty"\n' | tee AppRun > /dev/null
26+
chmod +x AppRun
27+
ln -s usr/share/applications/com.mitchellh.ghostty.desktop
28+
ln -s usr/share/icons/hicolor/256x256/apps/com.mitchellh.ghostty.png
29+
ARCH=x8_64 appimagetool "{{ dest_fp }}"

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Adithya Ps
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# ghostty-appimage
2+
AppImage(s) for Ghostty

0 commit comments

Comments
 (0)