formatting

This commit is contained in:
7w1 committed 2026-07-22 12:24:43 -05:00
1 parent b63b9b3b98
commit e01aad60f5
2 files changed
+10 -3

No files matched your search

-1
View File
@@ -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}`);
+10 -2
View File
@@ -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,