From 426eb96b608038485801d8924906f519a8f3cb92 Mon Sep 17 00:00:00 2001 From: Simon Schneegans Date: Thu, 18 Aug 2022 06:24:02 +0200 Subject: [PATCH] :tada: Add an archive for each kwin effect to the releases --- .github/workflows/deploy.yml | 3 ++- README.md | 4 ++-- docs/changelog.md | 1 + kwin/build.sh | 5 ++++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d5059f6..428c538 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -44,6 +44,7 @@ jobs: uses: svenstaro/upload-release-action@2.2.1 with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: kwin/burn_my_windows_kwin4.tar.gz + file: kwin/*.tar.gz tag: ${{ github.ref }} overwrite: true + file_glob: true diff --git a/README.md b/README.md index 89ddbda..ad62a62 100644 --- a/README.md +++ b/README.md @@ -161,8 +161,8 @@ Then you can enable the extension with the *Gnome Tweak Tool*, the *Extensions* gnome-extensions enable burn-my-windows@schneegans.github.com ``` -## ⬇️ Installation (KWin) +## ⬇️ Installation (KWin) You can either download a stable version from GitHub (a) or clone the latest version directly with `git` (b). @@ -198,7 +198,7 @@ Now you will have to build the effects and copy them to your KWin effect directo ```bash ./kwin/build.sh mkdir -p ~/.local/share/kwin/effects -cp -r kwin/_build/* ~/.local/share/kwin/effects +tar -xf kwin/burn_my_windows_kwin4.tar.gz -C ~/.local/share/kwin/effects ``` That's it! diff --git a/docs/changelog.md b/docs/changelog.md index eca4d4b..19edf89 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -12,6 +12,7 @@ * Many translation updates, including a completely new Portuguese, Esperanto, and Hebrew translation. A BIG THANKS to all translators! * On GNOME, effects can now execute code whenever an animation ended. This is useful for cleaning up resources. +* The KWin build script now generates a separate archive for each effect as well as a combined archive for all effects. #### Fixes diff --git a/kwin/build.sh b/kwin/build.sh index 4153729..b394191 100755 --- a/kwin/build.sh +++ b/kwin/build.sh @@ -111,11 +111,14 @@ generate() { cat "../resources/shaders/$1.frag" } > "$BUILD_DIR/$DIR_NAME/contents/shaders/$1.frag" - # If clang-format is installed, try to beauty the code a bit. + # If clang-format is installed, try to beautify the code a bit. if command -v clang-format &> /dev/null then clang-format -i "$BUILD_DIR/$DIR_NAME/contents/code/main.js" fi + + # Create an archive which can be uploaded to https://store.kde.org. + tar -cjf "$DIR_NAME.tar.gz" -C "$BUILD_DIR/$DIR_NAME" $(ls "$BUILD_DIR/$DIR_NAME") } # Now run the above method for all supported effects.