Repository: electerm/electerm (language: javascript)

Issue:
Add AppImage build



Discussion / hints:

Fix patch:
diff --git a/build/bin/build-linux-arm.js b/build/bin/build-linux-arm.js
index e9753a29aac..fdc0a2e416b 100644
--- a/build/bin/build-linux-arm.js
+++ b/build/bin/build-linux-arm.js
@@ -41,6 +41,16 @@ async function main () {
   )
   await run(`${pb} --linux --arm64`)
 
+  echo('build linux.arm64.AppImage')
+  rm('-rf', 'dist')
+  writeSrc('linux-arm64.AppImage')
+  replaceJSON(
+    (data) => {
+      data.linux.target = ['AppImage']
+    }
+  )
+  await run(`${pb} --linux --arm64`)
+
   echo('build linux.armv7l.tar.gz')
   rm('-rf', 'dist')
   writeSrc('linux-armv7l.tar.gz')
@@ -71,6 +81,16 @@ async function main () {
   )
   writeSrc('linux-armv7l.rpm')
   await run(`${pb} --linux --armv7l`)
+
+  echo('build linux.armv7l.AppImage')
+  rm('-rf', 'dist')
+  replaceJSON(
+    (data) => {
+      data.linux.target = ['AppImage']
+    }
+  )
+  writeSrc('linux-armv7l.AppImage')
+  await run(`${pb} --linux --armv7l`)
 }
 
 main()
diff --git a/build/bin/build-linux-deb-tar.js b/build/bin/build-linux-deb-tar.js
index 39c9c8db145..1f832adcc95 100644
--- a/build/bin/build-linux-deb-tar.js
+++ b/build/bin/build-linux-deb-tar.js
@@ -3,7 +3,8 @@ const { upload } = require('./custom-upload')
 const {
   run,
   writeSrc,
-  builder: pb
+  builder: pb,
+  replaceJSON
 } = require('./build-common')
 
 async function main () {
@@ -20,6 +21,16 @@ async function main () {
   writeSrc('.deb')
   await run(`${pb} --linux deb`)
   await upload()
+
+  echo('build linux-x86_64.AppImage')
+  rm('-rf', 'dist')
+  writeSrc('linux-x86_64.AppImage')
+  replaceJSON(
+    (data) => {
+      data.linux.target = ['AppImage']
+    }
+  )
+  await run(`${pb} --linux`)
 }
 
 main()
diff --git a/package.json b/package.json
index 3e559593709..86fbd417aa1 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "electerm",
-  "version": "1.37.106",
+  "version": "1.37.108",
   "description": "Terminal/ssh/telnet/serialport/sftp client(linux, mac, win)",
   "main": "app.js",
   "bin": "npm/electerm",


Test patch: