Skip to content

Commit ace1d83

Browse files
authored
Fix appimagetool -g/-u weirdness
CC AppImage/AppImageKit#864
1 parent 43e130c commit ace1d83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ int main(const int argc, const char* const* const argv) {
107107
std::cout << "Embedding update information: " << updateInformation << std::endl;
108108
args.push_back(strdup("-u"));
109109
args.push_back(updateInformation);
110+
} else {
111+
args.push_back(strdup("-g"));
110112
}
111113

112114
if (getenv("SIGN") != nullptr) {
@@ -120,8 +122,6 @@ int main(const int argc, const char* const* const argv) {
120122
if (getenv("OUTPUT") != nullptr) {
121123
args.push_back(strdup(getenv("OUTPUT")));
122124
}
123-
124-
args.push_back(strdup("-g"));
125125

126126
args.push_back(nullptr);
127127

0 commit comments

Comments
 (0)