diff --git a/electron-builder-config.js b/electron-builder-config.js index d1adf6b0..3bd553d0 100644 --- a/electron-builder-config.js +++ b/electron-builder-config.js @@ -159,7 +159,8 @@ module.exports = { category: 'Network', target: [ 'dir', - 'AppImage' + 'AppImage', + 'deb' ] }, win: { diff --git a/src/auto-updater/index.js b/src/auto-updater/index.js index 7b518671..00e752a0 100644 --- a/src/auto-updater/index.js +++ b/src/auto-updater/index.js @@ -5,6 +5,7 @@ const { rootPath: appDir } = require('electron-root-path') const fs = require('fs') const path = require('path') const { + DebUpdater, AppImageUpdater, NsisUpdater, AppUpdater @@ -299,7 +300,12 @@ const _autoUpdaterFactory = () => { }) } if (process.platform === 'linux') { - autoUpdater = new AppImageUpdater() + autoUpdater = ( + process.env.APPIMAGE || + process.env.IS_AUTO_UPDATE_BEING_TESTED + ) + ? new AppImageUpdater() + : new DebUpdater() // An option to debug the auto-update flow non-packaged build if ( diff --git a/src/error-manager/github-issue-template.md b/src/error-manager/github-issue-template.md index 11c3c131..68fe2fdb 100644 --- a/src/error-manager/github-issue-template.md +++ b/src/error-manager/github-issue-template.md @@ -17,6 +17,7 @@ ${description} | RAM | ${totalRamGb}GB (${freeRamGb}GB free) | | App RAM limit | ${ramLimitMb}Mb (${usedRamMb}MB used) | | Is BFX API Staging used | ${isBfxApiStagingUsed} | +| Is AppImage used | ${isAppImageUsed} |
diff --git a/src/helpers/get-debug-info.js b/src/helpers/get-debug-info.js index 41e240ad..dc1886b2 100644 --- a/src/helpers/get-debug-info.js +++ b/src/helpers/get-debug-info.js @@ -119,6 +119,13 @@ module.exports = (eol = os.EOL) => { const bfxApiStagingDetail = isBfxApiStagingUsed ? `${eol}Is BFX API Staging used: Yes` : '' + const isAppImageUsed = !!process.env.APPIMAGE + const isAppImageUsedStr = isAppImageUsed + ? 'Yes' + : 'No' + const linuxReleaseType = process.platform === 'linux' + ? `${eol}Is AppImage used: ${isAppImageUsedStr}` + : '' const detail = `\ Version: ${version}${eol}\ @@ -130,7 +137,8 @@ Node.js: ${nodeVersion}${eol}\ V8: ${v8Version}${eol}\ OS version: ${osVersion}${eol}\ OS release: ${osType} ${osArch} ${osRelease}\ -${bfxApiStagingDetail} +${bfxApiStagingDetail}\ +${linuxReleaseType} ` return { @@ -157,6 +165,7 @@ ${bfxApiStagingDetail} cpuModel, cpuCount, isBfxApiStagingUsed, + isAppImageUsed, detail } }