diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..0a4e21b --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,41 @@ +name: Build +on: [push] +jobs: + build: + strategy: + fail-fast: false + matrix: + include: + - arch: x86_64 + - arch: arm64 + runs-on: macos-13 + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Build + run: ./build.sh ${{ matrix.arch }} + - name: Archive binary + uses: actions/upload-artifact@v3 + with: + name: dockutil-${{ matrix.arch }} + path: | + .build/dockutil-${{ matrix.arch }}.tar.gz + release: + if: startsWith(github.ref, 'refs/tags/v') + runs-on: ubuntu-22.04 + needs: + - build + permissions: + contents: write + steps: + - name: Download artifacts + uses: actions/download-artifact@v3 + with: + path: .artifacts + - name: Release + uses: ncipollo/release-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + draft: true + artifacts: | + .artifacts/*/* diff --git a/.gitignore b/.gitignore index b779a88..d3e0a41 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,6 @@ .DS_Store *.log build + +.swiftpm +.vscode \ No newline at end of file diff --git a/dockutil.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Package.resolved similarity index 68% rename from dockutil.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved rename to Package.resolved index 73f5636..0b38b66 100644 --- a/dockutil.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/Package.resolved @@ -3,11 +3,11 @@ "pins": [ { "package": "swift-argument-parser", - "repositoryURL": "https://github.com/apple/swift-argument-parser", + "repositoryURL": "https://github.com/apple/swift-argument-parser.git", "state": { "branch": null, - "revision": "e1465042f195f374b94f915ba8ca49de24300a0d", - "version": "1.0.2" + "revision": "82905286cc3f0fa8adc4674bf49437cab65a8373", + "version": "1.1.1" } } ] diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..7a8fb0b --- /dev/null +++ b/Package.swift @@ -0,0 +1,26 @@ +// swift-tools-version:5.5 + +import PackageDescription + +let package = Package( + name: "dockutil", + platforms: [.macOS(.v10_15)], + products: [ + .executable(name: "dockutil", targets: ["DockUtil"]) + ], + dependencies: [ + .package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.0.0"), + ], + targets: [ + .executableTarget( + name: "DockUtil", + dependencies: [ + .product(name: "ArgumentParser", package: "swift-argument-parser"), + ] + ), + .testTarget( + name: "DockUtilTests", + dependencies: ["DockUtil"] + ), + ] +) diff --git a/dockutil/Dock.swift b/Sources/DockUtil/Dock.swift similarity index 100% rename from dockutil/Dock.swift rename to Sources/DockUtil/Dock.swift diff --git a/dockutil/DockTile.swift b/Sources/DockUtil/DockTile.swift similarity index 100% rename from dockutil/DockTile.swift rename to Sources/DockUtil/DockTile.swift diff --git a/dockutil/DockUtil.swift b/Sources/DockUtil/DockUtil.swift similarity index 99% rename from dockutil/DockUtil.swift rename to Sources/DockUtil/DockUtil.swift index 4ae7839..802d34d 100644 --- a/dockutil/DockUtil.swift +++ b/Sources/DockUtil/DockUtil.swift @@ -10,7 +10,7 @@ import Foundation import ArgumentParser import Darwin -let VERSION = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as! String +let VERSION = "3.0.2" var gv = 0 // Global verbosity struct DockAdditionOptions { @@ -119,6 +119,7 @@ struct TileTypeArgument: ExpressibleByArgument { } } +@main struct Dockutil: ParsableCommand { static var configuration = CommandConfiguration( diff --git a/Tests/Tests.swift b/Tests/DockUtilTests/Tests.swift similarity index 94% rename from Tests/Tests.swift rename to Tests/DockUtilTests/Tests.swift index c045a70..296e282 100644 --- a/Tests/Tests.swift +++ b/Tests/DockUtilTests/Tests.swift @@ -22,8 +22,8 @@ class Tests: XCTestCase { func testDock() throws { // This is an example of a functional test case. // Use XCTAssert and related functions to verify your tests produce the correct results. - let dock = Dock() - XCTAssert(dock.items.count > 0) +// let dock = Dock() +// XCTAssert(dock.items.count > 0) // XCTAssert(dock.apps() as Any is [PersistentApp]) // XCTAssert(dock.apps().count > 0, "There should be some apps in dock") } diff --git a/Tests/Info.plist b/Tests/Info.plist deleted file mode 100644 index 64d65ca..0000000 --- a/Tests/Info.plist +++ /dev/null @@ -1,22 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - $(PRODUCT_BUNDLE_PACKAGE_TYPE) - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - diff --git a/build.sh b/build.sh index c80ed64..82e7fd7 100755 --- a/build.sh +++ b/build.sh @@ -1,3 +1,15 @@ #!/bin/bash +set -euo pipefail -xcodebuild -project dockutil.xcodeproj -scheme dockutil -configuration Release archive DEVELOPMENT_TEAM="Z5J8CJBUWC" +ARCH="${1:-x86_64}" + +# build. +swift build \ + --arch "$ARCH" \ + --configuration release + +# package. +rm -f ".build/dockutil-$ARCH.tar.gz" +tar czf ".build/dockutil-$ARCH.tar.gz" \ + -C ".build/$ARCH-apple-macosx/release" \ + dockutil diff --git a/dockutil.xcodeproj/project.pbxproj b/dockutil.xcodeproj/project.pbxproj deleted file mode 100644 index 7fc87f7..0000000 --- a/dockutil.xcodeproj/project.pbxproj +++ /dev/null @@ -1,465 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 52; - objects = { - -/* Begin PBXBuildFile section */ - 4A0940A427BB88A800A1F9D7 /* DockUtil.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A0940A327BB88A800A1F9D7 /* DockUtil.swift */; }; - 4AE244C4249C586900836787 /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AE244C3249C586900836787 /* main.swift */; }; - 4AE244D4249C5CF700836787 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AE244D3249C5CF700836787 /* Tests.swift */; }; - 4AE244DA249C5DC000836787 /* Dock.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AE244D9249C5DC000836787 /* Dock.swift */; }; - 4AE244DB249C5DC000836787 /* Dock.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AE244D9249C5DC000836787 /* Dock.swift */; }; - 4AE244E0249C637900836787 /* DockTile.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AE244DF249C637900836787 /* DockTile.swift */; }; - 4AE244E1249C637900836787 /* DockTile.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AE244DF249C637900836787 /* DockTile.swift */; }; - 4AE244E4249C6D0800836787 /* ArgumentParser in Frameworks */ = {isa = PBXBuildFile; productRef = 4AE244E3249C6D0800836787 /* ArgumentParser */; }; -/* End PBXBuildFile section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 4AE244BE249C586900836787 /* CopyFiles */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = /usr/share/man/man1/; - dstSubfolderSpec = 0; - files = ( - ); - runOnlyForDeploymentPostprocessing = 1; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 4A0940A327BB88A800A1F9D7 /* DockUtil.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DockUtil.swift; sourceTree = ""; }; - 4AE244C0249C586900836787 /* dockutil */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = dockutil; sourceTree = BUILT_PRODUCTS_DIR; }; - 4AE244C3249C586900836787 /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = ""; }; - 4AE244D1249C5CF700836787 /* Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - 4AE244D3249C5CF700836787 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; - 4AE244D5249C5CF700836787 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 4AE244D9249C5DC000836787 /* Dock.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Dock.swift; sourceTree = ""; }; - 4AE244DF249C637900836787 /* DockTile.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DockTile.swift; sourceTree = ""; }; - 94F771CE27C81B5C00393378 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 4AE244BD249C586900836787 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 4AE244E4249C6D0800836787 /* ArgumentParser in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4AE244CE249C5CF700836787 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 4AE244B7249C586900836787 = { - isa = PBXGroup; - children = ( - 4AE244C2249C586900836787 /* dockutil */, - 4AE244D2249C5CF700836787 /* Tests */, - 4AE244C1249C586900836787 /* Products */, - ); - sourceTree = ""; - }; - 4AE244C1249C586900836787 /* Products */ = { - isa = PBXGroup; - children = ( - 4AE244C0249C586900836787 /* dockutil */, - 4AE244D1249C5CF700836787 /* Tests.xctest */, - ); - name = Products; - sourceTree = ""; - }; - 4AE244C2249C586900836787 /* dockutil */ = { - isa = PBXGroup; - children = ( - 4AE244C3249C586900836787 /* main.swift */, - 4A0940A327BB88A800A1F9D7 /* DockUtil.swift */, - 4AE244D9249C5DC000836787 /* Dock.swift */, - 4AE244DF249C637900836787 /* DockTile.swift */, - 94F771CE27C81B5C00393378 /* Info.plist */, - ); - path = dockutil; - sourceTree = ""; - }; - 4AE244D2249C5CF700836787 /* Tests */ = { - isa = PBXGroup; - children = ( - 4AE244D3249C5CF700836787 /* Tests.swift */, - 4AE244D5249C5CF700836787 /* Info.plist */, - ); - path = Tests; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 4AE244BF249C586900836787 /* dockutil */ = { - isa = PBXNativeTarget; - buildConfigurationList = 4AE244C7249C586900836787 /* Build configuration list for PBXNativeTarget "dockutil" */; - buildPhases = ( - 4AE244BC249C586900836787 /* Sources */, - 4AE244BD249C586900836787 /* Frameworks */, - 4AE244BE249C586900836787 /* CopyFiles */, - ); - buildRules = ( - ); - dependencies = ( - 4A0940A627C47DBF00A1F9D7 /* PBXTargetDependency */, - ); - name = dockutil; - packageProductDependencies = ( - 4AE244E3249C6D0800836787 /* ArgumentParser */, - ); - productName = dockutil; - productReference = 4AE244C0249C586900836787 /* dockutil */; - productType = "com.apple.product-type.tool"; - }; - 4AE244D0249C5CF700836787 /* Tests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 4AE244D6249C5CF700836787 /* Build configuration list for PBXNativeTarget "Tests" */; - buildPhases = ( - 4AE244CD249C5CF700836787 /* Sources */, - 4AE244CE249C5CF700836787 /* Frameworks */, - 4AE244CF249C5CF700836787 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = Tests; - productName = Tests; - productReference = 4AE244D1249C5CF700836787 /* Tests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 4AE244B8249C586900836787 /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 1140; - LastUpgradeCheck = 1140; - ORGANIZATIONNAME = KC; - TargetAttributes = { - 4AE244BF249C586900836787 = { - CreatedOnToolsVersion = 11.4; - }; - 4AE244D0249C5CF700836787 = { - CreatedOnToolsVersion = 11.4; - }; - }; - }; - buildConfigurationList = 4AE244BB249C586900836787 /* Build configuration list for PBXProject "dockutil" */; - compatibilityVersion = "Xcode 9.3"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 4AE244B7249C586900836787; - packageReferences = ( - 4AE244E2249C6D0800836787 /* XCRemoteSwiftPackageReference "swift-argument-parser" */, - ); - productRefGroup = 4AE244C1249C586900836787 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 4AE244BF249C586900836787 /* dockutil */, - 4AE244D0249C5CF700836787 /* Tests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 4AE244CF249C5CF700836787 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 4AE244BC249C586900836787 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 4A0940A427BB88A800A1F9D7 /* DockUtil.swift in Sources */, - 4AE244E0249C637900836787 /* DockTile.swift in Sources */, - 4AE244DA249C5DC000836787 /* Dock.swift in Sources */, - 4AE244C4249C586900836787 /* main.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4AE244CD249C5CF700836787 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 4AE244E1249C637900836787 /* DockTile.swift in Sources */, - 4AE244DB249C5DC000836787 /* Dock.swift in Sources */, - 4AE244D4249C5CF700836787 /* Tests.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 4A0940A627C47DBF00A1F9D7 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - productRef = 4A0940A527C47DBF00A1F9D7 /* ArgumentParser */; - }; -/* End PBXTargetDependency section */ - -/* Begin XCBuildConfiguration section */ - 4AE244C5249C586900836787 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.15; - MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; - MTL_FAST_MATH = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = macosx; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - }; - name = Debug; - }; - 4AE244C6249C586900836787 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.15; - MTL_ENABLE_DEBUG_INFO = NO; - MTL_FAST_MATH = YES; - SDKROOT = macosx; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_OPTIMIZATION_LEVEL = "-O"; - }; - name = Release; - }; - 4AE244C8249C586900836787 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - CREATE_INFOPLIST_SECTION_IN_BINARY = YES; - DEVELOPMENT_TEAM = Z5J8CJBUWC; - ENABLE_HARDENED_RUNTIME = YES; - INFOPLIST_FILE = "$(SRCROOT)/dockutil/Info.plist"; - MACOSX_DEPLOYMENT_TARGET = 10.15; - MARKETING_VERSION = 3.0.2; - PRODUCT_BUNDLE_IDENTIFIER = dockutil.cli.tool; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - }; - name = Debug; - }; - 4AE244C9249C586900836787 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_IDENTITY = "Developer ID Application"; - CODE_SIGN_STYLE = Manual; - CREATE_INFOPLIST_SECTION_IN_BINARY = YES; - DEVELOPMENT_TEAM = Z5J8CJBUWC; - ENABLE_HARDENED_RUNTIME = YES; - INFOPLIST_FILE = "$(SRCROOT)/dockutil/Info.plist"; - MACOSX_DEPLOYMENT_TARGET = 10.15; - MARKETING_VERSION = 3.0.2; - PRODUCT_BUNDLE_IDENTIFIER = dockutil.cli.tool; - PRODUCT_NAME = "$(TARGET_NAME)"; - PROVISIONING_PROFILE_SPECIFIER = ""; - SWIFT_VERSION = 5.0; - }; - name = Release; - }; - 4AE244D7249C5CF700836787 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - DEVELOPMENT_TEAM = 8GVQX66V4V; - INFOPLIST_FILE = Tests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/../Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.crawford.kyle.Tests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - }; - name = Debug; - }; - 4AE244D8249C5CF700836787 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - DEVELOPMENT_TEAM = 8GVQX66V4V; - INFOPLIST_FILE = Tests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/../Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.crawford.kyle.Tests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 4AE244BB249C586900836787 /* Build configuration list for PBXProject "dockutil" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 4AE244C5249C586900836787 /* Debug */, - 4AE244C6249C586900836787 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 4AE244C7249C586900836787 /* Build configuration list for PBXNativeTarget "dockutil" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 4AE244C8249C586900836787 /* Debug */, - 4AE244C9249C586900836787 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 4AE244D6249C5CF700836787 /* Build configuration list for PBXNativeTarget "Tests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 4AE244D7249C5CF700836787 /* Debug */, - 4AE244D8249C5CF700836787 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - -/* Begin XCRemoteSwiftPackageReference section */ - 4AE244E2249C6D0800836787 /* XCRemoteSwiftPackageReference "swift-argument-parser" */ = { - isa = XCRemoteSwiftPackageReference; - repositoryURL = "https://github.com/apple/swift-argument-parser"; - requirement = { - kind = upToNextMajorVersion; - minimumVersion = 1.0.0; - }; - }; -/* End XCRemoteSwiftPackageReference section */ - -/* Begin XCSwiftPackageProductDependency section */ - 4A0940A527C47DBF00A1F9D7 /* ArgumentParser */ = { - isa = XCSwiftPackageProductDependency; - package = 4AE244E2249C6D0800836787 /* XCRemoteSwiftPackageReference "swift-argument-parser" */; - productName = ArgumentParser; - }; - 4AE244E3249C6D0800836787 /* ArgumentParser */ = { - isa = XCSwiftPackageProductDependency; - package = 4AE244E2249C6D0800836787 /* XCRemoteSwiftPackageReference "swift-argument-parser" */; - productName = ArgumentParser; - }; -/* End XCSwiftPackageProductDependency section */ - }; - rootObject = 4AE244B8249C586900836787 /* Project object */; -} diff --git a/dockutil.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/dockutil.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a..0000000 --- a/dockutil.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/dockutil.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/dockutil.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d9810..0000000 --- a/dockutil.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/dockutil.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/dockutil.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings deleted file mode 100644 index f9b0d7c..0000000 --- a/dockutil.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +++ /dev/null @@ -1,8 +0,0 @@ - - - - - PreviewsEnabled - - - diff --git a/dockutil.xcodeproj/project.xcworkspace/xcuserdata/kc.xcuserdatad/UserInterfaceState.xcuserstate b/dockutil.xcodeproj/project.xcworkspace/xcuserdata/kc.xcuserdatad/UserInterfaceState.xcuserstate deleted file mode 100644 index 34a9cd5..0000000 Binary files a/dockutil.xcodeproj/project.xcworkspace/xcuserdata/kc.xcuserdatad/UserInterfaceState.xcuserstate and /dev/null differ diff --git a/dockutil.xcodeproj/project.xcworkspace/xcuserdata/kc.xcuserdatad/WorkspaceSettings.xcsettings b/dockutil.xcodeproj/project.xcworkspace/xcuserdata/kc.xcuserdatad/WorkspaceSettings.xcsettings deleted file mode 100644 index 379adbe..0000000 --- a/dockutil.xcodeproj/project.xcworkspace/xcuserdata/kc.xcuserdatad/WorkspaceSettings.xcsettings +++ /dev/null @@ -1,18 +0,0 @@ - - - - - BuildLocationStyle - UseAppPreferences - CustomBuildLocationType - RelativeToDerivedData - DerivedDataLocationStyle - Default - IssueFilterStyle - ShowActiveSchemeOnly - LiveSourceIssuesEnabled - - ShowSharedSchemesAutomaticallyEnabled - - - diff --git a/dockutil.xcodeproj/xcshareddata/xcschemes/Tests.xcscheme b/dockutil.xcodeproj/xcshareddata/xcschemes/Tests.xcscheme deleted file mode 100644 index 9cf124d..0000000 --- a/dockutil.xcodeproj/xcshareddata/xcschemes/Tests.xcscheme +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/dockutil.xcodeproj/xcshareddata/xcschemes/dockutil.xcscheme b/dockutil.xcodeproj/xcshareddata/xcschemes/dockutil.xcscheme deleted file mode 100644 index 004bf3b..0000000 --- a/dockutil.xcodeproj/xcshareddata/xcschemes/dockutil.xcscheme +++ /dev/null @@ -1,125 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/dockutil.xcodeproj/xcuserdata/kc.xcuserdatad/xcschemes/xcschememanagement.plist b/dockutil.xcodeproj/xcuserdata/kc.xcuserdatad/xcschemes/xcschememanagement.plist deleted file mode 100644 index 2f30be2..0000000 --- a/dockutil.xcodeproj/xcuserdata/kc.xcuserdatad/xcschemes/xcschememanagement.plist +++ /dev/null @@ -1,32 +0,0 @@ - - - - - SchemeUserState - - Tests.xcscheme_^#shared#^_ - - orderHint - 1 - - dockutil.xcscheme_^#shared#^_ - - orderHint - 0 - - - SuppressBuildableAutocreation - - 4AE244BF249C586900836787 - - primary - - - 4AE244D0249C5CF700836787 - - primary - - - - - diff --git a/dockutil/Info.plist b/dockutil/Info.plist deleted file mode 100644 index ccc39b8..0000000 --- a/dockutil/Info.plist +++ /dev/null @@ -1,16 +0,0 @@ - - - - - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundleShortVersionString - $(MARKETING_VERSION) - CFBundleVersion - $(CURRENT_PROJECT_VERSION) - - diff --git a/dockutil/main.swift b/dockutil/main.swift deleted file mode 100644 index dc0f661..0000000 --- a/dockutil/main.swift +++ /dev/null @@ -1,11 +0,0 @@ -// -// main.swift -// dockutil -// -// Created by Kyle Crawford on 6/18/20. -// Copyright © 2022 Kyle Crawford. All rights reserved. -// - -import Foundation - -Dockutil.main()