Merge branch 'main' of github.com:sezanzeb/key-mapper into main

This commit is contained in:
sezanzeb 2021-01-01 03:13:49 +01:00
commit ce2eb9403a
6 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
Package: key-mapper
Version: 0.4.0
Version: 0.4.1
Architecture: all
Maintainer: Sezanzeb <proxima@hip70890b.de>
Depends: build-essential, libpython3-dev, libdbus-1-dev, python3, python3-setuptools, python3-evdev, python3-pydbus, python3-gi

View File

@ -177,7 +177,7 @@ class GlobalConfig(ConfigBase):
def __init__(self):
self.path = os.path.join(CONFIG_PATH, 'config.json')
# migrate from < 0.4.0, add the .json ending
# migrate from < 0.4.1, add the .json ending
deprecated_path = os.path.join(CONFIG_PATH, 'config')
if os.path.exists(deprecated_path) and not os.path.exists(self.path):
logger.info('Moving "%s" to "%s"', deprecated_path, self.path)

View File

@ -32,13 +32,13 @@ from keymapper.getdevices import get_devices
def migrate_path():
"""Migrate the folder structure from < 0.4.0.
"""Migrate the folder structure from < 0.4.1.
Move existing presets into the new subfolder "presets"
"""
new_preset_folder = os.path.join(CONFIG_PATH, 'presets')
if not os.path.exists(get_preset_path()) and os.path.exists(CONFIG_PATH):
logger.info('Migrating presets from < 0.4.0...')
logger.info('Migrating presets from < 0.4.1...')
devices = os.listdir(CONFIG_PATH)
mkdir(get_preset_path())
for device in devices:

View File

@ -51,7 +51,7 @@ Install dpkg or ssh/login into a debian/ubuntu environment
./scripts/build.sh
```
This will generate `key-mapper/deb/key-mapper-0.4.0.deb`
This will generate `key-mapper/deb/key-mapper-0.4.1.deb`
## Badges

View File

@ -8,7 +8,7 @@ build_deb() {
python3 setup.py install --root=build/deb
cp ./DEBIAN build/deb/ -r
mkdir dist -p
dpkg -b build/deb dist/key-mapper-0.4.0.deb
dpkg -b build/deb dist/key-mapper-0.4.1.deb
}
build_deb &

View File

@ -25,7 +25,7 @@ from setuptools import setup
setup(
name='key-mapper',
version='0.4.0',
version='0.4.1',
description='A tool to change the mapping of your input device buttons',
author='Sezanzeb',
author_email='proxima@hip70890b.de',