Skip to content

Commit 044b9d4

Browse files
tarebyteCopilot
andcommitted
Fix tmux AppImage install for FUSE-less environments
Codespaces doesn't have FUSE, so the AppImage can't run directly. Extract the binary from the AppImage at install time using --appimage-extract and install just the tmux binary to ~/.local/bin. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a7f7794 commit 044b9d4

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

script/install-codespace-tools

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,11 @@ else
139139
echo " Installing tmux..."
140140
gh release download --clobber --output /tmp/tmux.appimage --repo nelsonenzo/tmux-appimage \
141141
--pattern "tmux.appimage"
142-
install /tmp/tmux.appimage "$LOCAL_BIN/tmux"
143-
rm -f /tmp/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
144147
echo " ✓ tmux installed ($(tool_version tmux), $((SECONDS - start))s)"
145148
fi
146149

0 commit comments

Comments
 (0)