Skip to content

Instantly share code, notes, and snippets.

@gjedeer
Created July 3, 2019 11:22
Show Gist options
  • Save gjedeer/991eca9ef38ec471ec26b77c3cc13f6f to your computer and use it in GitHub Desktop.
Save gjedeer/991eca9ef38ec471ec26b77c3cc13f6f to your computer and use it in GitHub Desktop.
Build Wireshark appimage in a Ubuntu Disco docker image
sed -e 's/^# deb-src /deb-src /g' -i /etc/apt/sources.list
apt update
apt install git doxygen libappimage-dev fuse wget rsync cmake build-essential checkinstall libcurl4-openssl-dev file vim gnupg libsystemd-dev lemon
apt build-dep wireshark
wget https://1.na.dl.wireshark.org/src/wireshark-3.0.2.tar.xz
tar axf wireshark-3.0.2.tar.xz
sed -e 's/APPIMAGETOOL_EXECUTALBE/APPIMAGETOOL_EXECUTABLE/g' -i wireshark-3.0.2/CMakeLists.txt
mkdir /build
cd /build/
wget https://github.com/AppImage/AppImageKit/releases/download/12/appimagetool-x86_64.AppImage
chmod +x appimagetool-x86_64.AppImage
cp appimagetool-x86_64.AppImage /usr/bin/appimagetool
appimagetool
wget https://github.com/probonopd/linuxdeployqt/releases/download/6/linuxdeployqt-6-x86_64.AppImage
chmod +x linuxdeployqt-6-x86_64.AppImage
cp linuxdeployqt-6-x86_64.AppImage /usr/bin/linuxdeployqt
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib ../wireshark-3.0.2
PATH=/build/run:$PATH
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment