Skip to content

Commit fe5e429

Browse files
committed
Add $LDAI_RUNTIME_FILE
1 parent 3406f84 commit fe5e429

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ linuxdeploy-plugin-appimage can be configured using environment variables.
3939
- `LDAI_SIGN_KEY=key_id`: GPG Key ID to use for signing. This environment variable is only used if `SIGN` is set.
4040
- `LDAI_VERBOSE=1`: set this variable to any value to enable verbose output
4141
- `LDAI_OUTPUT=filename`: change filename of resulting AppImage
42+
- `LDAI_RUNTIME_FILE`: path to custom AppImage runtime appimagetool should use
4243
- `LDAI_NO_APPSTREAM=1`: skip checking AppStream metadata for issues
4344
- `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
4445
- `LINUXDEPLOY_OUTPUT_APP_NAME`: sets `APPIMAGETOOL_APP_NAME` to configure appimagetool's autogenerated filename prefix

src/main.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,11 @@ int main(const int argc, const char* const* const argv) {
183183
args.push_back(strdup(value.c_str()));
184184
});
185185

186+
doSomethingWithEnvVar({"LDAI_RUNTIME_FILE"}, [&](const auto& value) {
187+
args.push_back(strdup("--runtime-file"));
188+
args.push_back(strdup(value.c_str()));
189+
});
190+
186191
doSomethingWithEnvVar({"LDAI_NO_APPSTREAM", "NO_APPSTREAM"}, [&](const auto& value) {
187192
(void) value;
188193
args.push_back(strdup("--no-appstream"));

0 commit comments

Comments
 (0)