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
*~
.*~
.bak
.new
.old
.orig
*.bak
*.new
*.old
*.orig

Wyświetl plik

@ -9,18 +9,22 @@ info:
# build a new debian package and create a link in the current directory
.PHONY: deb
deb: distclean
DEB_BUILD_OPTIONS=nocheck python3 setup.py \
--command-packages=stdeb.command \
sdist_dsc --compat 12 --package3 nanovnasaver --section electronics bdist_deb
-rm nanovnasaver_*.deb
-ln `ls deb_dist/nanovnasaver_*.deb | tail -1` .
@# build the deb package
PYBUILD_DISABLE=test python3 setup.py \
--command-packages=stdeb.command \
sdist_dsc --compat 10 --package3 nanovnasaver --section electronics \
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)
.PHONY: clean
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

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
# along with this program. If not, see <https://www.gnu.org/licenses/>.
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,
)