From 0beb74fad0a0accb55799deb211d5ab1e16e620d Mon Sep 17 00:00:00 2001 From: Takase <20792268+takase1121@users.noreply.github.com> Date: Sat, 27 Apr 2024 03:22:17 +0800 Subject: [PATCH 1/5] Allow users to pass --enable/disable-features flag (#527) Previously they would be overwritten by vesktop --- src/main/index.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/main/index.ts b/src/main/index.ts index 325d417..2f8191c 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -27,10 +27,13 @@ process.env.VENCORD_USER_DATA_DIR = DATA_DIR; function init() { const { disableSmoothScroll, hardwareAcceleration } = Settings.store; + const enabledFeatures = app.commandLine.getSwitchValue("enable-features").split(","); + const disabledFeatures = app.commandLine.getSwitchValue("disable-features").split(","); + if (hardwareAcceleration === false) { app.disableHardwareAcceleration(); } else { - app.commandLine.appendSwitch("enable-features", "VaapiVideoDecodeLinuxGL,VaapiVideoEncoder,VaapiVideoDecoder"); + enabledFeatures.push("VaapiVideoDecodeLinuxGL", "VaapiVideoEncoder", "VaapiVideoDecoder"); } if (disableSmoothScroll) { @@ -43,11 +46,16 @@ function init() { // HardwareMediaKeyHandling,MediaSessionService: Prevent Discord from registering as a media service. // // WidgetLayering (Vencord Added): Fix DevTools context menus https://github.com/electron/electron/issues/38790 - app.commandLine.appendSwitch( - "disable-features", - "WinRetrieveSuggestionsOnlyOnDemand,HardwareMediaKeyHandling,MediaSessionService,WidgetLayering" + disabledFeatures.push( + "WinRetrieveSuggestionsOnlyOnDemand", + "HardwareMediaKeyHandling", + "MediaSessionService", + "WidgetLayering" ); + app.commandLine.appendSwitch("enable-features", [...new Set(enabledFeatures)].filter(Boolean).join(",")); + app.commandLine.appendSwitch("disable-features", [...new Set(disabledFeatures)].filter(Boolean).join(",")); + // In the Flatpak on SteamOS the theme is detected as light, but SteamOS only has a dark mode, so we just override it if (isDeckGameMode) nativeTheme.themeSource = "dark"; From 55ca2f309177168dbd02d090a506676efb20c0c4 Mon Sep 17 00:00:00 2001 From: V Date: Fri, 26 Apr 2024 21:36:47 +0200 Subject: [PATCH 2/5] allow triggering release ci manually --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 80de47d..6968b73 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,7 @@ on: push: tags: - v* + workflow_dispatch: jobs: release: From c52abdc1ee7542c6ea193fed4c62295510903d07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=86=20sam?= Date: Fri, 26 Apr 2024 12:38:01 -0700 Subject: [PATCH 3/5] mac: add entitlements needed for camera/microphone access (#533) --- build/entitlements.mac.plist | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 build/entitlements.mac.plist diff --git a/build/entitlements.mac.plist b/build/entitlements.mac.plist new file mode 100644 index 0000000..f644a36 --- /dev/null +++ b/build/entitlements.mac.plist @@ -0,0 +1,21 @@ + + + + com.apple.security.cs.allow-unsigned-executable-memory + + com.apple.security.cs.allow-jit + + com.apple.security.network.client + + com.apple.security.device.audio-input + + com.apple.security.device.camera + + com.apple.security.device.bluetooth + + com.apple.security.cs.allow-dyld-environment-variables + + com.apple.security.cs.disable-library-validation + + + From e9da30e420a45c6b38e99e6b854a707e42e6fd8a Mon Sep 17 00:00:00 2001 From: Vendicated Date: Wed, 1 May 2024 16:45:15 +0200 Subject: [PATCH 4/5] bump to v1.5.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e89f73b..51495b7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vesktop", - "version": "1.5.1", + "version": "1.5.2", "private": true, "description": "", "keywords": [], From cb55cf4b743fd9de9713e825d29b09d267655fbf Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 1 May 2024 16:57:29 +0200 Subject: [PATCH 5/5] add Metainfo for v1.5.2 (#557) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- meta/dev.vencord.Vesktop.metainfo.xml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/meta/dev.vencord.Vesktop.metainfo.xml b/meta/dev.vencord.Vesktop.metainfo.xml index 3539878..889b9fc 100644 --- a/meta/dev.vencord.Vesktop.metainfo.xml +++ b/meta/dev.vencord.Vesktop.metainfo.xml @@ -28,6 +28,20 @@ + + https://github.com/Vencord/Vesktop/releases/tag/v1.5.2 + +

What's Changed

+
    +
  • Fixed scrollbars looking wrong (actually Discord's fault)
  • +
  • Tray: Added left click hide/show feature by @0bCdian
  • +
  • MacOS: Fixed the app not properly requesting microphone permissions by @ssalggnikool
  • +
  • Linux: Various fixed related to audio screenshare by @Curve
  • +
  • Linux: Overhauled & improved screenshare with better framerate by @kaitlynkittyy
  • +
  • Users can now pass --enable/disable-features command line flags by @takase1121
  • +
+
+
https://github.com/Vencord/Vesktop/releases/tag/v1.5.1