From 2698d10dce78f7361e4ce368325a79be0c8b8ca8 Mon Sep 17 00:00:00 2001 From: Panayotis Katsaloulis Date: Sun, 3 Sep 2017 18:05:48 +0300 Subject: [PATCH] check for i486 i586 i686 --- appimagetool.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/appimagetool.c b/appimagetool.c index c6b0bfbc6..0d57d61bb 100644 --- a/appimagetool.c +++ b/appimagetool.c @@ -264,14 +264,17 @@ void guess_arch(const gchar *archfile, char* archs) { die("Failed to run file command"); fgets(line, sizeof (line) - 1, fp); pclose(fp); - fprintf(stderr, "file output: %s", line); carch = g_strsplit_set(line, ",", -1)[1]; if (carch) { carch = g_strstrip(carch); if (carch) { replacestr(carch, "-", "_"); replacestr(carch, " ", "_"); - if (g_ascii_strncasecmp("i386", carch, 20) == 0) { + if (g_ascii_strncasecmp("i386", carch, 20) == 0 + || g_ascii_strncasecmp("i486", carch, 20) == 0 + || g_ascii_strncasecmp("i586", carch, 20) == 0 + || g_ascii_strncasecmp("i686", carch, 20) == 0 + ) { archs[fARCH_i386] = 1; if (verbose) fprintf(stderr, "File used for determining architecture i386: %s\n", archfile);