-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
27 changed files
with
211 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
pyinstaller build32.spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# -*- mode: python -*- | ||
# coding: utf-8 | ||
block_cipher = None | ||
|
||
a = Analysis( | ||
['./tickeys/run.py'], | ||
pathex=['./tickeys'], | ||
binaries=[ | ||
('lib/32/libmodplug.so.1',"."), | ||
('lib/32/libSDL2_ttf-2.0.so.0',"."), | ||
('lib/32/libSDL2_image-2.0.so.0',"."), | ||
('lib/32/libSDL2_mixer-2.0.so.0',"."), | ||
('lib/32/libSDL2-2.0.so.0',"."), | ||
('lib/32/libsndio.so.6.0',"."), | ||
], # 动态库 | ||
datas=[("./tickeys/tickeys.png",".")], # 数据文件,可以是任意文件类型,例如ini配置文件、字体文件、图片等 | ||
hiddenimports=['six','packaging', 'packaging.version', 'packaging.specifiers'], | ||
hookspath=None, | ||
runtime_hooks=None, | ||
excludes=None, | ||
win_no_prefer_redirects=None, | ||
win_private_assemblies=None, | ||
cipher=block_cipher) | ||
a.datas += Tree("./tickeys/Resources", prefix = "Resources") | ||
a.datas += Tree("./tickeys/kivy", prefix = "kivy") | ||
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) | ||
exe = EXE(pyz, | ||
a.scripts, | ||
a.binaries, | ||
a.zipfiles, | ||
a.datas, | ||
name='Tickeys', | ||
debug=False, | ||
strip=None, | ||
upx=True, | ||
console=True | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
sh build32.sh | ||
cd dist | ||
sudo sh make_deb32.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,46 @@ | ||
#!/bin/bash | ||
|
||
echo "Creating tickeys.deb" | ||
version=0.2.4 | ||
folder_name=tickeys_$version\_amd64 | ||
|
||
echo "Creating $folder_name.deb" | ||
#Creating a .deb.. | ||
mkdir -p tickeys/usr/local/bin | ||
mkdir -p tickeys/usr/share/applications | ||
mkdir -p tickeys/usr/share/app-install/desktop | ||
mkdir -p tickeys/usr/share/Tickeys/icons | ||
mkdir -p tickeys/DEBIAN | ||
mkdir -p $folder_name/usr/bin | ||
mkdir -p $folder_name/usr/local/bin | ||
mkdir -p $folder_name/usr/share/applications | ||
mkdir -p $folder_name/usr/share/app-install/desktop | ||
mkdir -p $folder_name/usr/share/Tickeys/icons | ||
mkdir -p $folder_name/DEBIAN | ||
|
||
chmod -R 0755 $folder_name/DEBIAN | ||
cp postrm $folder_name/DEBIAN/postrm | ||
chmod -R 0755 $folder_name/DEBIAN/postrm | ||
cp postrm $folder_name/DEBIAN/postrm | ||
chmod -R 0755 $folder_name/DEBIAN/postrm | ||
|
||
cp tickeys.png tickeys/usr/share/Tickeys/icons/tickeys.png | ||
cp tickeys.png $folder_name/usr/share/Tickeys/icons/tickeys.png | ||
|
||
deb_control="Source: Tickeys | ||
deb_control="Source: $folder_name | ||
Priority: extra | ||
Maintainer: Bill <[email protected]> | ||
Author: Bill <[email protected]> | ||
Build-Depends: debhelper (>= 8.0.0) | ||
Depends: xdotool(>= 2), gksu | ||
Standards-Version: 3.9.2 | ||
Package: tickeys | ||
Version: 0.2.3 | ||
Architecture: i386 | ||
Installed-Size: 32253411 | ||
Description: Instant audio feedback when typing, For Linux. (https://github.com/BillBillBillBill/Tickeys-linux) | ||
Version: $version | ||
Section: misc | ||
Homepage: https://github.com/BillBillBillBill/Tickeys-linux | ||
Architecture: amd64 | ||
Installed-Size: 32253 | ||
Description: Tickeys是一款很强大的键盘音效软件。 | ||
Tickeys 自带了多种声音效果方案,有打字机、冒泡、机械键盘、剑气等。 | ||
每天都听着键盘声音是不是很烦闷,现在有了这款神器你就可以瞬间帮助自己的键盘加上逼格特效。 | ||
项目主页:https://github.com/BillBillBillBill/Tickeys-linux | ||
" | ||
|
||
echo "$deb_control" > tickeys/DEBIAN/control | ||
chown root tickeys/DEBIAN/control | ||
echo "$deb_control" > $folder_name/DEBIAN/control | ||
chown root $folder_name/DEBIAN/control | ||
|
||
desktop="#!/usr/bin/env xdg-open | ||
[Desktop Entry] | ||
|
@@ -42,17 +58,17 @@ Name=Tickeys | |
Comment=Instant audio feedback when typing. For Linux. | ||
" | ||
|
||
echo "$desktop" > tickeys/usr/share/applications/Tickeys.desktop | ||
chmod a+x tickeys/usr/share/applications/Tickeys.desktop | ||
chown root tickeys/usr/share/applications/Tickeys.desktop | ||
|
||
echo "$desktop" > tickeys/usr/share/app-install/desktop/Tickeys.desktop | ||
chmod a+x tickeys/usr/share/app-install/desktop/Tickeys.desktop | ||
chown root tickeys/usr/share/app-install/desktop/Tickeys.desktop | ||
echo "$desktop" > $folder_name/usr/share/applications/Tickeys.desktop | ||
chmod a+x $folder_name/usr/share/applications/Tickeys.desktop | ||
chown root $folder_name/usr/share/applications/Tickeys.desktop | ||
|
||
cp Tickeys tickeys/usr/local/bin/Tickeys | ||
echo "$desktop" > $folder_name/usr/share/app-install/desktop/Tickeys.desktop | ||
chmod a+x $folder_name/usr/share/app-install/desktop/Tickeys.desktop | ||
chown root $folder_name/usr/share/app-install/desktop/Tickeys.desktop | ||
|
||
dpkg-deb -z9 -b tickeys | ||
cp Tickeys $folder_name/usr/local/bin/Tickeys | ||
ln -s /usr/local/bin/Tickeys $folder_name/usr/bin/tickeys | ||
|
||
dpkg-deb -z9 -b $folder_name | ||
|
||
echo "ok." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
#!/bin/bash | ||
|
||
version=0.2.4 | ||
folder_name=tickeys_$version\_i386 | ||
|
||
echo "Creating $folder_name.deb" | ||
#Creating a .deb.. | ||
mkdir -p $folder_name/usr/bin | ||
mkdir -p $folder_name/usr/local/bin | ||
mkdir -p $folder_name/usr/share/applications | ||
mkdir -p $folder_name/usr/share/app-install/desktop | ||
mkdir -p $folder_name/usr/share/Tickeys/icons | ||
mkdir -p $folder_name/DEBIAN | ||
|
||
chmod -R 0755 $folder_name/DEBIAN | ||
cp postrm $folder_name/DEBIAN/postrm | ||
chmod -R 0755 $folder_name/DEBIAN/postrm | ||
cp postinst $folder_name/DEBIAN/postinst | ||
chmod -R 0755 $folder_name/DEBIAN/postinst | ||
|
||
cp tickeys.png $folder_name/usr/share/Tickeys/icons/tickeys.png | ||
|
||
deb_control="Source: $folder_name | ||
Priority: extra | ||
Maintainer: Bill <[email protected]> | ||
Author: Bill <[email protected]> | ||
Build-Depends: debhelper (>= 8.0.0) | ||
Depends: xdotool(>= 2), gksu | ||
Standards-Version: 3.9.2 | ||
Package: tickeys | ||
Version: $version | ||
Section: misc | ||
Homepage: https://github.com/BillBillBillBill/Tickeys-linux | ||
Architecture: i386 | ||
Installed-Size: 32253 | ||
Description: Tickeys是一款很强大的键盘音效软件。 | ||
Tickeys 自带了多种声音效果方案,有打字机、冒泡、机械键盘、剑气等。 | ||
每天都听着键盘声音是不是很烦闷,现在有了这款神器你就可以瞬间帮助自己的键盘加上逼格特效。 | ||
项目主页:https://github.com/BillBillBillBill/Tickeys-linux | ||
" | ||
|
||
echo "$deb_control" > $folder_name/DEBIAN/control | ||
chown root $folder_name/DEBIAN/control | ||
|
||
desktop="#!/usr/bin/env xdg-open | ||
[Desktop Entry] | ||
Version=1.0 | ||
Type=Application | ||
Categories=Application; | ||
Exec=gksu /usr/local/bin/Tickeys | ||
Icon=/usr/share/Tickeys/icons/tickeys.png | ||
Terminal=false | ||
Hidden=false | ||
NoDisplay=false | ||
StartupNotify=true | ||
X-GNOME-Autostart-enabled=true | ||
Name=Tickeys | ||
Comment=Instant audio feedback when typing. For Linux. | ||
" | ||
|
||
echo "$desktop" > $folder_name/usr/share/applications/Tickeys.desktop | ||
chmod a+x $folder_name/usr/share/applications/Tickeys.desktop | ||
chown root $folder_name/usr/share/applications/Tickeys.desktop | ||
|
||
echo "$desktop" > $folder_name/usr/share/app-install/desktop/Tickeys.desktop | ||
chmod a+x $folder_name/usr/share/app-install/desktop/Tickeys.desktop | ||
chown root $folder_name/usr/share/app-install/desktop/Tickeys.desktop | ||
|
||
cp Tickeys $folder_name/usr/local/bin/Tickeys | ||
ln -s /usr/local/bin/Tickeys $folder_name/usr/bin/tickeys | ||
|
||
dpkg-deb -z9 -b $folder_name | ||
|
||
echo "ok." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
set -e | ||
# Automatically added by dh_icons | ||
if which update-icon-caches >/dev/null 2>&1 ; then | ||
update-icon-caches /usr/share/icons/ubuntu-mono-dark /usr/share/icons/ubuntu-mono-light | ||
fi | ||
# End automatically added section |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
rm -f /usr/bin/tickeys | ||
rm -f /usr/share/icons/Tickeys/tickeys.png | ||
rm -f /usr/share/applications/Tickeys.desktop | ||
rm -f /etc/xdg/autostart/Tickeys.desktop | ||
rm -f ~/.config/autostart/Tickeys.desktop | ||
rm -f ~/.config/openbox/autostart/Tickeys.desktop | ||
set -e | ||
# Automatically added by dh_installmenu | ||
if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi | ||
# End automatically added section |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
__author__ = 'Huang Xiongbiao' | ||
__email__ = '[email protected]' | ||
__version__ = '0.2.3' | ||
__version__ = '0.2.4' | ||
debug_mode = False | ||
|
||
from run import main | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
cython | ||
Pygments | ||
cython==0.20.2 | ||
evdev | ||
Kivy | ||
cx_freeze | ||
kivy==1.9.0 | ||
pyinstaller==3.0 | ||
notify2 |
Binary file not shown.