From bb79b61ae9a4526177c003c7ecb506eb922e2420 Mon Sep 17 00:00:00 2001 From: Pol Rivero <65060696+pol-rivero@users.noreply.github.com> Date: Mon, 23 Feb 2026 21:40:59 +0100 Subject: [PATCH 1/4] Troubleshoot windows build --- .github/workflows/ci.yml | 2 +- script/package.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5ea5b6a97dd..210945d4d16 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -82,7 +82,7 @@ jobs: steps: - name: Compute app version run: | - VERSION="0.0.0" + VERSION="1.2.3.4" if [[ "$GITHUB_REF" =~ ^refs/tags/ ]]; then # 'refs/tags/v1.2.3' -> '1.2.3' VERSION=$(echo "${GITHUB_REF/refs\/tags\//}" | sed -E "s/v(.*)/\\1/") diff --git a/script/package.ts b/script/package.ts index f1b10ad9a3a..68054ad9396 100644 --- a/script/package.ts +++ b/script/package.ts @@ -248,11 +248,15 @@ async function packageLinux() { function getSemverCompatibleVersion() { const version = getVersion() + console.log(`Original version: ${version}`) const parts = version.split('.') if (parts.length > 3) { const major = parts[0] const minor = parts[1] const patch = parts[2] + console.warn( + `Version ${version} has more than 3 parts, which is not compatible with Squirrel.Windows. Using ${major}.${minor}.${patch}-${version} instead.` + ) return `${major}.${minor}.${patch}-${version}` } return version From 4a1fc2b2b1fbe0832679b6dbda6c62e85005b23f Mon Sep 17 00:00:00 2001 From: Pol Rivero <65060696+pol-rivero@users.noreply.github.com> Date: Mon, 23 Feb 2026 22:39:28 +0100 Subject: [PATCH 2/4] . --- script/package.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/package.ts b/script/package.ts index 68054ad9396..a74f07cabf9 100644 --- a/script/package.ts +++ b/script/package.ts @@ -255,9 +255,9 @@ function getSemverCompatibleVersion() { const minor = parts[1] const patch = parts[2] console.warn( - `Version ${version} has more than 3 parts, which is not compatible with Squirrel.Windows. Using ${major}.${minor}.${patch}-${version} instead.` + `Version ${version} has more than 3 parts, which is not compatible with Squirrel.Windows. Using ${major}.${minor}.${patch}-v${version} instead.` ) - return `${major}.${minor}.${patch}-${version}` + return `${major}.${minor}.${patch}-v${version}` } return version } From bdd460e7a6dd845bfa917582e3a32c573b48542c Mon Sep 17 00:00:00 2001 From: Pol Rivero <65060696+pol-rivero@users.noreply.github.com> Date: Mon, 23 Feb 2026 22:54:46 +0100 Subject: [PATCH 3/4] . --- script/package.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/script/package.ts b/script/package.ts index a74f07cabf9..a449de3fda4 100644 --- a/script/package.ts +++ b/script/package.ts @@ -24,6 +24,7 @@ import { getDistArchitecture, } from './dist-info' import { isGitHubActions } from './build-platforms' +import * as fs from 'fs' import { existsSync, rmSync, writeFileSync } from 'fs' import { getVersion } from '../app/package-info' import { rename } from 'fs/promises' @@ -165,6 +166,11 @@ function packageWindows() { `${getWindowsIdentifierName()}-${getVersion()}-${arch}-${kind}.nupkg` ) + console.log('Files in output directory:') + const files = await fs.promises.readdir(outputDir) + for (const file of files) { + console.log(` - ${file}`) + } console.log(`Renaming ${from} to ${to}`) await rename(from, to) } From 121038693b725dfd5b511642a62364b3c88d8aeb Mon Sep 17 00:00:00 2001 From: Pol Rivero <65060696+pol-rivero@users.noreply.github.com> Date: Tue, 24 Feb 2026 09:15:54 +0100 Subject: [PATCH 4/4] . --- script/package.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/script/package.ts b/script/package.ts index a449de3fda4..4dc86e22901 100644 --- a/script/package.ts +++ b/script/package.ts @@ -254,16 +254,13 @@ async function packageLinux() { function getSemverCompatibleVersion() { const version = getVersion() - console.log(`Original version: ${version}`) const parts = version.split('.') if (parts.length > 3) { const major = parts[0] const minor = parts[1] const patch = parts[2] - console.warn( - `Version ${version} has more than 3 parts, which is not compatible with Squirrel.Windows. Using ${major}.${minor}.${patch}-v${version} instead.` - ) - return `${major}.${minor}.${patch}-v${version}` + const rest = parts.slice(3).join('-') + return `${major}.${minor}.${patch}-r${rest}` } return version }