Skip to content

Commit c5a89e1

Browse files
committed
installer/portable: make it easier to include tmux in custom installers
It is not necessarily obvious that `tmux.exe` is not the only needed file, but the msys-event DLL is needed, too. Let's just hide this option behind the environment variable INCLUDE_TMUX. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent aba8592 commit c5a89e1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

make-file-list.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ then
4141
EXTRA_FILE_EXCLUDES="$EXTRA_FILE_EXCLUDES
4242
/mingw$BITNESS/libexec/git-core/git-update"
4343
fi
44+
if test -n "$INCLUDE_TMUX"
45+
then
46+
UTIL_PACKAGES="$UTIL_PACKAGES tmux libevent"
47+
fi
4448

4549
pacman_list () {
4650
package_list=$(for arg
@@ -248,3 +252,8 @@ mingw$BITNESS/bin/pdftotext.exe
248252
mingw$BITNESS/bin/libstdc++-6.dll
249253
usr/bin/column.exe
250254
EOF
255+
256+
test -z "$INCLUDE_TMUX" || cat <<EOF
257+
usr/bin/tmux.exe
258+
$(ldd /usr/bin/tmux.exe | sed -n 's/.*> \/\(.*msys-event[^ ]*\).*/\1/p')
259+
EOF

0 commit comments

Comments
 (0)