Package Details: vesktop-git 1.5.5.r17.g391ad94-1

Git Clone URL: https://aur.archlinux.org/vesktop-git.git (read-only, click to copy)
Package Base: vesktop-git
Description: A standalone Electron-based Discord app with Vencord & improved Linux support
Upstream URL: https://github.com/Vencord/Vesktop
Licenses: GPL-3.0-only
Conflicts: vesktop
Provides: vesktop
Submitter: xiota
Maintainer: xiota (zt64, Covkie)
Last Packager: Covkie
Votes: 8
Popularity: 1.05
First Submitted: 2024-01-23 02:15 (UTC)
Last Updated: 2025-04-01 22:22 (UTC)

Dependencies (8)

Required by (3)

Sources (4)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 Next › Last »

Covkie commented on 2024-09-17 04:23 (UTC)

would epoch=1 not be needed as the version scheme changed completely?

zt64 commented on 2024-09-17 02:44 (UTC)

@xiota Hi, I'm planning to merge vencord-desktop-git into this package so that it will be more clear to users what package to use. If you don't mind transferring over the package to me so I can merge the two. For users who want to use system electron they can install the vesktop-electron-git package

Covkie commented on 2024-08-24 15:46 (UTC)

@xiota this is a packaging issue with packages that build from linux-unpacked. As this package is unofficial/community maintained it doesn't make sense for the icon script to be included upstream. Please include the script here :p

maintuner commented on 2024-08-24 07:58 (UTC)

Why did you fuck up the icons now?

Covkie commented on 2024-08-24 04:07 (UTC)

@xiota the icon patch you made is NOT correct and changes the tray icon too. It also does not include the various sizes of the actual icon.

static/icon.png is the tray icon. (should not be touched!) build/icon.icns is the actual app icon that electron-builder uses to generate the various icon sizes. libicns/icns2png is outdated and does not support the latest .icns features resulting in various sizes not being correctly extracted. The provided patch (modified from the electron-builder dev) utilizes electron-builder to properly generate and extract the icons and place them at their correct paths.

imagemagick, libicns and optipng are entirely unneeded as build deps. Please revert the latest patch and use the one provided as that produces the correct behaviour

Covkie commented on 2024-08-06 05:38 (UTC)

This package wrongly using the Vencord icon was bothering me so here's a patch to use the official Vesktop icon instead of the Vencord one:

diff --git a/PKGBUILD b/PKGBUILD
index 1316d03..a9b801f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@
 _pkgname="vesktop"
 pkgname="$_pkgname-git"
 pkgdesc="Custom Discord desktop app with Vencord preinstalled"
-pkgver=1.5.2.r19.gabd1e8c
+pkgver=1.5.3.r6.ge045341
 pkgrel=1
 url="https://github.com/Vencord/Vesktop"
 license=('GPL-3.0-only')
@@ -50,8 +50,11 @@ conflicts=(
 )

 _pkgsrc="$_pkgname"
-source=("$_pkgsrc"::"git+$url.git")
-sha256sums=('SKIP')
+source=(
+  "$_pkgsrc"::"git+$url.git"
+  "afterPack.js"
+)
+sha256sums=('SKIP' 'SKIP')

 pkgver() {
   cd "$_pkgsrc"
@@ -68,6 +71,8 @@ build() {
     -e '/linux/s&^&"electronDist": "/usr/lib/electron'"${_electron_version:-}"'",\n&' \
     -i "$_pkgsrc/package.json"

+  sed -E '/"beforePack": "scripts\/build\/sandboxFix.js",/a\ \ \ \ \ \ \ \ "afterPack": "'$srcdir'/afterPack.js",' -i "$_pkgsrc/package.json"
+
   cd "$_pkgsrc"
   pnpm install
   pnpm package:dir
@@ -77,7 +82,10 @@ package() {
   install -d "$pkgdir/$_install_path/$_pkgname"
   cp --reflink=auto -r "$_pkgsrc/dist/linux-unpacked/resources/app.asar" "$pkgdir/$_install_path/$_pkgname/"

-  install -Dm644 "$_pkgsrc/static/icon.png" "$pkgdir/usr/share/pixmaps/$_pkgname.png"
+  for _icons in 1024 512 256 128 64 48 32 16; do
+    install -Dm644 "$_pkgsrc/dist/.icon-set/icon_${_icons}.png" "$pkgdir/usr/share/icons/hicolor/${_icons}x${_icons}/apps/$_pkgname.png"
+  done
+
   install -Dm644 "$_pkgsrc/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"

   install -Dm755 /dev/stdin "$pkgdir/usr/bin/$_pkgname" << END
diff --git a/afterPack.js b/afterPack.js
new file mode 100644
index 0000000..5a3342c
--- /dev/null
+++ b/afterPack.js
@@ -0,0 +1,39 @@
+// https://github.com/electron-userland/electron-builder/issues/8309#issuecomment-2240821509
+const { existsSync, renameSync } = require("fs");
+const { join } = require("path");
+
+module.exports = afterPack = async context => {
+    const { packager } = context;
+    const { platformSpecificBuildOptions, config } = packager;
+
+    const sources = [platformSpecificBuildOptions.icon, (config.mac && config.mac.icon) || config.icon].filter(
+        str => !!str
+    );
+
+    // If no explicit sources are defined, fallback to buildResources directory, then default framework icon
+    let fallbackSources = [packager.getDefaultFrameworkIcon()];
+    const buildResources = config.directories && config.directories.buildResources;
+    if (buildResources && existsSync(join(buildResources, "icons"))) {
+        fallbackSources = [buildResources].concat(fallbackSources);
+    }
+
+    await packager.resolveIcon(sources, fallbackSources, "set");
+
+    const filesToRename = [
+        { old: "icon_16x16.png", new: "icon_16.png" },
+        { old: "icon_48x48.png", new: "icon_48.png" }
+    ];
+
+    filesToRename.forEach(file => {
+        const oldPath = join(config.directories.output, ".icon-set", file.old);
+        const newPath = join(config.directories.output, ".icon-set", file.new);
+        if (existsSync(oldPath)) {
+            renameSync(oldPath, newPath);
+        }
+    });
+};

If someone wants to comment on the vesktop package with an adapted patch of this be my guest.

claymorwan commented on 2024-06-20 20:59 (UTC)

Do you plan on updating it ? Vencord's at version 9.4.0 rn