Fix appimagetool -g/-u weirdness

CC https://github.com/AppImage/AppImageKit/issues/864
This commit is contained in:
TheAssassin
2018-10-08 13:56:04 +02:00
committed by GitHub
parent 43e130ccd1
commit ace1d83222
+2 -2
View File
@@ -107,6 +107,8 @@ int main(const int argc, const char* const* const argv) {
std::cout << "Embedding update information: " << updateInformation << std::endl;
args.push_back(strdup("-u"));
args.push_back(updateInformation);
} else {
args.push_back(strdup("-g"));
}
if (getenv("SIGN") != nullptr) {
@@ -120,8 +122,6 @@ int main(const int argc, const char* const* const argv) {
if (getenv("OUTPUT") != nullptr) {
args.push_back(strdup(getenv("OUTPUT")));
}
args.push_back(strdup("-g"));
args.push_back(nullptr);