From de3d62bc5cbb848c12546fbd5ab6ed3c1df745a7 Mon Sep 17 00:00:00 2001 From: Yuanle Song Date: Wed, 23 Oct 2019 20:20:10 +0800 Subject: [PATCH] v0.9.2 when install deb pkg, auto kill old process So user will start using new version right away. --- create-deb.sh | 1 + deb-scripts/after-install.sh | 3 +++ meson.build | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 deb-scripts/after-install.sh diff --git a/create-deb.sh b/create-deb.sh index 09df2d2..4b39ee4 100755 --- a/create-deb.sh +++ b/create-deb.sh @@ -34,6 +34,7 @@ fpm -f -t deb -s dir -n zero-pinyin-service -v "$VERSION" \ -d libsqlite3-0 \ -d libuuid1 \ -d libpyzy-1.0-0v5 \ + --after-install deb-scripts/after-install.sh \ --description "provide pinyin input engine for zero-el pinyin" \ --vendor sylecn \ --maintainer "Yuanle Song " \ diff --git a/deb-scripts/after-install.sh b/deb-scripts/after-install.sh new file mode 100644 index 0000000..589fa80 --- /dev/null +++ b/deb-scripts/after-install.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +pkill -f /usr/bin/zero-pinyin-service || true diff --git a/meson.build b/meson.build index b14609f..073b1d1 100644 --- a/meson.build +++ b/meson.build @@ -1,6 +1,6 @@ # -*- mode: conf -*- project('zero-pinyin-service', ['c', 'cpp'], - version: '0.9.1', + version: '0.9.2', license: 'GPL', default_options: [ 'warning_level=2', -- GitLab