diff --git a/appImage/.gitignore b/appImage/.gitignore new file mode 100644 index 000000000..1b91047ac --- /dev/null +++ b/appImage/.gitignore @@ -0,0 +1 @@ +usr/ diff --git a/appImage/AppRun b/appImage/AppRun new file mode 100755 index 000000000..587563c73 --- /dev/null +++ b/appImage/AppRun @@ -0,0 +1,10 @@ +#!/bin/bash -e + +SELF=$(readlink -f "$0") +HERE=${SELF%/*} +export PATH="${HERE}/usr/bin/:${HERE}/usr/sbin/:${HERE}/usr/games/:${HERE}/bin/:${HERE}/sbin/${PATH:+:$PATH}" +export VERILATOR_ROOT=${HERE}/usr/share/verilator +export VERILATOR_BIN=../../bin/verilator_bin + +EXEC=$(grep -e '^Exec=.*' "${HERE}"/*.desktop | head -n 1 | cut -d "=" -f 2 | cut -d " " -f 1) +exec "${EXEC}" "$@" diff --git a/appImage/verilator.desktop b/appImage/verilator.desktop new file mode 100644 index 000000000..1daed88b2 --- /dev/null +++ b/appImage/verilator.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=Verilator +Exec=verilator +Icon=verilator +Type=Application +Categories=Utility; diff --git a/appImage/verilator.png b/appImage/verilator.png new file mode 100644 index 000000000..ec781dd38 Binary files /dev/null and b/appImage/verilator.png differ diff --git a/build-appImage.sh b/build-appImage.sh new file mode 100755 index 000000000..bc3a7f4b5 --- /dev/null +++ b/build-appImage.sh @@ -0,0 +1,12 @@ +#!/bin/bash -e + +APP_IMAGE_TOOL=${APP_IMAGE_TOOL:-appimagetool-x86_64.AppImage} + +./configure --prefix=${PWD}/appImage/usr --disable-defenv --enable-copy-runtime-files-default LDFLAGS=-static +make -j $(nproc) +make install + +# clean up things that are not used in this setting +rm -r appImage/usr/share/pkgconfig + +$APP_IMAGE_TOOL appImage