Skip to content

Commit 4c9b15d

Browse files
tarebyteCopilot
andcommitted
Switch tmux install to apt-get
The AppImage approach doesn't work in Codespaces: no FUSE for direct execution, and extracting the binary fails on missing shared libs (libncurses). Use apt-get instead — simple, reliable, and sudo is passwordless in Codespaces. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 044b9d4 commit 4c9b15d

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

script/install-codespace-tools

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,8 @@ if command -v tmux >/dev/null 2>&1; then
137137
else
138138
start=$SECONDS
139139
echo " Installing tmux..."
140-
gh release download --clobber --output /tmp/tmux.appimage --repo nelsonenzo/tmux-appimage \
141-
--pattern "tmux.appimage"
142-
chmod +x /tmp/tmux.appimage
143-
cd /tmp && /tmp/tmux.appimage --appimage-extract >/dev/null 2>&1
144-
install /tmp/squashfs-root/usr/bin/tmux "$LOCAL_BIN/tmux"
145-
rm -rf /tmp/tmux.appimage /tmp/squashfs-root
146-
cd - >/dev/null
140+
echo " sudo: installing via apt-get..."
141+
sudo apt-get install -yq tmux >/dev/null 2>&1
147142
echo " ✓ tmux installed ($(tool_version tmux), $((SECONDS - start))s)"
148143
fi
149144

0 commit comments

Comments
 (0)