mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 15:15:24 +00:00
feat: link full desktop builds in release body and readme
This commit is contained in:
1 parent
f90621a54e
commit
cba845a7b8
3 files changed
+29
-3
No files matched your search
@@ -127,15 +127,15 @@ Want to build your own? Start from the [plugin template](https://github.com/Term
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><b>Windows</b> <sub>x64/ia32</sub></td>
|
||||
<td>Portable | EXE and MSI Installer | Chocolatey</td>
|
||||
<td>Portable | EXE and MSI Installer | Full EXE (all plugins) | Chocolatey</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><b>Linux</b> <sub>x64/arm64/armv7l</sub></td>
|
||||
<td>Portable | AUR | AppImage | Deb | Flatpak</td>
|
||||
<td>Portable | AUR | AppImage | Deb | Full AppImage and Deb (all plugins) | Flatpak</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><b>macOS</b> <sub>Universal/x64/arm64, v12.0+</sub></td>
|
||||
<td>Apple App Store | DMG | Homebrew</td>
|
||||
<td>Apple App Store | DMG | Full DMG (all plugins) | Homebrew</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><b>iOS/iPadOS</b> <sub>v15.1+</sub></td>
|
||||
|
||||
@@ -45,6 +45,18 @@ function buildTable(version, mobileVersion, mobileTag) {
|
||||
].join("\n");
|
||||
}
|
||||
|
||||
function buildFullBuilds(version) {
|
||||
const base = `https://github.com/Termix-SSH/Termix/releases/download/v${version}`;
|
||||
const link = (label, file) => `[${label}](${base}/${file})`;
|
||||
return [
|
||||
"The builds above include the standard plugins. The full builds include every official plugin, which helps on a network with no internet. You can still turn plugins on or off in the Plugins tab. Full builds are x64 only (universal on Mac):",
|
||||
"",
|
||||
`- Windows: ${link("EXE", "termix_windows_x64_full_nsis.exe")}`,
|
||||
`- Linux: ${link("AppImage", "termix_linux_x64_full_appimage.AppImage")} · ${link("DEB", "termix_linux_x64_full_deb.deb")}`,
|
||||
`- Mac: ${link("DMG", "termix_macos_universal_full_dmg.dmg")}`,
|
||||
].join("\n");
|
||||
}
|
||||
|
||||
function buildBody({ version, mobileVersion, mobileTag, changelog }) {
|
||||
const notes = changelogSection(changelog, version);
|
||||
if (!notes) fail(`CHANGELOG.md has no notes for ${version}`);
|
||||
@@ -62,6 +74,8 @@ function buildBody({ version, mobileVersion, mobileTag, changelog }) {
|
||||
"### Downloads",
|
||||
"",
|
||||
buildTable(version, mobileVersion, mobileTag),
|
||||
"",
|
||||
buildFullBuilds(version),
|
||||
].join("\n");
|
||||
}
|
||||
|
||||
|
||||
@@ -34,6 +34,18 @@ describe("buildBody", () => {
|
||||
);
|
||||
});
|
||||
|
||||
it("links the full builds", () => {
|
||||
const body = buildBody({
|
||||
version: "26.10.0",
|
||||
mobileVersion: "1.2.0",
|
||||
changelog: CHANGELOG,
|
||||
});
|
||||
expect(body).toContain("v26.10.0/termix_windows_x64_full_nsis.exe");
|
||||
expect(body).toContain("v26.10.0/termix_linux_x64_full_appimage.AppImage");
|
||||
expect(body).toContain("v26.10.0/termix_linux_x64_full_deb.deb");
|
||||
expect(body).toContain("v26.10.0/termix_macos_universal_full_dmg.dmg");
|
||||
});
|
||||
|
||||
it("works for the real changelog", () => {
|
||||
const fs = require("fs");
|
||||
const body = buildBody({
|
||||
|
||||
Reference in new issue
Block a user