zu1k / nali

An offline tool for querying IP geographic information and CDN provider. 一个查询IP地理信息和CDN服务提供商的离线终端工具.
https://github.com/zu1k/nali
MIT License
3.74k stars 340 forks source link

Request to add `.deb` package support for Debian/Ubuntu #154

Open malash opened 1 year ago

malash commented 1 year ago

First, thanks author's great work, nali is a awesome tool that I usually use on my MacBook Pro and VPS.

I can easily find the prebuild package from brew on macOS but hard to install it on my Ubuntu server.

So I hope there could be a pre-build .deb package in release files, or a better solution that add nali to Debian/Ubuntu PPA.

zu1k commented 1 year ago

Very sorry for the late reply.

I am not a skilled deb packager, and although I have checked some documentation and understand that deb packaging is not complicated, I still have some questions.

The most common linux distribution I use is ArchLinux, because it is updated on a rolling basis, so most users have the latest glibc version, for which users don't run into the problem of mismatched libc versions that golang depends on when updating nali.

For Debian/Ubuntu, users installing deb packages from the distribution repository will not encounter the problem of not finding the matching version of libc, but if I release a nali deb compiled under ubuntu 22.04, users running older versions of debian will most likely encounter the problem I mentioned.

It is not clear to me that there is an appropriate solution to this problem. And I don't see any benefit in packaging a deb package for a program like nali that only requires a single executable, I prefer to provide an automated install script or even integrate self-upgrading in nali.

asukaminato0721 commented 1 year ago

https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=nali-go-bin + https://github.com/makedeb/makedeb will do the job.

tl;dr: makedeb use PKGBUILD to build the deb. but only a bit of difference. https://docs.makedeb.org/makedeb/differences-from-makepkg/

ks-xh commented 10 months ago

为什么我不能启动它?Debian/Ubuntu 两者都不行, wget https://github.com/zu1k/nali/releases/download/v0.8.0/nali-linux-386-v0.8.0.gz

Pasted image Pasted image 1 ![Uploading Pasted image 2.png…]()