Before running or installing any package verify its checksum:
sha256sum <package file>
Set execution permissions:
chmod +x ./CodeCompass.AppImage
Run AppImage:
./CodeCompass.AppImage
AppImage Usage:
./CodeCompass.AppImage parser <parser arguments>
./CodeCompass.AppImage webserver <webserver arguments>
./CodeCompass.AppImage logger <logger arguments>
To build AppImages, we need to use appimagetool.
- Download
appimagetool-x86_64.AppImagefrom https://github.com/AppImage/AppImageKit/releases - Place
appimagetool-x86_64.AppImageinto a directory which is added to thePATHenvironmental variable. - Set execution permissions:
chmod +x ./appimagetool-x86_64.AppImage - Verify
appimagetool-x86_64.AppImageis runnable from any directory:which appimagetool-x86_64.AppImage
First, we need to build CodeCompass.
Create a build folder:
mkdir build
cd build
To enable packaging, run CMake with -DENABLE_PACKAGING=1:
cmake .. \
-DCMAKE_INSTALL_PREFIX=<CodeCompass_install_dir> \
-DDATABASE=<database_type> \
-DCMAKE_BUILD_TYPE=<build_type> \
-DLLVM_DIR=/usr/lib/llvm-11/cmake \
-DClang_DIR=/usr/lib/cmake/clang-11 \
-DENABLE_PACKAGING=1
Build and install CodeCompass:
make -j $(nproc)
make install -j $(nproc)
Build AppImage:
make appimage
The built package will be located in build/packaging/.
The built package can be customized by using CMake variables.
| Variable | Meaning |
|---|---|
PACKAGE_VERSION |
Version of the package for the manifest file. If not specified, version 1.0 will be used. |