Feat: Improve deb build, add README, icon, desktop file to the deb package

Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>
pull/564/head
Martin 2022-10-13 14:41:19 +02:00 zatwierdzone przez Holger Müller
rodzic c5bee7f3e3
commit 0485e2c8c2
5 zmienionych plików z 58 dodań i 11 usunięć

8
.gitignore vendored
Wyświetl plik

@ -19,7 +19,7 @@ settings.json
*.tar.gz *.tar.gz
*~ *~
.*~ .*~
.bak *.bak
.new *.new
.old *.old
.orig *.orig

Wyświetl plik

@ -9,18 +9,22 @@ info:
# build a new debian package and create a link in the current directory # build a new debian package and create a link in the current directory
.PHONY: deb .PHONY: deb
deb: distclean deb: distclean
DEB_BUILD_OPTIONS=nocheck python3 setup.py \ @# build the deb package
--command-packages=stdeb.command \ PYBUILD_DISABLE=test python3 setup.py \
sdist_dsc --compat 12 --package3 nanovnasaver --section electronics bdist_deb --command-packages=stdeb.command \
-rm nanovnasaver_*.deb sdist_dsc --compat 10 --package3 nanovnasaver --section electronics \
-ln `ls deb_dist/nanovnasaver_*.deb | tail -1` . bdist_deb
@# create a link in the main directory
-@ln `ls deb_dist/nanovnasaver_*.deb | tail -1` .
@# and show the result
@ls -l nanovnasaver_*.deb
# remove all package build artifacts (keep the *.deb) # remove all package build artifacts (keep the *.deb)
.PHONY: clean .PHONY: clean
clean: clean:
python setup.py clean python setup.py clean
-rm -rf deb_dist dist *.tar.gz *.egg* -rm -rf build deb_dist dist *.tar.gz *.egg*
# remove all package build artefacts # remove all package build artefacts

Wyświetl plik

@ -0,0 +1,21 @@
[Desktop Entry]
Categories=Electronics
Comment[de_DE]=Programm das Daten vom NanoVNA liest, anzeigt und speichert
Comment=Tool for reading, displaying and saving data from the NanoVNA
Encoding=UTF-8
Exec=NanoVNASaver
GenericName[de_DE]=
GenericName=
Icon=NanoVNASaver_48x48.png
MimeType=
Name[de_DE]=NanoVNASaver
Name=NanoVNASaver
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=

Wyświetl plik

@ -0,0 +1 @@
icon_48x48.png

Wyświetl plik

@ -16,6 +16,27 @@
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
from setuptools import setup from setuptools import setup
setup()
data_files=[
( "share/doc/nanovnasaver/", [ "CHANGELOG.md", "LICENSE", "README.md" ] ),
( "share/applications/", [ "NanoVNASaver.desktop" ] ),
( "share/icons/hicolor/48x48/apps/", [ "NanoVNASaver_48x48.png" ] ),
]
setup(
author="NanoVNA-Saver organization",
author_email="NanoVNA-Saver@users.noreply.github.com",
url="https://github.com/NanoVNA-Saver/nanovna-saver",
description="GUI for the NanoVNA and derivates",
long_description="""A multiplatform tool to save Touchstone files from the NanoVNA,
sweep frequency spans in segments to gain more data points,
and generally display and analyze the resulting data.
""",
license="GPLv3",
platforms=[ "all" ],
data_files=data_files,
)