From d134508ae8b313f5e8d19349d40e0bc9c80b7680 Mon Sep 17 00:00:00 2001 From: Lin Yinfeng Date: Fri, 19 Apr 2024 17:40:38 +0800 Subject: [PATCH] wemeet: fix update script on github action --- pkgs/wemeet/update.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/wemeet/update.nix b/pkgs/wemeet/update.nix index e78293b2..b3d7c898 100644 --- a/pkgs/wemeet/update.nix +++ b/pkgs/wemeet/update.nix @@ -1,16 +1,20 @@ { writeShellApplication, + python3, curl, jq, urlencode, + moreutils, }: writeShellApplication { name = "update-wemeet"; runtimeInputs = [ + python3 curl jq urlencode + moreutils ]; text = '' while [[ $# -gt 0 ]]; do @@ -30,12 +34,17 @@ writeShellApplication { # query.json is taken from https://meeting.tencent.com/download using browser debugger query_param=$(jq --raw-output @uri ./query.json) - nonce_param=$(set +o pipefail; tr -dc 'a-zA-Z' raw_source.json + curl --verbose "$query_url" | jq '.' >raw_source.json if [[ -n "$commit_message_file" ]]; then if [[ -f "$commit_message_file" ]]; then