Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Debian Support with .deb file and buildscript #3958

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ all: build
build:
go build -gcflags='all=-N -l'

.PHONY: makedeb
makedeb: build
scripts/makedeb.sh

.PHONY: install
install:
go install
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ If you're a mere mortal like me and you're tired of hearing how powerful git is
- [Fedora and RHEL](#fedora-and-rhel)
- [Solus Linux](#solus-linux)
- [Ubuntu](#ubuntu)
- [Debian](#debian)
- [Funtoo Linux](#funtoo-linux)
- [Gentoo Linux](#gentoo-linux)
- [FreeBSD](#freebsd)
Expand Down Expand Up @@ -318,6 +319,18 @@ Verify the correct installation of lazygit:
lazygit --version
```

### Debian
```sh
make makedeb
sudo dpkg -i lazygit.deb
```

Verify the correct installation of lazygit:

```sh
lazygit --version
```

### Funtoo Linux

Funtoo Linux has an autogenerated lazygit package in [dev-kit](https://github.com/funtoo/dev-kit/tree/1.4-release/dev-vcs/lazygit):
Expand Down
13 changes: 13 additions & 0 deletions scripts/makedeb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
mkdir -p lazygit_deb/{DEBIAN,usr/local/bin}
cat << EOF > lazygit_deb/DEBIAN/control
Package: lazygit
Version: 0.44.1
Maintainer: jesseduffield
Architecture: amd64
Description: simple terminal UI for git commands
EOF
cp ../lazygit lazygit_deb/usr/local/bin/
dpkg-deb --build lazygit_deb
mv lazygit_deb.deb lazygit.deb
rm -rf lazygit_deb