Skip to content

Commit

Permalink
2015-10-13 version 0.2.0
Browse files Browse the repository at this point in the history
1.打包成单独运行文件,制作了安装脚本,解决依赖问题
2.改为使用pyinstaller打包
  • Loading branch information
BillBillBillBill committed Oct 13, 2015
1 parent d78c835 commit 3ad8ded
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 5 deletions.
4 changes: 4 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2015-10-13 version 0.2.0
1.打包成单独运行文件,制作了安装脚本,解决依赖问题
2.改为使用pyinstaller打包

2015-10-11 version 0.1.9
1.UI微调(字体,颜色等)

Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ https://github.com/yingDev/Tickeys
* 通过本目录下载Tickeys
* 然后通过 `sudo ./Tickeys` 来打开
* 打开CLI版本: `sudo ./Tickeys -c`
* 或者运行`sudo sh install.sh`后在终端使用`tickeys`命令运行或在菜单中找到tickeys点击运行

##编译安装:
##编译安装(需要安装依赖)

* 以下方法需要**先执行**`sudo apt-get install python-dev python-pip python-kivy xdotool`来安装依赖,一般这样就可以满足运行条件了。

Expand All @@ -52,7 +53,7 @@ https://github.com/yingDev/Tickeys
* ~~然后使用cx_freeze进行打包:`sudo python bulid.py bulid`~~
* 然后下面跟方法2一样打开

#### 其他错误解决方案
#### 错误解决方案

* 无法隐藏窗口:

Expand Down Expand Up @@ -112,7 +113,7 @@ Open at startup是开启开机自启动功能选项,开关置为ON开启功能

~~使用cx_freeze进行打包:~~

~~ 命令:`sudo python bulid.py bulid`~~
~~命令:`sudo python bulid.py bulid`~~


使用pyinstaller打包
Expand Down
22 changes: 22 additions & 0 deletions dist/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
cp Tickeys /usr/bin/tickeys
chmod 0777 /usr/bin/tickeys
mkdir /usr/share/icons/Tickeys
cp tickeys.png /usr/share/icons/Tickeys/tickeys.png
cat>>Tickeys.desktop<<EOF
#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Categories=Application;
Exec=gksu /usr/bin/tickeys
Icon=/usr/share/icons/Tickeys/tickeys.png
Terminal=true
Hidden=false
NoDisplay=false
StartupNotify=true
X-GNOME-Autostart-enabled=true
Name=Tickeys
Comment=Instant audio feedback when typing. For Linux.
EOF
cp Tickeys.desktop /usr/share/applications/Tickeys.desktop
echo Install tickeys success, use command tickeys to start it
3 changes: 3 additions & 0 deletions dist/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
安装:sudo sh install.sh
卸载:sudo sh uninstall.sh
运行:sudo tickeys
Binary file added dist/tickeys.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions dist/uninstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
rm /usr/bin/tickeys
rm /usr/share/icons/Tickeys/tickeys.png
rm /usr/share/applications/Tickeys.desktop
rm /etc/xdg/autostart/Tickeys.desktop
rm ~/.config/autostart/Tickeys.desktop
rm ~/.config/openbox/autostart/Tickeys.desktop
echo Uninstall tickeys success
Binary file added tickeys-0.2.0(单独运行文件).tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion tickeys/StartupHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def add_startup_linux():
[Desktop Entry]
Type=Application
Categories=Application;
Exec=%s /usr/bin/python /usr/local/bin/tickeys
Exec=%s tickeys
Icon=%s/tickeys.png
Terminal=true
Hidden=false
Expand Down
2 changes: 1 addition & 1 deletion tickeys/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__author__ = 'Huang Xiongbiao'
__email__ = '[email protected]'
__version__ = '0.1.9'
__version__ = '0.2.0'

from run import main

Expand Down

0 comments on commit 3ad8ded

Please sign in to comment.