From 3c84eb81b354b7fb12c3ffd54b167d796faac3b2 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 21 May 2021 14:04:21 +0200 Subject: [PATCH 1/2] release v1.2.9 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ff7d3a3..93ff6d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "matrix.to", - "version": "1.2.8", + "version": "1.2.9", "type": "module", "license": "Apache-2.0", "engines": { From 9b6a282e5fff3aea59e8ebc731576aaf8e824438 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 11 Jun 2021 10:01:42 +0200 Subject: [PATCH 2/2] bring back badge added in PR #21 --- images-nohash/matrix-badge.svg | 20 ++++++++++++++++++++ scripts/build.js | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 images-nohash/matrix-badge.svg diff --git a/images-nohash/matrix-badge.svg b/images-nohash/matrix-badge.svg new file mode 100644 index 0000000..9fd4802 --- /dev/null +++ b/images-nohash/matrix-badge.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + matrix + matrix + join chat + join chat + + diff --git a/scripts/build.js b/scripts/build.js index 498bab3..5bd584a 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -52,6 +52,7 @@ async function build() { await removeDirIfExists(targetDir); await fs.mkdir(targetDir); await fs.mkdir(path.join(targetDir, "images")); + await fs.mkdir(path.join(targetDir, "img")); // contains the badge image for historical reasons, unhashed await fs.mkdir(path.join(targetDir, ".well-known")); const assets = new AssetMap(targetDir); const imageAssets = await copyFolder(path.join(projectDir, "images"), path.join(targetDir, "images")); @@ -60,6 +61,7 @@ async function build() { await assets.write(`bundle.css`, await buildCss("css/main.css", targetDir, assets)); await assets.writeUnhashed(".well-known/apple-app-site-association", buildAppleAssociatedAppsFile(createClients())); await assets.writeUnhashed("index.html", await buildHtml(assets)); + await assets.writeUnhashed("img/matrix-badge.svg", await fs.readFile(path.join(projectDir, "images-nohash/matrix-badge.svg"))); const globalHash = assets.hashForAll(); console.log(`built matrix.to ${version} (${globalHash}) successfully with ${assets.size} files`); }