From 95789186533e009ceb37b425cd3af7f2300ebc54 Mon Sep 17 00:00:00 2001
From: audric <audric@loki.network>
Date: Wed, 4 Aug 2021 17:37:58 +1000
Subject: [PATCH] fix script appimage

---
 build/afterPackHook.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/build/afterPackHook.js b/build/afterPackHook.js
index 56adcc83e1..9dd79b59e2 100644
--- a/build/afterPackHook.js
+++ b/build/afterPackHook.js
@@ -10,7 +10,8 @@ module.exports = async function(context) {
   if (process.platform !== 'linux') {
     return;
   }
-  const isAppImage = context.targets.name === 'appImage';
+  const isAppImage =
+    context.targets.name === 'appImage' || context.targets.some(e => e.name === 'appImage');
   console.log(
     'targets',
     context.targets.map(target => target.name)