version 1.1

This commit is contained in:
John Gebbie 2023-01-21 13:27:30 +00:00
parent 7c091d6654
commit c778104f02
2 changed files with 24 additions and 1 deletions

23
CHANGELOG.md Normal file
View file

@ -0,0 +1,23 @@
# Changelog
Notable changes to dotool will be documented in this file.
## [1.1](https://git.sr.ht/~geb/dotool/refs/1.1)
### Added
- Added --version.
- Added keyhold and typehold.
### Changed
- The install script is now suitable for packaging and sets --version.
- There is now a default keydelay, keyhold, typedelay and typehold.
- Delays now come after keypresses not before.
- Now aborts if there are any command-line arguments.
### Fixed
- Added a udev rule so it shouldn't type guff if you're using a non-us
keyboard layout on at least X11.
- Fixed x:backspace that was simulating shift.

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# ./install.sh [DESTDIR] [BINDIR] # ./install.sh [DESTDIR] [BINDIR]
: "${DOTOOL_VERSION=$(git describe --long --abbrev=12 --tags --dirty 2>/dev/null || echo 1.0)}" : "${DOTOOL_VERSION=$(git describe --long --abbrev=12 --tags --dirty 2>/dev/null || echo 1.1)}"
go build -ldflags "-X main.Version=$DOTOOL_VERSION" || exit go build -ldflags "-X main.Version=$DOTOOL_VERSION" || exit
mkdir -p "$1/${2:-usr/local/bin}" || exit mkdir -p "$1/${2:-usr/local/bin}" || exit
cp -v dotool dotoolc dotoold "$1/${2:-usr/local/bin}" || exit cp -v dotool dotoolc dotoold "$1/${2:-usr/local/bin}" || exit