mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-31 15:45:23 +00:00
chore: default mobile download links to v tags
This commit is contained in:
1 parent
4c68d35c21
commit
2e3c242e34
2 files changed
+2
-2
No files matched your search
@@ -28,7 +28,7 @@ function fail(message) {
|
|||||||
function buildTable(version, mobileVersion, mobileTag) {
|
function buildTable(version, mobileVersion, mobileTag) {
|
||||||
const tag = `v${version}`;
|
const tag = `v${version}`;
|
||||||
const base = `https://github.com/Termix-SSH/Termix/releases/download/${tag}`;
|
const base = `https://github.com/Termix-SSH/Termix/releases/download/${tag}`;
|
||||||
const mobileBase = `https://github.com/Termix-SSH/Mobile/releases/download/${mobileTag || `release-${mobileVersion}-tag`}`;
|
const mobileBase = `https://github.com/Termix-SSH/Mobile/releases/download/${mobileTag || `v${mobileVersion}`}`;
|
||||||
|
|
||||||
const win = (file) => `${base}/${file}`;
|
const win = (file) => `${base}/${file}`;
|
||||||
const linux = (file) => `${base}/${file}`;
|
const linux = (file) => `${base}/${file}`;
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ describe("buildBody", () => {
|
|||||||
expect(body).not.toContain("A bug");
|
expect(body).not.toContain("A bug");
|
||||||
expect(body).toContain("/releases/download/v26.10.0/termix_");
|
expect(body).toContain("/releases/download/v26.10.0/termix_");
|
||||||
expect(body).toContain(
|
expect(body).toContain(
|
||||||
"Mobile/releases/download/release-1.2.0-tag/termix_android.apk",
|
"Mobile/releases/download/v1.2.0/termix_android.apk",
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user