mirror of
https://github.com/sezanzeb/input-remapper
synced 2024-11-16 06:12:58 +00:00
Merge branch 'main' of github.com:sezanzeb/key-mapper into main
This commit is contained in:
commit
ce2eb9403a
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
||||
|
@ -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 &
|
||||
|
Loading…
Reference in New Issue
Block a user