From 45cb1ef0fe0ef77787e49b5fd3f8dac126e8d8bf Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Mon, 29 Jul 2024 14:38:57 -0700 Subject: [PATCH] Tweak release things --- .github/workflows/release.yml | 2 +- scripts/vendor-node.cjs | 2 +- scripts/vendor-protoc.cjs | 12 +++++++----- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2421d683..a7b29a29 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -114,7 +114,7 @@ jobs: with: tagName: 'v__VERSION__' releaseName: 'Release __VERSION__' - releaseBody: 'https://yaak.app/changelog/__VERSION__' + releaseBody: 'https://yaak.app/blog/__VERSION__' releaseDraft: true prerelease: false args: ${{ matrix.args }} diff --git a/scripts/vendor-node.cjs b/scripts/vendor-node.cjs index 19529615..fa574a3d 100644 --- a/scripts/vendor-node.cjs +++ b/scripts/vendor-node.cjs @@ -52,7 +52,7 @@ mkdirSync(destDir, {recursive: true}); const tmpDir = path.join(__dirname, 'tmp', Date.now().toString()); // Download GitHub release artifact - const {filePath} = await new Downloader({url, directory: tmpDir,}).download(); + const {filePath} = await new Downloader({url, directory: tmpDir}).download(); // Decompress to the same directory await decompress(filePath, tmpDir, {}); diff --git a/scripts/vendor-protoc.cjs b/scripts/vendor-protoc.cjs index 9f5c019d..fef92d09 100644 --- a/scripts/vendor-protoc.cjs +++ b/scripts/vendor-protoc.cjs @@ -3,6 +3,8 @@ const Downloader = require("nodejs-file-downloader"); const path = require("node:path"); const {rmSync, mkdirSync, cpSync} = require("node:fs"); +const VERSION = '27.2'; + // `${process.platform}_${process.arch}` const MAC_ARM = 'darwin_arm64'; const MAC_X64 = 'darwin_x64'; @@ -10,10 +12,10 @@ const LNX_X64 = 'linux_x64'; const WIN_X64 = 'win32_x64'; const URL_MAP = { - [MAC_ARM]: 'https://github.com/protocolbuffers/protobuf/releases/download/v27.2/protoc-27.2-osx-aarch_64.zip', - [MAC_X64]: 'https://github.com/protocolbuffers/protobuf/releases/download/v27.2/protoc-27.2-osx-x86_64.zip', - [LNX_X64]: 'https://github.com/protocolbuffers/protobuf/releases/download/v27.2/protoc-27.2-linux-x86_64.zip', - [WIN_X64]: 'https://github.com/protocolbuffers/protobuf/releases/download/v27.2/protoc-27.2-win64.zip', + [MAC_ARM]: `https://github.com/protocolbuffers/protobuf/releases/download/v${VERSION}/protoc-${VERSION}-osx-aarch_64.zip`, + [MAC_X64]: `https://github.com/protocolbuffers/protobuf/releases/download/v${VERSION}/protoc-${VERSION}-osx-x86_64.zip`, + [LNX_X64]: `https://github.com/protocolbuffers/protobuf/releases/download/v${VERSION}/protoc-${VERSION}-linux-x86_64.zip`, + [WIN_X64]: `https://github.com/protocolbuffers/protobuf/releases/download/v${VERSION}/protoc-${VERSION}-win64.zip`, }; const SRC_BIN_MAP = { @@ -36,7 +38,7 @@ mkdirSync(dstDir, {recursive: true}); (async function () { const key = `${process.platform}_${process.env.YAAK_TARGET_ARCH ?? process.arch}`; - console.log("Vendoring protoc binary for", key); + console.log(`Vendoring protoc ${VERSION} for ${key}`); const url = URL_MAP[key]; const tmpDir = path.join(__dirname, 'tmp', Date.now().toString());