Skip to content

Commit

Permalink
Support new linuxdeploy output env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAssassin committed Jul 7, 2023
1 parent f9b0212 commit 9aafc9c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,12 @@ int main(const int argc, const char* const* const argv) {
});

// $VERSION is already picked up by appimagetool
doSomethingWithEnvVar({"LDAI_VERSION"}, [&](const auto& value) {
doSomethingWithEnvVar({"LINUXDEPLOY_OUTPUT_APP_NAME"}, [&](const auto& value) {
setenv("APPIMAGETOOL_APP_NAME", value.c_str(), true);
});

// $VERSION is already picked up by appimagetool
doSomethingWithEnvVar({"LINUXDEPLOY_OUTPUT_VERSION", "LDAI_VERSION", "VERSION"}, [&](const auto& value) {
setenv("VERSION", value.c_str(), true);
});

Expand Down

0 comments on commit 9aafc9c

Please sign in to comment.