debian package

This commit is contained in:
sezanzeb 2020-11-29 13:30:16 +01:00
parent 24656e4060
commit 025c3fd718
5 changed files with 11 additions and 18 deletions

View File

@ -9,13 +9,13 @@
</mask>
<g mask="url(#a)">
<path fill="#555" d="M0 0h63v20H0z"/>
<path fill="#a4a61d" d="M63 0h36v20H63z"/>
<path fill="#dfb317" d="M63 0h36v20H63z"/>
<path fill="url(#b)" d="M0 0h99v20H0z"/>
</g>
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
<text x="31.5" y="15" fill="#010101" fill-opacity=".3">coverage</text>
<text x="31.5" y="14">coverage</text>
<text x="80" y="15" fill="#010101" fill-opacity=".3">87%</text>
<text x="80" y="14">87%</text>
<text x="80" y="15" fill="#010101" fill-opacity=".3">61%</text>
<text x="80" y="14">61%</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 904 B

After

Width:  |  Height:  |  Size: 904 B

0
badges.sh → scripts/badges.sh Normal file → Executable file
View File

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# builds .deb and .appimage files in order to distribute them
build_deb() {
# https://github.com/phusion/debian-packaging-for-the-modern-developer/tree/master/tutorial-1
@ -8,15 +9,14 @@ build_deb() {
python3 setup.py sdist --dist-dir $dist
tar -C $dist -xzf $dist/$name.tar.gz
rm $dist/$name.tar.gz
cp deb/DEBIAN $dist/$name -r
cp DEBIAN $dist/$name -r
dpkg-deb -b $dist/$name $dist/$name.deb
rm $dist/$name -r
cp $dist/$name.deb deb
echo ".deb package created"
echo "created $dist/$name.deb"
}
build_appimage() {
echo "created $dist/$name.appimage"
}

View File

@ -22,9 +22,6 @@
import glob
from setuptools import setup
with open('README.md', 'r') as f:
long_description = f.read()
setup(
name='key-mapper',
version='0.1.0',
@ -39,14 +36,10 @@ setup(
'keymapper.gtk'
],
data_files=[
('share/key-mapper/', glob.glob('data/*')),
('share/applications/', ['data/key-mapper.desktop']),
('/usr/share/key-mapper/', glob.glob('data/*')),
('/usr/share/applications/', ['data/key-mapper.desktop']),
('/etc/xdg/autostart/', ['data/key-mapper-service.desktop']),
('/usr/bin/', ['bin/key-mapper-gtk']),
('/usr/bin/', ['bin/key-mapper-service']),
],
scripts=[
'bin/key-mapper-gtk',
'bin/key-mapper-service'
],
long_description=long_description,
long_description_content_type='text/markdown'
)