Unverified Commit 1bcd79e6 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

antigravity: disable update checks (#463388)

parents fb8e0ea2 59fd60b5
Loading
Loading
Loading
Loading
+15 −3
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
  callPackage,
  vscode-generic,
  fetchurl,
  jq,
  buildFHSEnv,
  writeShellScript,
  coreutils,
@@ -21,7 +22,7 @@ let
  version = "1.11.3";
  vscodeVersion = "1.104.0";
in
callPackage vscode-generic {
(callPackage vscode-generic {
  inherit
    commandLineArgs
    useVSCodeRipgrep
@@ -32,7 +33,7 @@ callPackage vscode-generic {
  pname = "antigravity";

  executableName = "antigravity";
  longName = "Google Antigravity";
  longName = "Antigravity";
  shortName = "Antigravity";
  libraryName = "antigravity";
  iconName = "antigravity";
@@ -90,4 +91,15 @@ callPackage vscode-generic {
      Zaczero
    ];
  };
}
}).overrideAttrs
  (oldAttrs: {
    # Disable update checks
    nativeBuildInputs = (oldAttrs.nativeBuildInputs or [ ]) ++ [ jq ];
    postPatch = (oldAttrs.postPatch or "") + ''
      productJson="${
        if stdenv.hostPlatform.isDarwin then "Contents/Resources" else "resources"
      }/app/product.json"
      data=$(jq 'del(.updateUrl)' "$productJson")
      echo "$data" > "$productJson"
    '';
  })