/DSStoreKit

Primary LanguageSwiftMIT LicenseMIT

DSStoreKit

GitHub License X (formerly Twitter) Follow

This package is a backup for the AppDMG package, whose main function is to parse and modify the undocumented .DS_Store files in the Mac operating system.

Installation

Package.swift

let package = Package(
    ...
    dependencies: [
        .package(url: "https://github.com/chocoford/DSStoreKit.git", branch: "main")
    ],
    targets: [
        .target(
            ...
            dependencies: [
		...
                "DSStoreKit"
            ],
            ...
        )
    ]
)

Xcode project

Menubar - File - Add Package Dependencies... - type and search https://github.com/chocoford/DSStoreKit.git

How to use

import DSStoreKit

import DSStoreKit

Create a DS_Store

var dsStore = DSStore.create()

// make changes
// ...

try dsStore.save(to: ...)

Read a .DS_Store file

let dsStore = try DSStore(url: ...)
// or
// let dsStore = try DSStore(path: ...)

print(dsStore)

Roadmap

See also

  • AppDMG - A swift package that enables creating DMG files programmatically.

Acknowledgment