Skip to content

Commit

Permalink
ci: remove depenedency on gnome-extension pack
Browse files Browse the repository at this point in the history
  • Loading branch information
BlankParticle committed Mar 24, 2024
1 parent d71ea10 commit 61a858d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: pnpm install

- name: Build 🏗
run: pnpm build -- --no-bundle
run: pnpm build

- name: Lint 🧹
run: pnpm lint
7 changes: 1 addition & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ jobs:
cache: "pnpm"
node-version: "20"

- name: Add Gnome Extension Tools 🧩
run: |
sudo apt update
sudo apt install -y gnome-shell-extensions
- name: Install Dependencies 📥
run: pnpm install

Expand All @@ -40,7 +35,7 @@ jobs:
- name: Release 🚀
uses: softprops/action-gh-release@v2
with:
files: dist/*.shell-extension.zip
files: dist/shell-extension.zip
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ github.ref }}
body: "Release ${{ github.ref }}"
Expand Down
14 changes: 2 additions & 12 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,7 @@ export default defineConfig({
].join("\n"),
},
onSuccess: async () => {
if (process.argv.includes("--no-bundle")) return;
await copyAssets();
await packExtension();
await fs.copy("./assets", "./dist");
await $`cd dist && glib-compile-schemas schemas && zip -r ./shell-extension.zip . -9r`;
},
});

const packExtension = async () => {
const files = (await fs.readdir("./dist"))
.filter((f) => fs.statSync(`./dist/${f}`).isFile())
.map((file) => `--extra-source=./${file}`);
await $`cd dist && gnome-extensions pack -f ${files} -o ./`;
};

const copyAssets = () => fs.copy("./assets", "./dist");

0 comments on commit 61a858d

Please sign in to comment.