Skip to content

Commit

Permalink
add update command on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
popenta committed Dec 5, 2023
1 parent 6a6bb9b commit 8f85c52
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mxpy-up.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"
Expand Down

0 comments on commit 8f85c52

Please sign in to comment.