Skip to content

Commit

Permalink
Fix nvim-macos archive name
Browse files Browse the repository at this point in the history
  • Loading branch information
sakhnik committed Aug 10, 2024
1 parent 80d6073 commit adf4044
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/testenv_darwin.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ def __init__(self, url: str):

subprocess.run('pip install --user six', shell=True, check=True)

urllib.request.urlretrieve(f"{url}/nvim-macos.tar.gz",
urllib.request.urlretrieve(f"{url}/nvim-macos-x86_64.tar.gz",
"nvim-macos.tar.gz")
subprocess.run(
r'''
tar -xf nvim-macos.tar.gz
tar -xf nvim-macos-x86_64.tar.gz
cat >"$HOME/bin/nvim" <<EOF
#!/bin/bash
$(pwd)/nvim-macos/bin/nvim "\$@"
$(pwd)/nvim-macos-x86_64/bin/nvim "\$@"
EOF
chmod +x "$HOME/bin/nvim"
''',
Expand Down
1 change: 1 addition & 0 deletions utils/testenv_linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

class Setup:
def __init__(self, url: str):
print(url)
urllib.request.urlretrieve(f"{url}/nvim.appimage", "nvim.appimage")
os.chmod("nvim.appimage", 0o755)
bindir = os.path.join(os.getenv('HOME'), 'bin')
Expand Down

0 comments on commit adf4044

Please sign in to comment.