mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-26 20:06:26 -08:00
formatting
This commit is contained in:
1 parent
b63b9b3b98
commit
e01aad60f5
2 files changed
+10
-3
No files matched your search
@@ -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}`);
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user