diff --git a/.github/scripts/nightly-version.mjs b/.github/scripts/nightly-version.mjs index 2d15ce290..5ccb29c7c 100644 --- a/.github/scripts/nightly-version.mjs +++ b/.github/scripts/nightly-version.mjs @@ -38,4 +38,3 @@ const timeIdentifier = `${year}-${month}-${day}-${hours}${minutes}`; const [, major, minor, patch] = match; console.log(`${major}.${minor}.${Number(patch) + 1}-nightly.${timeIdentifier}`); - diff --git a/.github/scripts/update-altstore-source.mjs b/.github/scripts/update-altstore-source.mjs index a22fcd33e..a254d9c84 100644 --- a/.github/scripts/update-altstore-source.mjs +++ b/.github/scripts/update-altstore-source.mjs @@ -34,8 +34,16 @@ if (!app) { // Clean version string for AltStore/SideStore compatibility: // Apple Info.plist CFBundleShortVersionString / CFBundleVersion replaces hyphens/prereleases (e.g. -nightly.) with numeric/dot delimiters. -const normalizedVersion = version.replace(/-nightly\./g, '.').replace(/[^0-9.]/g, '.').replace(/\.+/g, '.').replace(/^\.|\.$/g, ''); -const normalizedBuild = build.replace(/-nightly\./g, '.').replace(/[^0-9.]/g, '.').replace(/\.+/g, '.').replace(/^\.|\.$/g, ''); +const normalizedVersion = version + .replace(/-nightly\./g, '.') + .replace(/[^0-9.]/g, '.') + .replace(/\.+/g, '.') + .replace(/^\.|\.$/g, ''); +const normalizedBuild = build + .replace(/-nightly\./g, '.') + .replace(/[^0-9.]/g, '.') + .replace(/\.+/g, '.') + .replace(/^\.|\.$/g, ''); const entry = { version: normalizedVersion,