From 208158f4d1822fdec673609eb371eebe813d826b Mon Sep 17 00:00:00 2001 From: Vendicated Date: Mon, 4 Dec 2023 11:34:39 +0100 Subject: [PATCH 01/12] fix shiggy looking creepy --- static/views/splash.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/views/splash.html b/static/views/splash.html index a82ff33..94ef13e 100644 --- a/static/views/splash.html +++ b/static/views/splash.html @@ -22,8 +22,8 @@ } img { - width: 6em; - height: 6em; + width: 128px; + height: 128px; image-rendering: pixelated; } From fdf454722fd8d268f0cbf0a974571c4321968168 Mon Sep 17 00:00:00 2001 From: Lewis Crichton Date: Mon, 4 Dec 2023 13:17:46 +0000 Subject: [PATCH 02/12] readme: add flathub badge (#269) --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c776011..9c941dd 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,8 @@ Download and run Vesktop-VERSION.dmg from [releases](https://github.com/Vencord/ ### Linux +[![](https://dl.flathub.org/assets/badges/flathub-badge-en.svg)](https://flathub.org/apps/dev.vencord.Vesktop) + #### Arch based Install [vencord-desktop-git](https://aur.archlinux.org/packages/vencord-desktop-git) from the AUR using your favourite AUR helper, for example [yay](https://github.com/Jguer/yay) @@ -39,7 +41,7 @@ Download Vesktop-VERSION.rpm from [releases](https://github.com/Vencord/Vesktop/ Either download Vesktop-VERSION.AppImage and just run it directly or grab Vesktop-VERSION.tar.gz, extract it somewhere and run `vencorddesktop`. -A flatpak is planned, if you want packages for other repos, feel free to create them and they can be linked as unofficial here +If other packages are created, feel free to open an issue and we'll link them here. ## Building From 0f804f9f6e6e9f19ae152f183fcb037499a183b0 Mon Sep 17 00:00:00 2001 From: Lewis Crichton Date: Mon, 4 Dec 2023 21:05:09 +0000 Subject: [PATCH 03/12] feat: autogenerated release notes --- meta/dev.vencord.Vesktop.metainfo.xml | 169 ++++++++++++++++++++++++++ package.json | 3 +- pnpm-lock.yaml | 15 +++ scripts/utils/updateMeta.mts | 93 ++++++++++++++ 4 files changed, 279 insertions(+), 1 deletion(-) create mode 100644 meta/dev.vencord.Vesktop.metainfo.xml create mode 100644 scripts/utils/updateMeta.mts diff --git a/meta/dev.vencord.Vesktop.metainfo.xml b/meta/dev.vencord.Vesktop.metainfo.xml new file mode 100644 index 0000000..cb04ef7 --- /dev/null +++ b/meta/dev.vencord.Vesktop.metainfo.xml @@ -0,0 +1,169 @@ + + + + dev.vencord.Vesktop + Vesktop + Snappier Discord app with Vencord + Vencord Contributors + dev.vencord.Vesktop.desktop + CC0-1.0 + GPL-3.0 + Vencord + +

Vesktop is a cross platform desktop app aiming to give you a snappier Discord experience with Vencord pre-installed.

+

Vesktop comes bundled with Venmic, a purpose-built library to provide functioning audio screenshare.

+
+ + + Vencord settings page and about window open + https://vencord.dev/assets/screenshots/vesktop-1-appstream.png + + + A dialog showing screenshare options + https://vencord.dev/assets/screenshots/vesktop-2-appstream.png + + + A screenshot of a Discord server + https://vencord.dev/assets/screenshots/vesktop-3-appstream.png + + + + + + https://github.com/Vencord/Vesktop/releases/tag/v0.4.4 + +

What's Changed

+
    +
  • improve venmic system compatibility by @Curve in https://github.com/Vencord/Vesktop/pull/230
  • +
  • Update steamdeck controller layout by @AAGaming00 in https://github.com/Vencord/Vesktop/pull/236
  • +
  • feat: Add option to disable smooth scrolling by @ZirixCZ in https://github.com/Vencord/Vesktop/pull/255
  • +
  • unblur shiggy in splash screen by @viacoro in https://github.com/Vencord/Vesktop/pull/221
  • +
  • update electron & arrpc @D3SOX in https://github.com/Vencord/Vesktop/pull/258
  • +
+
+
+ + + https://github.com/Vencord/Vesktop/releases/tag/v0.4.3 + + + https://github.com/Vencord/Vesktop/releases/tag/v0.4.2 + + + https://github.com/Vencord/Vesktop/releases/tag/v0.4.1 + + + https://github.com/Vencord/Vesktop/releases/tag/v0.4.0 + + + https://github.com/Vencord/Vesktop/releases/tag/v0.3.3 + + + https://github.com/Vencord/Vesktop/releases/tag/v0.3.2 + + + https://github.com/Vencord/Vesktop/releases/tag/v0.3.1 + + + https://github.com/Vencord/Vesktop/releases/tag/v0.3.0 + + + https://github.com/Vencord/Vesktop/releases/tag/v0.2.9 + + + https://github.com/Vencord/Vesktop/releases/tag/v0.2.8 + + + https://github.com/Vencord/Vesktop/releases/tag/v0.2.7 + + + https://github.com/Vencord/Vesktop/releases/tag/v0.2.6 + + + https://github.com/Vencord/Vesktop/releases/tag/v0.2.5 + + + https://github.com/Vencord/Vesktop/releases/tag/v0.2.4 + + + https://github.com/Vencord/Vesktop/releases/tag/v0.2.3 + + + https://github.com/Vencord/Vesktop/releases/tag/v0.2.2 + + + https://github.com/Vencord/Vesktop/releases/tag/v0.2.1 + + + https://github.com/Vencord/Vesktop/releases/tag/v0.2.0 + + + https://github.com/Vencord/Vesktop/releases/tag/v0.1.9 + + + https://github.com/Vencord/Vesktop/releases/tag/v0.1.8 + + + https://github.com/Vencord/Vesktop/releases/tag/v0.1.7 + + + https://github.com/Vencord/Vesktop/releases/tag/v0.1.6 + + + https://github.com/Vencord/Vesktop/releases/tag/v0.1.5 + + + https://github.com/Vencord/Vesktop/releases/tag/v0.1.4 + + + https://github.com/Vencord/Vesktop/releases/tag/v0.1.3 + + + https://github.com/Vencord/Vesktop/releases/tag/v0.1.2 + + + https://github.com/Vencord/Vesktop/releases/tag/v0.1.1 + + + https://github.com/Vencord/Vesktop/releases/tag/v0.1.0 + +
+ https://vencord.dev/ + https://github.com/Vencord/Vesktop/issues + https://vencord.dev/faq/ + https://github.com/Vencord/Vesktop/issues + https://github.com/sponsors/Vendicated + https://github.com/Vencord/Vesktop + + InstantMessaging + AudioVideo + + + pointing + keyboard + 420 + always + + + voice + 760 + 1200 + always + + + always + + + intense + intense + intense + intense + + + Discord + Vencord + Vesktop + Privacy + Mod + +
\ No newline at end of file diff --git a/package.json b/package.json index 2fe0c75..d5cbc9f 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,8 @@ "source-map-support": "^0.5.21", "tsx": "^3.13.0", "type-fest": "^4.4.0", - "typescript": "^5.2.2" + "typescript": "^5.2.2", + "xml-formatter": "^3.6.0" }, "packageManager": "pnpm@8.6.11", "engines": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b3d4db8..0983412 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -84,6 +84,9 @@ devDependencies: typescript: specifier: ^5.2.2 version: 5.2.2 + xml-formatter: + specifier: ^3.6.0 + version: 3.6.0 packages: @@ -4618,6 +4621,18 @@ packages: optional: true dev: false + /xml-formatter@3.6.0: + resolution: {integrity: sha512-Wic80ENNLF/5mLcc82hVLmoOWQlLDJtVv+N1/hkP4hBuVXPLKrXo92/4V23QYPKfUxvCU6Y2AcdpHCIA/xexFw==} + engines: {node: '>= 14'} + dependencies: + xml-parser-xo: 4.1.1 + dev: true + + /xml-parser-xo@4.1.1: + resolution: {integrity: sha512-Ggf2y90+Y6e9IK5hoPuembVHJ03PhDSdhldEmgzbihzu9k0XBo0sfcFxaSi4W1PlUSSI1ok+MJ0JCXUn+U4Ilw==} + engines: {node: '>= 14'} + dev: true + /xmlbuilder@15.1.1: resolution: {integrity: sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==} engines: {node: '>=8.0'} diff --git a/scripts/utils/updateMeta.mts b/scripts/utils/updateMeta.mts new file mode 100644 index 0000000..1d87482 --- /dev/null +++ b/scripts/utils/updateMeta.mts @@ -0,0 +1,93 @@ +/* + * SPDX-License-Identifier: GPL-3.0 + * Vesktop, a desktop app aiming to give you a snappier Discord Experience + * Copyright (c) 2023 Vendicated and Vencord contributors + */ + +import { promises as fs } from "node:fs"; + +import { DOMParser, XMLSerializer } from "@xmldom/xmldom"; +import xmlFormat from "xml-formatter"; + +function generateDescription(description: string, descriptionNode: Element) { + const lines = description.replace(/\r/g, "").split("\n"); + let currentList: Element | null = null; + + for (let i = 0; i < lines.length; i++) { + const line = lines[i]; + + if (line.includes("New Contributors")) { + // we're done, don't parse any more since the new contributors section is the last one + break; + } + + if (line.startsWith("## ")) { + const pNode = descriptionNode.ownerDocument.createElement("p"); + pNode.textContent = line.slice(3); + descriptionNode.appendChild(pNode); + } else if (line.startsWith("* ")) { + const liNode = descriptionNode.ownerDocument.createElement("li"); + liNode.textContent = line.slice(2); + + if (!currentList) { + currentList = descriptionNode.ownerDocument.createElement("ul"); + } + + currentList.appendChild(liNode); + } + + if (currentList && !lines[i + 1].startsWith("* ")) { + descriptionNode.appendChild(currentList); + currentList = null; + } + } +} + +const latestReleaseInformation = await fetch("https://api.github.com/repos/Vencord/Vesktop/releases/latest", { + headers: { + Accept: "application/vnd.github+json", + "X-Github-Api-Version": "2022-11-28" + } +}).then(res => res.json()); + +const metaInfo = await fs.readFile("./meta/dev.vencord.Vesktop.metainfo.xml", "utf-8"); + +const parser = new DOMParser().parseFromString(metaInfo, "text/xml"); + +const releaseList = parser.getElementsByTagName("releases")[0]; + +for (let i = 0; i < releaseList.childNodes.length; i++) { + const release = releaseList.childNodes[i] as Element; + + if (release.nodeType === 1 && release.getAttribute("version") === latestReleaseInformation.name) { + console.log("Latest release already added, nothing to be done"); + process.exit(0); + } +} + +const release = parser.createElement("release"); +release.setAttribute("version", latestReleaseInformation.name); +release.setAttribute("date", latestReleaseInformation.published_at.split("T")[0]); +release.setAttribute("type", "stable"); + +const releaseUrl = parser.createElement("url"); +releaseUrl.textContent = latestReleaseInformation.html_url; + +release.appendChild(releaseUrl); + +const description = parser.createElement("description"); + +// we're not using a full markdown parser here since we don't have a lot of formatting options to begin with +generateDescription(latestReleaseInformation.body, description); + +release.appendChild(description); + +releaseList.insertBefore(release, releaseList.childNodes[2]); + +const output = xmlFormat(new XMLSerializer().serializeToString(parser), { + lineSeparator: "\n", + collapseContent: true, + indentation: " " +}); + +await fs.writeFile("./meta/dev.vencord.Vesktop.metainfo.xml", output, "utf-8"); From 5dc57417719eab4c9b8eb419007112c4fcb90484 Mon Sep 17 00:00:00 2001 From: Lewis Crichton Date: Mon, 4 Dec 2023 21:16:43 +0000 Subject: [PATCH 04/12] ci: add metainfo auto updating --- .github/workflows/meta.yml | 36 +++++++++++++++++++++++++++ meta/dev.vencord.Vesktop.metainfo.xml | 13 ---------- package.json | 3 ++- 3 files changed, 38 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/meta.yml diff --git a/.github/workflows/meta.yml b/.github/workflows/meta.yml new file mode 100644 index 0000000..3ee7562 --- /dev/null +++ b/.github/workflows/meta.yml @@ -0,0 +1,36 @@ +name: Update metainfo on release + +on: + release: + types: + - published + workflow_dispatch: + +jobs: + update: + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 # Install pnpm using packageManager key in package.json + + - name: Use Node.js 18 + uses: actions/setup-node@v3 + with: + node-version: 18 + + - name: Install dependencies + run: pnpm i + + - name: Update metainfo + run: pnpm updateMeta + + - name: Commit and push changes + run: | + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git add meta/dev.vencord.Vesktop.metainfo.xml + git commit -m "Insert release changes for ${{ github.event.release.tag_name }} [skip ci]" + git push \ No newline at end of file diff --git a/meta/dev.vencord.Vesktop.metainfo.xml b/meta/dev.vencord.Vesktop.metainfo.xml index cb04ef7..f725f58 100644 --- a/meta/dev.vencord.Vesktop.metainfo.xml +++ b/meta/dev.vencord.Vesktop.metainfo.xml @@ -29,19 +29,6 @@ - - https://github.com/Vencord/Vesktop/releases/tag/v0.4.4 - -

What's Changed

-
    -
  • improve venmic system compatibility by @Curve in https://github.com/Vencord/Vesktop/pull/230
  • -
  • Update steamdeck controller layout by @AAGaming00 in https://github.com/Vencord/Vesktop/pull/236
  • -
  • feat: Add option to disable smooth scrolling by @ZirixCZ in https://github.com/Vencord/Vesktop/pull/255
  • -
  • unblur shiggy in splash screen by @viacoro in https://github.com/Vencord/Vesktop/pull/221
  • -
  • update electron & arrpc @D3SOX in https://github.com/Vencord/Vesktop/pull/258
  • -
-
-
https://github.com/Vencord/Vesktop/releases/tag/v0.4.3 diff --git a/package.json b/package.json index 68fadf6..fb23c98 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,8 @@ "start:watch": "pnpm build:dev && tsx scripts/startWatch.mts", "test": "pnpm lint && pnpm testTypes", "testTypes": "tsc --noEmit", - "watch": "pnpm build --watch" + "watch": "pnpm build --watch", + "updateMeta": "tsx scripts/utils/updateMeta.mts" }, "dependencies": { "arrpc": "github:OpenAsar/arrpc#3e22fd776273afaa4a80c51deb86077ffdd4d2ae" From de2b4b7dd8cac887da8d3ec88cba36e3bced3a06 Mon Sep 17 00:00:00 2001 From: Lewis Crichton Date: Mon, 4 Dec 2023 21:28:34 +0000 Subject: [PATCH 05/12] ci: create a PR to merge in metainfo automatically [skip ci] --- .github/workflows/meta.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/meta.yml b/.github/workflows/meta.yml index 3ee7562..866785c 100644 --- a/.github/workflows/meta.yml +++ b/.github/workflows/meta.yml @@ -9,8 +9,6 @@ on: jobs: update: runs-on: ubuntu-latest - permissions: - contents: write steps: - uses: actions/checkout@v3 @@ -27,10 +25,14 @@ jobs: - name: Update metainfo run: pnpm updateMeta - - name: Commit and push changes + - name: Commit and merge in changes run: | git config user.name "github-actions[bot]" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git checkout -b ci/meta-update git add meta/dev.vencord.Vesktop.metainfo.xml git commit -m "Insert release changes for ${{ github.event.release.tag_name }} [skip ci]" - git push \ No newline at end of file + gh pr create -B main -H ci/meta-update -t "Update metainfo for release ${{ github.event.release.tag_name }}" + gh pr merge --admin -d -r + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 017c2c847f3c396742c0a9de270648ac9f4fb335 Mon Sep 17 00:00:00 2001 From: Lewis Crichton Date: Mon, 4 Dec 2023 21:30:06 +0000 Subject: [PATCH 06/12] ci: fix command [skip ci] --- .github/workflows/meta.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/meta.yml b/.github/workflows/meta.yml index 866785c..bc59d3d 100644 --- a/.github/workflows/meta.yml +++ b/.github/workflows/meta.yml @@ -32,7 +32,7 @@ jobs: git checkout -b ci/meta-update git add meta/dev.vencord.Vesktop.metainfo.xml git commit -m "Insert release changes for ${{ github.event.release.tag_name }} [skip ci]" - gh pr create -B main -H ci/meta-update -t "Update metainfo for release ${{ github.event.release.tag_name }}" + gh pr create -B main -H ci/meta-update -t "Metainfo for ${{ github.event.release.tag_name }}" -b "This PR updates the metainfo for release ${{ github.event.release.tag_name }}." gh pr merge --admin -d -r env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 35d2dd6505b89b3c72e22a941c6f052d2d7b2a21 Mon Sep 17 00:00:00 2001 From: Lewis Crichton Date: Mon, 4 Dec 2023 21:33:30 +0000 Subject: [PATCH 07/12] ci: is very hard to get right [skip ci] --- .github/workflows/meta.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/meta.yml b/.github/workflows/meta.yml index bc59d3d..8aa834d 100644 --- a/.github/workflows/meta.yml +++ b/.github/workflows/meta.yml @@ -32,6 +32,7 @@ jobs: git checkout -b ci/meta-update git add meta/dev.vencord.Vesktop.metainfo.xml git commit -m "Insert release changes for ${{ github.event.release.tag_name }} [skip ci]" + git push origin ci/meta-update gh pr create -B main -H ci/meta-update -t "Metainfo for ${{ github.event.release.tag_name }}" -b "This PR updates the metainfo for release ${{ github.event.release.tag_name }}." gh pr merge --admin -d -r env: From 378a1f7464cc5eefffaebca35ada776e8c25df44 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 4 Dec 2023 21:34:01 +0000 Subject: [PATCH 08/12] Insert release changes for [skip ci] --- meta/dev.vencord.Vesktop.metainfo.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/meta/dev.vencord.Vesktop.metainfo.xml b/meta/dev.vencord.Vesktop.metainfo.xml index f725f58..cb04ef7 100644 --- a/meta/dev.vencord.Vesktop.metainfo.xml +++ b/meta/dev.vencord.Vesktop.metainfo.xml @@ -29,6 +29,19 @@ + + https://github.com/Vencord/Vesktop/releases/tag/v0.4.4 + +

What's Changed

+
    +
  • improve venmic system compatibility by @Curve in https://github.com/Vencord/Vesktop/pull/230
  • +
  • Update steamdeck controller layout by @AAGaming00 in https://github.com/Vencord/Vesktop/pull/236
  • +
  • feat: Add option to disable smooth scrolling by @ZirixCZ in https://github.com/Vencord/Vesktop/pull/255
  • +
  • unblur shiggy in splash screen by @viacoro in https://github.com/Vencord/Vesktop/pull/221
  • +
  • update electron & arrpc @D3SOX in https://github.com/Vencord/Vesktop/pull/258
  • +
+
+
https://github.com/Vencord/Vesktop/releases/tag/v0.4.3 From 49cd558fa1fb912ecf11b309f54c3f6a02990822 Mon Sep 17 00:00:00 2001 From: Lewis Crichton Date: Mon, 4 Dec 2023 21:41:01 +0000 Subject: [PATCH 09/12] ci: let it run CI and do an automerge [skip ci] --- .github/workflows/meta.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/meta.yml b/.github/workflows/meta.yml index 8aa834d..aea1201 100644 --- a/.github/workflows/meta.yml +++ b/.github/workflows/meta.yml @@ -31,9 +31,9 @@ jobs: git config user.email "41898282+github-actions[bot]@users.noreply.github.com" git checkout -b ci/meta-update git add meta/dev.vencord.Vesktop.metainfo.xml - git commit -m "Insert release changes for ${{ github.event.release.tag_name }} [skip ci]" + git commit -m "Insert release changes for ${{ github.event.release.tag_name }}" git push origin ci/meta-update gh pr create -B main -H ci/meta-update -t "Metainfo for ${{ github.event.release.tag_name }}" -b "This PR updates the metainfo for release ${{ github.event.release.tag_name }}." - gh pr merge --admin -d -r + gh pr merge --auto -d -r env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From e02acda6fa840503e3f00d7ff37c57865c16631d Mon Sep 17 00:00:00 2001 From: Lewis Crichton Date: Mon, 4 Dec 2023 22:27:01 +0000 Subject: [PATCH 10/12] ci(updateMeta): fix invalid appstream gen --- .vscode/settings.json | 50 +++++++++++++-------------- meta/dev.vencord.Vesktop.metainfo.xml | 15 -------- scripts/utils/updateMeta.mts | 4 +-- 3 files changed, 27 insertions(+), 42 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index e729f08..1a277b4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,25 +1,25 @@ -{ - "editor.formatOnSave": true, - "editor.codeActionsOnSave": { - "source.fixAll.eslint": true - }, - "[typescript]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" - }, - "[javascript]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" - }, - "[typescriptreact]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" - }, - "[javascriptreact]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" - }, - "[json]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" - }, - "[jsonc]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" - }, - "cSpell.words": ["Vesktop"] -} +{ + "editor.formatOnSave": true, + "editor.codeActionsOnSave": { + "source.fixAll.eslint": "explicit" + }, + "[typescript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[javascript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[typescriptreact]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[javascriptreact]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[json]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[jsonc]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "cSpell.words": ["Vesktop"] +} diff --git a/meta/dev.vencord.Vesktop.metainfo.xml b/meta/dev.vencord.Vesktop.metainfo.xml index cb04ef7..44d1b54 100644 --- a/meta/dev.vencord.Vesktop.metainfo.xml +++ b/meta/dev.vencord.Vesktop.metainfo.xml @@ -28,21 +28,6 @@ - - - https://github.com/Vencord/Vesktop/releases/tag/v0.4.4 - -

What's Changed

-
    -
  • improve venmic system compatibility by @Curve in https://github.com/Vencord/Vesktop/pull/230
  • -
  • Update steamdeck controller layout by @AAGaming00 in https://github.com/Vencord/Vesktop/pull/236
  • -
  • feat: Add option to disable smooth scrolling by @ZirixCZ in https://github.com/Vencord/Vesktop/pull/255
  • -
  • unblur shiggy in splash screen by @viacoro in https://github.com/Vencord/Vesktop/pull/221
  • -
  • update electron & arrpc @D3SOX in https://github.com/Vencord/Vesktop/pull/258
  • -
-
-
- https://github.com/Vencord/Vesktop/releases/tag/v0.4.3 diff --git a/scripts/utils/updateMeta.mts b/scripts/utils/updateMeta.mts index 1d87482..44327b7 100644 --- a/scripts/utils/updateMeta.mts +++ b/scripts/utils/updateMeta.mts @@ -27,7 +27,7 @@ function generateDescription(description: string, descriptionNode: Element) { descriptionNode.appendChild(pNode); } else if (line.startsWith("* ")) { const liNode = descriptionNode.ownerDocument.createElement("li"); - liNode.textContent = line.slice(2); + liNode.textContent = line.slice(2).split("in https://github.com")[0].trim(); // don't include links to github if (!currentList) { currentList = descriptionNode.ownerDocument.createElement("ul"); @@ -82,7 +82,7 @@ generateDescription(latestReleaseInformation.body, description); release.appendChild(description); -releaseList.insertBefore(release, releaseList.childNodes[2]); +releaseList.insertBefore(release, releaseList.childNodes[0]); const output = xmlFormat(new XMLSerializer().serializeToString(parser), { lineSeparator: "\n", From fc33050496ccae3f96774fbe4667cf903b8a9c37 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 4 Dec 2023 22:27:51 +0000 Subject: [PATCH 11/12] Insert release changes for --- meta/dev.vencord.Vesktop.metainfo.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/meta/dev.vencord.Vesktop.metainfo.xml b/meta/dev.vencord.Vesktop.metainfo.xml index 44d1b54..d897226 100644 --- a/meta/dev.vencord.Vesktop.metainfo.xml +++ b/meta/dev.vencord.Vesktop.metainfo.xml @@ -28,6 +28,19 @@ + + https://github.com/Vencord/Vesktop/releases/tag/v0.4.4 + +

What's Changed

+
    +
  • improve venmic system compatibility by @Curve
  • +
  • Update steamdeck controller layout by @AAGaming00
  • +
  • feat: Add option to disable smooth scrolling by @ZirixCZ
  • +
  • unblur shiggy in splash screen by @viacoro
  • +
  • update electron & arrpc @D3SOX
  • +
+
+
https://github.com/Vencord/Vesktop/releases/tag/v0.4.3 From 623fa5d709f32906add5a50a8ee154c51b09ea3a Mon Sep 17 00:00:00 2001 From: Lewis Crichton Date: Mon, 4 Dec 2023 22:35:29 +0000 Subject: [PATCH 12/12] ci: notify us when PR is open [skip ci] annoyingly, github actions can't skip pull request checks and it cannot commit to the main branch due to protection, so we have to MANUALLY accept the changes in. on the bright side, we can check what it's generated in case it's wrong. --- .github/workflows/meta.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/meta.yml b/.github/workflows/meta.yml index aea1201..bc2af86 100644 --- a/.github/workflows/meta.yml +++ b/.github/workflows/meta.yml @@ -33,7 +33,6 @@ jobs: git add meta/dev.vencord.Vesktop.metainfo.xml git commit -m "Insert release changes for ${{ github.event.release.tag_name }}" git push origin ci/meta-update - gh pr create -B main -H ci/meta-update -t "Metainfo for ${{ github.event.release.tag_name }}" -b "This PR updates the metainfo for release ${{ github.event.release.tag_name }}." - gh pr merge --auto -d -r + gh pr create -B main -H ci/meta-update -t "Metainfo for ${{ github.event.release.tag_name }}" -b "This PR updates the metainfo for release ${{ github.event.release.tag_name }}. @lewisakura @Vendicated" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file