Unverified Commit 93723a35 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

cherry-studio: 1.3.2 -> 1.3.4 (#407401)

parents 0914c5a7 3a6d283e
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -18,13 +18,13 @@ let
in
stdenv.mkDerivation (finalAttrs: {
  pname = "cherry-studio";
  version = "1.3.2";
  version = "1.3.4";

  src = fetchFromGitHub {
    owner = "CherryHQ";
    repo = "cherry-studio";
    tag = "v${finalAttrs.version}";
    hash = "sha256-Tgd8MvxsiCDp2pdtz2MeCnTGY4Butw9V/UoTw0XEaIg=";
    hash = "sha256-xCS8ZomIAVEnQ2SJRay/ii7xhPMO+ctc8C14Xrje8kI=";
  };

  postPatch = ''
@@ -41,7 +41,7 @@ stdenv.mkDerivation (finalAttrs: {

  offlineCache = yarn-berry.fetchYarnBerryDeps {
    inherit (finalAttrs) src missingHashes;
    hash = "sha256-WUsG8mqozphU2YIT73KqMNP62TBiay3EiGrMBgd2QJw=";
    hash = "sha256-cStjxlmOnoDfrt6z5jvpkHfIKyfZ9UFWbbZjnJLiTu4=";
  };

  nativeBuildInputs = [
@@ -89,7 +89,12 @@ stdenv.mkDerivation (finalAttrs: {
    runHook preInstall

    mkdir -p $out/opt/cherry-studio
    cp -r dist/linux-unpacked/{resources,LICENSE*} $out/opt/cherry-studio
    ${
      if stdenv.hostPlatform.isAarch64 then
        "cp -r dist/linux-arm64-unpacked/{resources,LICENSE*} $out/opt/cherry-studio"
      else
        "cp -r dist/linux-unpacked/{resources,LICENSE*} $out/opt/cherry-studio"
    }
    install -Dm644 build/icon.png $out/share/pixmaps/cherry-studio.png
    makeWrapper ${lib.getExe electron} $out/bin/cherry-studio \
      --inherit-argv0 \