fpm build deb

This commit is contained in:
Mitchell Hashimoto
2023-02-25 14:54:22 -08:00
parent b927105959
commit f217cd24b9
2 changed files with 13 additions and 0 deletions

View File

@ -11,6 +11,15 @@ dev/install:
cp zig-out/bin/ghostty ${HOME}/bin/devtty
.PHONY: dev/install
# Create a binary deb. This isn't meant for general purpose use. This is just
# for testing. General purpose should use a real package manager (I don't
# maintain it at the moment).
deb:
rm -rf zig-out/
zig build -Doptimize=ReleaseFast
fpm -C zig-out/ -s dir -t deb -n ghostty --prefix /usr ./
.PHONY: deb
# glad updates the GLAD loader. To use this, place the generated glad.zip
# in this directory next to the Makefile, remove vendor/glad and run this target.
#

View File

@ -1,5 +1,7 @@
{ mkShell, lib, stdenv
, dpkg
, fpm
, gdb
, glxinfo
, nodejs
@ -64,6 +66,8 @@ in mkShell rec {
nativeBuildInputs = [
# For builds
dpkg
fpm
llvmPackages_latest.llvm
pkg-config
scdoc