mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
maestro: 1.37.9 -> 1.38.1 (#341887)
This commit is contained in:
commit
42635893da
@ -5,15 +5,16 @@
|
||||
unzip,
|
||||
makeWrapper,
|
||||
jre_headless,
|
||||
writeScript,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "maestro";
|
||||
version = "1.37.9";
|
||||
version = "1.38.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/mobile-dev-inc/maestro/releases/download/cli-${version}/maestro.zip";
|
||||
hash = "sha256-bWZuD2+v6molwW1ef2a3djBnVfYscBjILLGXeeSUmoU=";
|
||||
url = "https://github.com/mobile-dev-inc/maestro/releases/download/cli-${finalAttrs.version}/maestro.zip";
|
||||
hash = "sha256-AogEVg8R73x5Q/LxZamGbFacCqB8JZeERqyf+UPXBx0=";
|
||||
};
|
||||
|
||||
dontUnpack = true;
|
||||
@ -33,12 +34,24 @@ stdenv.mkDerivation rec {
|
||||
wrapProgram $out/bin/maestro --prefix PATH : "${lib.makeBinPath [ jre_headless ]}"
|
||||
'';
|
||||
|
||||
passthru.updateScript = writeScript "update-maestro" ''
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p curl jq common-updater-scripts
|
||||
set -o errexit -o nounset -o pipefail
|
||||
|
||||
NEW_VERSION=$(curl --silent https://api.github.com/repos/mobile-dev-inc/maestro/releases | jq 'first(.[].tag_name | ltrimstr("cli-") | select(contains("dev.") | not))' --raw-output)
|
||||
|
||||
update-source-version "maestro" "$NEW_VERSION" --print-changes
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Mobile UI Automation tool";
|
||||
homepage = "https://maestro.mobile.dev/";
|
||||
license = licenses.asl20;
|
||||
platforms = lib.platforms.all;
|
||||
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
|
||||
changelog = "https://github.com/mobile-dev-inc/maestro/blob/main/CHANGELOG.md";
|
||||
maintainers = with maintainers; [ SubhrajyotiSen ];
|
||||
mainProgram = "maestro";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user