pull/14/head 0.4.1
sezanzeb 4 years ago
parent 99b75fd2b3
commit 0f0072e397

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

@ -25,7 +25,7 @@ pacaur -S key-mapper-git
sudo apt install git python3-setuptools sudo apt install git python3-setuptools
git clone https://github.com/sezanzeb/key-mapper.git git clone https://github.com/sezanzeb/key-mapper.git
cd key-mapper && ./scripts/build.sh cd key-mapper && ./scripts/build.sh
sudo dpkg -i ./dist/key-mapper-0.4.0.deb sudo dpkg -i ./dist/key-mapper-0.4.1.deb
sudo apt -f install sudo apt -f install
``` ```

@ -177,7 +177,7 @@ class GlobalConfig(ConfigBase):
def __init__(self): def __init__(self):
self.path = os.path.join(CONFIG_PATH, 'config.json') 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') deprecated_path = os.path.join(CONFIG_PATH, 'config')
if os.path.exists(deprecated_path) and not os.path.exists(self.path): if os.path.exists(deprecated_path) and not os.path.exists(self.path):
logger.info('Moving "%s" to "%s"', deprecated_path, self.path) logger.info('Moving "%s" to "%s"', deprecated_path, self.path)

@ -32,13 +32,13 @@ from keymapper.getdevices import get_devices
def migrate_path(): 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" Move existing presets into the new subfolder "presets"
""" """
new_preset_folder = os.path.join(CONFIG_PATH, 'presets') new_preset_folder = os.path.join(CONFIG_PATH, 'presets')
if not os.path.exists(get_preset_path()) and os.path.exists(CONFIG_PATH): 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) devices = os.listdir(CONFIG_PATH)
mkdir(get_preset_path()) mkdir(get_preset_path())
for device in devices: for device in devices:

@ -50,7 +50,7 @@ Install dpkg or ssh/login into a debian/ubuntu environment
./scripts/build.sh ./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 ## Badges

@ -8,7 +8,7 @@ build_deb() {
python3 setup.py install --root=build/deb python3 setup.py install --root=build/deb
cp ./DEBIAN build/deb/ -r cp ./DEBIAN build/deb/ -r
mkdir dist -p 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 & build_deb &

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

Loading…
Cancel
Save