diff --git a/.github/workflows/auto-update-windows.yml b/.github/workflows/auto-update-windows.yml deleted file mode 100644 index 04288880..00000000 --- a/.github/workflows/auto-update-windows.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: Auto-Update mxpy (Windows) - -on: - pull_request: - branches: [main, feat/*] - workflow_dispatch: - -env: - BRANCH_NAME: ${{ github.head_ref || github.ref_name }} - -jobs: - install: - runs-on: windows-2019 - - strategy: - matrix: - python-version: [3.11] - - steps: - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Install - shell: bash - run: | - curl.exe --output mxpy-up.py --url https://raw.githubusercontent.com/multiversx/mx-sdk-py-cli/$BRANCH_NAME/mxpy-up.py - python3 mxpy-up.py --exact-version=9.0.0 --not-interactive - - name: Smoke test - shell: bash - run: | - export PATH="~/multiversx-sdk:${PATH}" - mxpy --version - - name: Auto-Update - shell: bash - run: | - export PATH="~/multiversx-sdk:${PATH}" - mxpy-update - mxpy --version diff --git a/mxpy-up.py b/mxpy-up.py index 99e54233..316c3b7e 100644 --- a/mxpy-up.py +++ b/mxpy-up.py @@ -190,10 +190,7 @@ def install_mxpy(exact_version: str, from_branch: str, verbose: bool): st = os.stat(shortcut_path) os.chmod(shortcut_path, st.st_mode | stat.S_IEXEC) - if operating_system == "windows": - update_shortcut_path = sdk_path / "mxpy-update.exe" - else: - update_shortcut_path = sdk_path / "mxpy-update" + update_shortcut_path = sdk_path / "mxpy-update" try: update_shortcut_path.unlink() @@ -225,12 +222,6 @@ def get_mxpy_shortcut_content(operating_system: str): def get_mxpy_update_shortcut_content(operating_system: str): - if operating_system == "windows": - return f"""#!/bin/sh -curl.exe --output mxpy-up.py --url https://raw.githubusercontent.com/multiversx/mx-sdk-py-cli/mxpy-update/mxpy-up.py -python mxpy-up.py --not-interactive -""" - return f"""#!/bin/sh wget -O mxpy-up.py https://raw.githubusercontent.com/multiversx/mx-sdk-py-cli/mxpy-update/mxpy-up.py && python3 mxpy-up.py --not-interactive "$@" """