mirror of
https://codeberg.org/tenacityteam/tenacity
synced 2025-10-09 18:22:36 +02:00
AppImage: Make VCPKG_LIB_PATH optional
Signed-off-by: Avery King <gperson@disroot.org>
This commit is contained in:
17
BUILDING.md
17
BUILDING.md
@@ -380,13 +380,18 @@ cmake --install build
|
||||
### Linux: Building an AppImage
|
||||
|
||||
You can build an AppImage yourself. This requires that you have previously
|
||||
built Tenacity. Note that you do not need to have installed Tenacity in order
|
||||
to make an AppImage as it is unnecessary.
|
||||
built Tenacity. There is no need to install Tenacity first.
|
||||
|
||||
First, you need to set `VCPKG_LIB_PATH` to the directory vcpkg copied libraries
|
||||
too if you are using vcpkg. If not, set this to an empty string. Next, run
|
||||
`cpack` from the root of your build directory. The AppImage will be in the
|
||||
`package/` directory of the build folder.
|
||||
If you've used vcpkg in your build, you must set `VCPKG_LIB_PATH` to the
|
||||
directory vcpkg copied libraries too. Otherwise, there is no need to set it at
|
||||
all.
|
||||
|
||||
**NOTE**: Ensure that you are correctly setting `VCPKG_LIB_PATH` by ensuring
|
||||
the directory exists and there are libraries in that folder. If the directory
|
||||
doesn't exist, required libraries won't get packaged.
|
||||
|
||||
To build an AppImage, simply run `cpack` from the root of your build directory.
|
||||
The AppImage will be in the `package/` directory of the build folder.
|
||||
|
||||
## Build options
|
||||
|
||||
|
@@ -93,7 +93,11 @@ ln -sf share/icons/hicolor/scalable/apps/tenacity.svg "${appdir}/.DirIcon"
|
||||
|
||||
# HACK: Some wxWidget libraries depend on themselves. Add
|
||||
# them to LD_LIBRARY_PATH so that linuxdeploy can find them.
|
||||
export LD_LIBRARY_PATH="${appdir}/usr/lib/tenacity:${VCPKG_LIB_PATH}:${LD_LIBRARY_PATH-}"
|
||||
export LD_LIBRARY_PATH="${appdir}/usr/lib/tenacity:${LD_LIBRARY_PATH-}"
|
||||
|
||||
if [ -e "${VCPKG_LIB_PATH} "]; then
|
||||
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${VCPKG_LIB_PATH}"
|
||||
fi
|
||||
|
||||
# When running on GitHub actions - libararies are sometimes installed into the DEB_HOST_MULTIARCH
|
||||
# based location
|
||||
|
Reference in New Issue
Block a user