From f8514eac01b2341a285fbf7300a82ba57ee3c314 Mon Sep 17 00:00:00 2001 From: wwjjbb <dxt.wjb@gmail.com> Date: Thu, 29 Jun 2017 19:01:43 +0100 Subject: [PATCH] Update packager Filetype changed to .plasmoid because that's what the file loader is looking for. Take the version number directly from the metadata. --- .gitignore | 1 + mkzip | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index e4b4383..5719913 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.zip +*.plasmoid /build/ /*.kdev4 *~ diff --git a/mkzip b/mkzip index 3364d28..36189e2 100755 --- a/mkzip +++ b/mkzip @@ -1,5 +1,8 @@ #!/bin/bash +METADATA="package/metadata.desktop" +VERSION=$(grep "X-KDE-PluginInfo-Version" $METADATA | sed 's/.*=//') + cd package -zip -r ../Luna-II-ver.zip * +zip -r ../Luna-II-${VERSION}.plasmoid * cd .. -- GitLab