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

Feature/debian package #563

Merged
merged 3 commits into from
Oct 15, 2022
Merged
Show file tree
Hide file tree
Changes from 2 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
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ settings.json
*.tar.gz
*~
.*~
.bak
.new
.old
.orig
*.bak
*.new
*.old
*.orig
18 changes: 11 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,28 @@ 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
.PHONY: distclean
distclean: clean
-rm *.deb
-rm -f *.deb


# build and install a new debian package
Expand Down
21 changes: 21 additions & 0 deletions NanoVNASaver.desktop
Original file line number Diff line number Diff line change
@@ -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=
1 change: 1 addition & 0 deletions NanoVNASaver_48x48.png
7 changes: 5 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
[metadata]
name = NanoVNASaver
author = Rune B. Broberg
author_email= NanoVNA-Saver@users.noreply.github.com
license = GNU GPL V3
license_file = LICENSE
description = A Qt GUI for the NanoVNA and derivates
license_files = LICENSE,
description = GUI for the NanoVNA and derivates
long_description = file: README.md
url = https://github.com/NanoVNA-Saver/nanovna-saver
version = attr: NanoVNASaver.About.VERSION
platforms= all

[options]
packages = find_namespace:
Expand All @@ -21,3 +23,4 @@ python_requires = >=3.8, <4
[options.entry_points]
console_scripts =
NanoVNASaver = NanoVNASaver.__main__:main

9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,11 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
from setuptools import setup

setup()
setup(
data_files=[
( "share/doc/nanovnasaver/", [ "CHANGELOG.md", "LICENSE", "README.md" ] ),
( "share/applications/", [ "NanoVNASaver.desktop" ] ),
( "share/icons/hicolor/48x48/apps/", [ "NanoVNASaver_48x48.png" ] ),
]
)