Skip to content

Commit 9aafc9c

Browse files
committed
Support new linuxdeploy output env vars
1 parent f9b0212 commit 9aafc9c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,12 @@ int main(const int argc, const char* const* const argv) {
199199
});
200200

201201
// $VERSION is already picked up by appimagetool
202-
doSomethingWithEnvVar({"LDAI_VERSION"}, [&](const auto& value) {
202+
doSomethingWithEnvVar({"LINUXDEPLOY_OUTPUT_APP_NAME"}, [&](const auto& value) {
203+
setenv("APPIMAGETOOL_APP_NAME", value.c_str(), true);
204+
});
205+
206+
// $VERSION is already picked up by appimagetool
207+
doSomethingWithEnvVar({"LINUXDEPLOY_OUTPUT_VERSION", "LDAI_VERSION", "VERSION"}, [&](const auto& value) {
203208
setenv("VERSION", value.c_str(), true);
204209
});
205210

0 commit comments

Comments
 (0)