From f217cd24b91dd0ff57a5d7e2069ac757cb02d347 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 25 Feb 2023 14:54:22 -0800 Subject: [PATCH] fpm build deb --- Makefile | 9 +++++++++ nix/devshell.nix | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/Makefile b/Makefile index 5db8f24ff..07e78bcdb 100644 --- a/Makefile +++ b/Makefile @@ -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. # diff --git a/nix/devshell.nix b/nix/devshell.nix index e343682bd..b6d7e9664 100644 --- a/nix/devshell.nix +++ b/nix/devshell.nix @@ -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