From fe5e429f6db7f5705c5673717404ef8bd2abb352 Mon Sep 17 00:00:00 2001 From: TheAssassin Date: Thu, 13 Jul 2023 15:55:26 +0200 Subject: [PATCH] Add $LDAI_RUNTIME_FILE --- README.md | 1 + src/main.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 0b4ab56..6791b90 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,7 @@ linuxdeploy-plugin-appimage can be configured using environment variables. - `LDAI_SIGN_KEY=key_id`: GPG Key ID to use for signing. This environment variable is only used if `SIGN` is set. - `LDAI_VERBOSE=1`: set this variable to any value to enable verbose output - `LDAI_OUTPUT=filename`: change filename of resulting AppImage +- `LDAI_RUNTIME_FILE`: path to custom AppImage runtime appimagetool should use - `LDAI_NO_APPSTREAM=1`: skip checking AppStream metadata for issues - `LDAI_APPIMAGE_COMP=...`: compression algorithm appimagetool/mksquashfs should use (e.g., `xz`, `gzip`), see [appimagetool's repository](https://github.com/AppImage/AppImageKit/) for more information - `LINUXDEPLOY_OUTPUT_APP_NAME`: sets `APPIMAGETOOL_APP_NAME` to configure appimagetool's autogenerated filename prefix diff --git a/src/main.cpp b/src/main.cpp index 3a83f79..8897c36 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -183,6 +183,11 @@ int main(const int argc, const char* const* const argv) { args.push_back(strdup(value.c_str())); }); + doSomethingWithEnvVar({"LDAI_RUNTIME_FILE"}, [&](const auto& value) { + args.push_back(strdup("--runtime-file")); + args.push_back(strdup(value.c_str())); + }); + doSomethingWithEnvVar({"LDAI_NO_APPSTREAM", "NO_APPSTREAM"}, [&](const auto& value) { (void) value; args.push_back(strdup("--no-appstream"));