-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I'm on the fence about whether it would be easier to just maintain a Dockerfile for the build env, but I think moving env setup to a separate script is a step in the right direction either way.
- Loading branch information
Showing
3 changed files
with
31 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,30 +2,13 @@ | |
|
||
set -e | ||
|
||
ZIG_VERSION="0.13.0" | ||
GHOSTTY_VERSION="1.0.1" | ||
|
||
export DEBEMAIL="[email protected]" | ||
export DEBFULLNAME="Mike Kasberg" | ||
export DEBUILD_DPKG_BUILDPACKAGE_OPTS="-i -I -us -uc" | ||
export DEBUILD_LINTIAN_OPTS="-i -I --show-overrides" | ||
export DEB_BUILD_MAINT_OPTIONS="hardening=+all" | ||
|
||
# Install Build Tools | ||
apt-get -qq update && apt-get -qq install -y build-essential debhelper devscripts pandoc libonig-dev libbz2-dev wget | ||
|
||
wget -q "https://github.com/jedisct1/minisign/releases/download/0.11/minisign-0.11-linux.tar.gz" | ||
tar -xzf minisign-0.11-linux.tar.gz | ||
mv minisign-linux/x86_64/minisign /usr/local/bin | ||
rm -r minisign-linux | ||
|
||
wget -q "https://ziglang.org/download/$ZIG_VERSION/zig-linux-x86_64-$ZIG_VERSION.tar.xz" | ||
tar -xf "zig-linux-x86_64-$ZIG_VERSION.tar.xz" -C /opt | ||
rm "zig-linux-x86_64-$ZIG_VERSION.tar.xz" | ||
ln -s "/opt/zig-linux-x86_64-$ZIG_VERSION/zig" /usr/local/bin/zig | ||
|
||
# Install Ghostty Dependencies | ||
apt-get -qq install -y libgtk-4-dev libadwaita-1-dev | ||
DEBEMAIL="[email protected]" | ||
DEBFULLNAME="Mike Kasberg" | ||
DEBUILD_DPKG_BUILDPACKAGE_OPTS="-i -I -us -uc" | ||
DEBUILD_LINTIAN_OPTS="-i -I --show-overrides" | ||
DEB_BUILD_MAINT_OPTIONS="hardening=+all" | ||
|
||
# Fetch Ghostty Source | ||
wget -q "https://release.files.ghostty.org/$GHOSTTY_VERSION/ghostty-$GHOSTTY_VERSION.tar.gz" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
# Sets up the environment to build Ghostty on Ubuntu | ||
|
||
set -e | ||
|
||
ZIG_VERSION="0.13.0" | ||
|
||
# Install Build Tools | ||
apt-get -qq update && apt-get -qq install -y build-essential debhelper devscripts pandoc libonig-dev libbz2-dev wget | ||
|
||
wget -q "https://github.com/jedisct1/minisign/releases/download/0.11/minisign-0.11-linux.tar.gz" | ||
tar -xzf minisign-0.11-linux.tar.gz | ||
mv minisign-linux/x86_64/minisign /usr/local/bin | ||
rm -r minisign-linux | ||
|
||
wget -q "https://ziglang.org/download/$ZIG_VERSION/zig-linux-x86_64-$ZIG_VERSION.tar.xz" | ||
tar -xf "zig-linux-x86_64-$ZIG_VERSION.tar.xz" -C /opt | ||
rm "zig-linux-x86_64-$ZIG_VERSION.tar.xz" | ||
ln -s "/opt/zig-linux-x86_64-$ZIG_VERSION/zig" /usr/local/bin/zig | ||
|
||
# Install Ghostty Dependencies | ||
apt-get -qq install -y libgtk-4-dev libadwaita-1-dev |