From 8f85c522eac3378afda6fdcbade89f7001d9d915 Mon Sep 17 00:00:00 2001 From: Alexandru Popenta Date: Tue, 5 Dec 2023 12:18:27 +0200 Subject: [PATCH] add update command on windows --- mxpy-up.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mxpy-up.py b/mxpy-up.py index 891b71f4..556b2402 100644 --- a/mxpy-up.py +++ b/mxpy-up.py @@ -222,12 +222,12 @@ def get_mxpy_shortcut_content(): def get_mxpy_update_shortcut_content(): - # operating_system = get_operating_system() + operating_system = get_operating_system() - # if operating_system == "windows": - # return f"""#!/bin/sh - # . "{venv_path / 'Scripts' / 'activate'}" && python3 -m multiversx_sdk_cli.cli "$@" && deactivate - # """ + if operating_system == "windows": + return f"""#!/bin/sh +curl.exe --output mxpy-up.py --url https://raw.githubusercontent.com/multiversx/mx-sdk-py-cli/main/mxpy-up.py && python mxpy-up.py %* +""" return f"""#!/bin/sh wget -O ~/mxpy-up.py https://raw.githubusercontent.com/multiversx/mx-sdk-py-cli/main/mxpy-up.py && python3 ~/mxpy-up.py "$@"