diff --git a/.gitignore b/.gitignore index f6ddf8f..45d52a7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.plasmoid +*.tgz # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] diff --git a/kde/makepackage.sh b/kde/makepackage.sh index 611aa30..3b02e99 100644 --- a/kde/makepackage.sh +++ b/kde/makepackage.sh @@ -3,12 +3,27 @@ #Verify the existence of third party files before packaging. if [ -f "../third_party/hsluv-glsl/hsluv-glsl.fsh" ];then + # plasmoid rm ../panon/__pycache__ -r rm ./plasmoid/contents/scripts/__pycache__/ -r rm ./plasmoid/contents/scripts/soundcard/__pycache__/ -r rm ./panon.plasmoid zip -r panon.plasmoid ./plasmoid + # i18n + cd ./translations + mkdir build + cd build + cmake .. + rm ./locale -r + make install DESTDIR=./locale + cd locale + NAME=../../../i18n.tgz + rm $NAME + tar czvf $NAME * + # Extract + # tar xzvf $NAME -C ~/.local/share/locale + else echo "Cannot find third party files." fi diff --git a/kde/plasmoid/contents/scripts/get_effect_list.py b/kde/plasmoid/contents/scripts/get_effect_list.py index d53bce8..5618167 100644 --- a/kde/plasmoid/contents/scripts/get_effect_list.py +++ b/kde/plasmoid/contents/scripts/get_effect_list.py @@ -13,7 +13,7 @@ def _get_shaders(root: Path, root_id): if _file.suffix == '.frag' or any(_file.glob('*.frag')): yield Effect( _file.name, - str(root_id) + ':' + _file.name.replace(' ', '_').replace('"', '__').replace("'", '___').replace("$", '____'), + str(root_id) + '.' + _file.name.replace(' ', '_').replace('"', '__').replace("'", '___').replace("$", '____'), str(_file.absolute()), ) diff --git a/kde/plasmoid/metadata.desktop b/kde/plasmoid/metadata.desktop index 36fc6ea..680cc1b 100644 --- a/kde/plasmoid/metadata.desktop +++ b/kde/plasmoid/metadata.desktop @@ -9,7 +9,7 @@ X-KDE-ServiceTypes=Plasma/Applet X-KDE-PluginInfo-Author=rbn42 X-KDE-PluginInfo-Email= X-KDE-PluginInfo-Name=panon -X-KDE-PluginInfo-Version=0.3.1 +X-KDE-PluginInfo-Version=0.4.0 X-KDE-PluginInfo-Website=github.com/rbn42/panon X-KDE-PluginInfo-Category=Multimedia X-KDE-PluginInfo-Depends= diff --git a/panon/client.py b/panon/client.py index d7e274b..d4a4bea 100644 --- a/panon/client.py +++ b/panon/client.py @@ -2,8 +2,8 @@ panon client Usage: - freetile [options] - freetile -h | --help + main [options] + main -h | --help Options: -h --help Show this screen.