Skip to content

Commit

Permalink
Updates packaging script to process new metadata.json
Browse files Browse the repository at this point in the history
  • Loading branch information
x211321 committed May 9, 2024
1 parent 9b70c37 commit d062704
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"ServiceTypes": [
"Plasma/Applet"
],
"Version": "0.1.4",
"Version": "0.1.5",
"Website": "https://github.com/x211321/RGB-Config-Acer-gkbbl-0-Plasma-Widget"
},
"X-Plasma-NotificationArea": "true",
Expand Down
5 changes: 4 additions & 1 deletion scripts/package_plasmoid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
cd "${0%/*}"
cd ..

version=$(awk -F "=" '/X-KDE-PluginInfo-Version/ {print $2}' ./package/metadata.desktop)
version=$(awk -F ":" '/"Version"/ {print $2}' ./package/metadata.json)
version=${version//\"}
version=${version//,}
version=${version// }

rm ./scripts/RGB-Config-Acer_$version.plasmoid
zip -r ./scripts/RGB-Config-Acer_$version.plasmoid ./package -x ./package/translate/\*
Expand Down

0 comments on commit d062704

Please sign in to comment.