Skip to content

Commit d7b7523

Browse files
committed
linux app image deployments
1 parent 2bc0119 commit d7b7523

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

build/constants.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
const RELEASE_ASSET_INSTALLER_SUFFIXES = {
22
LINUX_X64_GLIBC_2_31_INSTALLER: "_amd64_linux_bin-GLIBC-2.31.tar.gz",
33
LINUX_X64_GLIBC_2_35_INSTALLER: "_amd64_linux_bin-GLIBC-2.35.tar.gz",
4+
// From v5.1.x onwards the Linux distribution ships as an AppImage instead of the GLIBC tarballs.
5+
// ".AppImage.sig" ends with ".sig", so endsWith(".AppImage") correctly excludes the signature file.
6+
LINUX_X64_APPIMAGE_INSTALLER: ".AppImage",
47
WINDOWS_X64_INSTALLER: "_x64-setup.exe",
58
MAC_M1_INSTALLER: "_aarch64.dmg",
69
MAC_X64_INSTALLER: "_x64.dmg",
@@ -9,6 +12,7 @@ const RELEASE_ASSET_INSTALLER_SUFFIXES = {
912
const RELEASE_ASSET_INSTALLER_PREFIXES = {
1013
LINUX_X64_GLIBC_2_31_INSTALLER: "phoenix-code_",
1114
LINUX_X64_GLIBC_2_35_INSTALLER: "phoenix-code_",
15+
LINUX_X64_APPIMAGE_INSTALLER: "phoenix-code_",
1216
WINDOWS_X64_INSTALLER: "Phoenix.Code_",
1317
MAC_M1_INSTALLER: "Phoenix.Code_",
1418
MAC_X64_INSTALLER: "Phoenix.Code_"
@@ -38,4 +42,4 @@ exports.RELEASE_ASSET_INSTALLER_PREFIXES = RELEASE_ASSET_INSTALLER_PREFIXES;
3842
exports.RELEASE_ASSET_UPDATER_SUFFIXES = RELEASE_ASSET_UPDATER_SUFFIXES;
3943
exports.RELEASE_ASSET_UPDATER_PREFIXES = RELEASE_ASSET_UPDATER_PREFIXES;
4044
exports.RELEASE_ASSET_SUFFIXES_ALL = RELEASE_ASSET_SUFFIXES_ALL;
41-
exports.SUFFIX_TO_NAME_MAP = SUFFIX_TO_NAME_MAP;
45+
exports.SUFFIX_TO_NAME_MAP = SUFFIX_TO_NAME_MAP;

docs/download-graphs.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,10 +397,16 @@ <h1>Individual Assets <span class="version-select-text"></span></h1>
397397
plotVersionGraph();
398398
// Calculate platform aggregates
399399
function sumDownloads(dataArray) {
400-
return dataArray[0].map((_, index) => dataArray.reduce((sum, current) => sum + current[index], 0));
400+
// Ignore series that are missing (e.g. AppImage on older releases that predate it).
401+
const series = dataArray.filter(Boolean);
402+
if (!series.length) {
403+
return [];
404+
}
405+
return series[0].map((_, index) => series.reduce((sum, current) => sum + (current[index] || 0), 0));
401406
}
402407

403-
const linuxInstaller = sumDownloads([data.LINUX_X64_GLIBC_2_31_INSTALLER, data.LINUX_X64_GLIBC_2_35_INSTALLER]);
408+
// Linux switched from the GLIBC tarballs to a single AppImage from v5.1.x onwards.
409+
const linuxInstaller = sumDownloads([data.LINUX_X64_GLIBC_2_31_INSTALLER, data.LINUX_X64_GLIBC_2_35_INSTALLER, data.LINUX_X64_APPIMAGE_INSTALLER]);
404410
const macInstaller = sumDownloads([data.MAC_M1_INSTALLER, data.MAC_X64_INSTALLER]);
405411
const windowsInstaller = sumDownloads([data.WINDOWS_X64_INSTALLER]);
406412

0 commit comments

Comments
 (0)