Unverified Commit 456aea7d authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

ytmdesktop: 2.0.6 -> 2.0.7 (#383177)

parents bbcc8463 d68c3095
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@
}:
stdenv.mkDerivation (finalAttrs: {
  pname = "ytmdesktop";
  version = "2.0.6";
  version = "2.0.7";

  desktopItems = [
    (makeDesktopItem {
@@ -40,7 +40,7 @@ stdenv.mkDerivation (finalAttrs: {

  src = fetchurl {
    url = "https://github.com/ytmdesktop/ytmdesktop/releases/download/v${finalAttrs.version}/youtube-music-desktop-app_${finalAttrs.version}_amd64.deb";
    hash = "sha256-uLTnVA9ooGlbtmUGoYtrT9IlOhTAJpEXMr1GSs3ae/8=";
    hash = "sha256-bdP6vIAUoFYLvEvxtG69tBuL94EQQVwNyeuQibRMMbk=";
  };

  unpackPhase = ''
@@ -58,7 +58,7 @@ stdenv.mkDerivation (finalAttrs: {
    asar extract resources/app.asar patched-asar

    # workaround for https://github.com/electron/electron/issues/31121
    substituteInPlace patched-asar/.webpack/main/index.js \
    substituteInPlace patched-asar/.vite/main/index.js \
      --replace-fail "process.resourcesPath" "'$out/lib/resources'"

    asar pack patched-asar resources/app.asar