mirror of https://github.com/buresdv/Cork
~ Notifications a separate module * Cached downloads graph not showing up
This commit is contained in:
parent
2f28e0d8dd
commit
7964ac26d0
|
|
@ -8,6 +8,8 @@
|
|||
import AppKit
|
||||
import Foundation
|
||||
@preconcurrency import UserNotifications
|
||||
import CorkShared
|
||||
import CorkNotifications
|
||||
|
||||
/// Class that holds the global state of the app, excluding services
|
||||
@MainActor
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ import AppKit
|
|||
import DavidFoundation
|
||||
import Foundation
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
class AppDelegate: NSObject, NSApplicationDelegate, ObservableObject
|
||||
{
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
// swiftlint:disable file_length
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
struct ContentView: View, Sendable
|
||||
{
|
||||
|
|
|
|||
|
|
@ -10,6 +10,8 @@
|
|||
import DavidFoundation
|
||||
import SwiftUI
|
||||
import UserNotifications
|
||||
import CorkShared
|
||||
import CorkNotifications
|
||||
|
||||
@main
|
||||
struct CorkApp: App
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
import AppIntents
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
struct GetInstalledCasksIntent: AppIntent
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
import AppIntents
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
enum FolderAccessingError: LocalizedError
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
import AppIntents
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
enum RefreshIntentResult: String, AppEnum
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
enum BrewfileDumpingError: LocalizedError
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
enum BrewfileReadingError: LocalizedError
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
enum TopPackageLoadingError: LocalizedError
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
enum PackageLoadingError: LocalizedError
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
extension URL
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
@MainActor
|
||||
func applyUninstallationSpinner(to package: BrewPackage, brewData: BrewDataStorage)
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
extension BrewDataStorage
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
@MainActor
|
||||
func loadUpTappedTaps() async -> [BrewTap]
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
func deleteCachedDownloads()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
enum HealthCheckError: LocalizedError
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
/* enum CachePurgeError: Error
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
enum OrphanUninstallationError: LocalizedError
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
enum HomebrewCachePurgeError: LocalizedError
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
enum OrphanRemovalError: LocalizedError
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
enum CorkLicenseRetrievalError: LocalizedError
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
enum DataDownloadingError: LocalizedError
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
enum OutdatedPackageRetrievalError: LocalizedError
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
@MainActor
|
||||
func loadUpPackages(whatToLoad: PackageType, appState: AppState) async -> Set<BrewPackage>
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
enum BrewPackageInfoLoadingError: LocalizedError
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
func pinAndUnpinPackage(package: BrewPackage, pinned: Bool) async
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
private enum PackageRetrievalByUUIDError: LocalizedError
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
func searchForPackage(packageName: String, packageType: PackageType) async throws -> [String]
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
enum HomebrewServiceLoadingError: LocalizedError
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
extension ServicesTracker
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
extension ServicesTracker
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
enum ServiceStoppingError: LocalizedError
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
extension HomebrewService
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
struct SearchResults
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
@discardableResult
|
||||
func shell(
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
import AppKit
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
func submitSystemVersion() async throws
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
@MainActor
|
||||
func applyTagsToPackageTrackingArray(appState: AppState, brewData: BrewDataStorage) async throws
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
@MainActor
|
||||
func changePackageTagStatus(package: BrewPackage, brewData: BrewDataStorage, appState: AppState) async
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
func loadTaggedIDsFromDisk() throws -> Set<String>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
@MainActor
|
||||
func saveTaggedIDsToDisk(appState: AppState) throws
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
func addTap(name: String, forcedRepoAddress: String? = nil) async -> String
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
func parseTapInfo(from rawJSON: String) async throws -> TapInfo?
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
enum UntapError: LocalizedError
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
@MainActor
|
||||
func refreshPackages(_ updateProgressTracker: UpdateProgressTracker, outdatedPackageTracker: OutdatedPackageTracker) async -> PackageUpdateAvailability
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
@MainActor
|
||||
func updatePackages(updateProgressTracker: UpdateProgressTracker, detailStage: UpdatingProcessDetails) async
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
class InstallationProgressTracker: ObservableObject
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
enum PinningUnpinningError: LocalizedError
|
||||
{
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
import AppKit
|
||||
import DavidFoundation
|
||||
import Foundation
|
||||
import CorkShared
|
||||
|
||||
/// A representation of a Homebrew package
|
||||
struct BrewPackage: Identifiable, Equatable, Hashable
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
import CorkNotifications
|
||||
|
||||
struct AddFormulaView: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
struct SearchResultRow: View, Sendable
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
struct InstallationInitialView: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
struct InstallingPackageView: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
struct LiveTerminalOutputView: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
struct LicensingView: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
struct Licensing_DemoView: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
struct Licensing_NotBoughtOrActivatedView: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
struct MaintenanceFinishedView: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
struct MaintenanceRunningView: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
struct MaintenanceReadyView: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
import CorkNotifications
|
||||
|
||||
struct MenuBar_CacheCleanup: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
import CorkNotifications
|
||||
|
||||
struct MenuBar_CachedDownloadsCleanup: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
import CorkNotifications
|
||||
|
||||
struct MenuBar_OrphanCleanup: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
import CorkNotifications
|
||||
|
||||
struct OnboardingView: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
enum SetupLevels: Identifiable, CaseIterable
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
struct PackageDetailView: View, Sendable
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
struct PackageModificationButtons: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
struct ReinstallCorruptedPackageView: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
struct UninstallPackageButton: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
enum ReasonsForServiceLoadingFailure
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
struct BrewPane: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
import SwiftUI
|
||||
import UserNotifications
|
||||
import CorkShared
|
||||
|
||||
struct NotificationsPane: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
struct CustomHomebrewExecutableView: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
struct TapsSection: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
struct StartPage: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
struct PackageAndTapOverviewBox: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
struct AddTapAddingView: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
struct AddTapFinishedView: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
struct TapDetailView: View, Sendable
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
import CorkNotifications
|
||||
|
||||
struct ErroredOutStageView: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkNotifications
|
||||
|
||||
struct FinishedStageView: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
import CorkNotifications
|
||||
|
||||
struct NoUpdatesAvailableStageView: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
struct CheckingForUpdatesStateView: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
struct UpdatingPackageTrackerStateView: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import CorkShared
|
||||
|
||||
struct UpdateSomePackagesView: View
|
||||
{
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
import Foundation
|
||||
import SwiftUI
|
||||
import UserNotifications
|
||||
import CorkShared
|
||||
|
||||
func sendNotification(title: String, body: String? = nil, subtitle: String? = nil, sensitivity: UNNotificationInterruptionLevel = .timeSensitive)
|
||||
{
|
||||
|
|
@ -100,16 +100,16 @@ enum AppConstants
|
|||
|
||||
// MARK: - Storage for tagging
|
||||
|
||||
static let documentsDirectoryPath: URL = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first!.appendingPathComponent("Cork", conformingTo: .directory)
|
||||
static let metadataFilePath: URL = documentsDirectoryPath.appendingPathComponent("Metadata", conformingTo: .data)
|
||||
public static let documentsDirectoryPath: URL = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first!.appending(component: "Cork", directoryHint: .isDirectory)
|
||||
public static let metadataFilePath: URL = documentsDirectoryPath.appending(component: "Metadata", directoryHint: .notDirectory).appendingPathExtension("brewmeta")
|
||||
|
||||
// MARK: - Brew Cache
|
||||
|
||||
static let brewCachePath: URL = URL.libraryDirectory.appendingPathComponent("Caches", conformingTo: .directory).appendingPathComponent("Homebrew", conformingTo: .directory) // /Users/david/Library/Caches/Homebrew
|
||||
public static let brewCachePath: URL = URL.libraryDirectory.appending(component: "Caches", directoryHint: .isDirectory).appending(component: "Homerbew", directoryHint: .isDirectory) // /Users/david/Library/Caches/Homebrew
|
||||
|
||||
/// These two have the symlinks to the actual downloads
|
||||
static let brewCachedFormulaeDownloadsPath: URL = brewCachePath
|
||||
static let brewCachedCasksDownloadsPath: URL = brewCachePath.appendingPathComponent("Cask", conformingTo: .directory)
|
||||
public static let brewCachedFormulaeDownloadsPath: URL = brewCachePath
|
||||
public static let brewCachedCasksDownloadsPath: URL = brewCachePath.appending(component: "Cask", directoryHint: .isDirectory)
|
||||
|
||||
/// This one has all the downloaded files themselves
|
||||
static let brewCachedDownloadsPath: URL = brewCachePath.appendingPathComponent("downloads", conformingTo: .directory)
|
||||
|
|
@ -32,6 +32,8 @@ let project = Project(
|
|||
"Cork/Logic/Helpers/Programs/Sudo Helper",
|
||||
], dependencies: [
|
||||
// .target(name: "CorkHelp"),
|
||||
.target(name: "CorkShared"),
|
||||
.target(name: "CorkNotifications"),
|
||||
.external(name: "LaunchAtLogin"),
|
||||
.external(name: "DavidFoundation"),
|
||||
.package(product: "SwiftLintBuildToolPlugin", type: .plugin),
|
||||
|
|
@ -46,6 +48,47 @@ let project = Project(
|
|||
),
|
||||
])
|
||||
),
|
||||
.target(
|
||||
name: "CorkShared",
|
||||
destinations: [.mac],
|
||||
product: .staticLibrary,
|
||||
bundleId: "com.davidbures.cork-shared",
|
||||
sources: [
|
||||
"Modules/Shared/**/*.swift"
|
||||
],
|
||||
settings: .settings(configurations: [
|
||||
.debug(
|
||||
name: "Debug",
|
||||
xcconfig: .relativeToRoot("xcconfigs/Cork.xcconfig")
|
||||
),
|
||||
.release(
|
||||
name: "Release",
|
||||
xcconfig: .relativeToRoot("xcconfigs/Cork.xcconfig")
|
||||
)
|
||||
])
|
||||
),
|
||||
.target(
|
||||
name: "CorkNotifications",
|
||||
destinations: [.mac],
|
||||
product: .staticLibrary,
|
||||
bundleId: "com.davidbures.cork-notifications",
|
||||
sources: [
|
||||
"Modules/Notifications/**/*.swift"
|
||||
],
|
||||
dependencies: [
|
||||
.target(name: "CorkShared")
|
||||
],
|
||||
settings: .settings(configurations: [
|
||||
.debug(
|
||||
name: "Debug",
|
||||
xcconfig: .relativeToRoot("xcconfigs/Cork.xcconfig")
|
||||
),
|
||||
.release(
|
||||
name: "Release",
|
||||
xcconfig: .relativeToRoot("xcconfigs/Cork.xcconfig")
|
||||
)
|
||||
])
|
||||
),
|
||||
.target(
|
||||
name: "CorkHelp",
|
||||
destinations: [.mac],
|
||||
|
|
|
|||
Loading…
Reference in New Issue