~ Removal of old meta folder in Documents ~ Version Bump

This commit is contained in:
David Bureš 2025-09-12 15:20:19 +02:00
parent 1a97c74220
commit b230f15ab8
No known key found for this signature in database
2 changed files with 7 additions and 24 deletions

View File

@ -248,12 +248,13 @@ private extension View
AppConstants.shared.logger.debug("System version: \(String(describing: AppConstants.shared.osVersionString), privacy: .public)")
if !FileManager.default.fileExists(atPath: AppConstants.shared.documentsDirectoryPath.path)
if FileManager.default.fileExists(atPath: AppConstants.shared.documentsDirectoryPath.path)
{
AppConstants.shared.logger.info("Documents directory does not exist, creating it...")
AppConstants.shared.logger.info("Documents directory exists - will try to delete it...")
do
{
try FileManager.default.createDirectory(at: AppConstants.shared.documentsDirectoryPath, withIntermediateDirectories: true)
try FileManager.default.removeItem(at: AppConstants.shared.documentsDirectoryPath)
}
catch let documentDirectoryCreationError
{
@ -262,25 +263,7 @@ private extension View
}
else
{
AppConstants.shared.logger.info("Documents directory exists")
}
if !FileManager.default.fileExists(atPath: AppConstants.shared.metadataFilePath.path)
{
AppConstants.shared.logger.info("Metadata file does not exist, creating it...")
do
{
try Data().write(to: AppConstants.shared.metadataFilePath, options: .atomic)
}
catch let metadataDirectoryCreationError
{
AppConstants.shared.logger.error("Failed while creating metadata directory: \(metadataDirectoryCreationError.localizedDescription)")
}
}
else
{
AppConstants.shared.logger.info("Metadata file exists")
AppConstants.shared.logger.info("Documents directory does not exist - Won't do anything")
}
}
}

View File

@ -2,8 +2,8 @@ import ProjectDescription
let settings = Environment.selfCompiled.getBoolean(default: false)
let version: Version = .init(1, 6, 1, buildMetadataIdentifiers: ["Sonoma"])
let build: String = "101_S"
let version: Version = .init(1, 6, 2, buildMetadataIdentifiers: ["Sonoma"])
let build: String = "102_S"
func corkTarget(configureWithSelfCompiled: Bool) -> ProjectDescription.Target {
var additionalCompilationConditions = [String]()