diff --git a/Xcodes.xcodeproj/project.pbxproj b/Xcodes.xcodeproj/project.pbxproj index 40376b4..787db19 100644 --- a/Xcodes.xcodeproj/project.pbxproj +++ b/Xcodes.xcodeproj/project.pbxproj @@ -188,6 +188,7 @@ CAD2E7B92449575100113D76 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; CAFBDB902598FE80003DCC5A /* SelectedXcode.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SelectedXcode.swift; sourceTree = ""; }; CAFBDB942598FE96003DCC5A /* FocusedValues.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FocusedValues.swift; sourceTree = ""; }; + CAFBDBA525990C76003DCC5A /* SimpleXPCApp.LICENSE */ = {isa = PBXFileReference; lastKnownFileType = text; path = SimpleXPCApp.LICENSE; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -261,6 +262,7 @@ CA9FF8C22595988B00E47BAF /* Info.plist */, CA9FF8C32595989800E47BAF /* launchd.plist */, CA9FF9052595A28400E47BAF /* com.robotsandpencils.XcodesApp.HelperTest.entitlements */, + CAFBDBA525990C76003DCC5A /* SimpleXPCApp.LICENSE */, ); path = com.robotsandpencils.XcodesApp.Helper; sourceTree = ""; diff --git a/Xcodes/AcknowledgementsGenerator/Sources/AcknowledgementsGenerator/main.swift b/Xcodes/AcknowledgementsGenerator/Sources/AcknowledgementsGenerator/main.swift index 9472720..2461438 100644 --- a/Xcodes/AcknowledgementsGenerator/Sources/AcknowledgementsGenerator/main.swift +++ b/Xcodes/AcknowledgementsGenerator/Sources/AcknowledgementsGenerator/main.swift @@ -73,7 +73,7 @@ guard let currentProject = projects.first(where: ({ $0.workspacePath == projectP let checkouts = currentProject.url.deletingLastPathComponent().appendingPathComponent("SourcePackages/checkouts") let checkedDependencies = try fileManager.contentsOfDirectory(at: checkouts, includingPropertiesForKeys: nil, options: .skipsHiddenFiles) -let licences: [Xcode.Project.License] = checkedDependencies.compactMap { +let spmLicences: [Xcode.Project.License] = checkedDependencies.compactMap { let supportedFilenames = ["LICENSE", "LICENSE.txt", "LICENSE.md"] for filename in supportedFilenames { let licenseURL = $0.appendingPathComponent(filename) @@ -84,6 +84,19 @@ let licences: [Xcode.Project.License] = checkedDependencies.compactMap { return nil } +var manualLicenses: [Xcode.Project.License] = [] +let enumerator = fileManager.enumerator(at: projectURL.deletingLastPathComponent(), includingPropertiesForKeys: [URLResourceKey.nameKey], options: .skipsHiddenFiles)! +for case let url as URL in enumerator where url.lastPathComponent.hasSuffix(".LICENSE") { + manualLicenses.append( + Xcode.Project.License( + url: url, + name: url.lastPathComponent.replacingOccurrences(of: ".LICENSE", with: "") + ) + ) +} + +let licences = spmLicences + manualLicenses + let acknowledgementsAttributedString = NSMutableAttributedString() for licence in licences { acknowledgementsAttributedString.append(NSAttributedString(string: licence.name + "\n\n", attributes: [.font: NSFont.preferredFont(forTextStyle: .title2)])) diff --git a/Xcodes/AcknowledgementsGenerator/LICENSE b/Xcodes/AcknowledgementsGenerator/spm-licenses.LICENSE similarity index 96% rename from Xcodes/AcknowledgementsGenerator/LICENSE rename to Xcodes/AcknowledgementsGenerator/spm-licenses.LICENSE index 3736aa2..fa1d9f6 100644 --- a/Xcodes/AcknowledgementsGenerator/LICENSE +++ b/Xcodes/AcknowledgementsGenerator/spm-licenses.LICENSE @@ -1,7 +1,6 @@ MIT License Copyright (c) 2019 MacPaw -Copyright (c) 2020 Robots and Pencils Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/Xcodes/Backend/HelperInstaller.swift b/Xcodes/Backend/HelperInstaller.swift index e6d6bbb..eb997d9 100644 --- a/Xcodes/Backend/HelperInstaller.swift +++ b/Xcodes/Backend/HelperInstaller.swift @@ -1,26 +1,4 @@ // From https://github.com/securing/SimpleXPCApp/ -// MIT License -// -// Copyright (c) 2020 securing -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. -// Installer implemented basing on https://github.com/erikberglund/SwiftPrivilegedHelper import Foundation import ServiceManagement diff --git a/Xcodes/Resources/Licenses.rtf b/Xcodes/Resources/Licenses.rtf index f140dc0..569081d 100644 --- a/Xcodes/Resources/Licenses.rtf +++ b/Xcodes/Resources/Licenses.rtf @@ -419,4 +419,58 @@ OTHER DEALINGS IN THE SOFTWARE.\ For more information, please refer to <>\ \ \ + +\fs34 spm-licenses\ +\ + +\fs26 MIT License\ +\ +Copyright (c) 2019 MacPaw\ +\ +Permission is hereby granted, free of charge, to any person obtaining a copy\ +of this software and associated documentation files (the "Software"), to deal\ +in the Software without restriction, including without limitation the rights\ +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ +copies of the Software, and to permit persons to whom the Software is\ +furnished to do so, subject to the following conditions:\ +\ +The above copyright notice and this permission notice shall be included in all\ +copies or substantial portions of the Software.\ +\ +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\ +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\ +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\ +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\ +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\ +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\ +SOFTWARE.\ +\ +\ + +\fs34 SimpleXPCApp\ +\ + +\fs26 MIT License\ +\ +Copyright (c) 2020 securing\ +\ +Permission is hereby granted, free of charge, to any person obtaining a copy\ +of this software and associated documentation files (the "Software"), to deal\ +in the Software without restriction, including without limitation the rights\ +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ +copies of the Software, and to permit persons to whom the Software is\ +furnished to do so, subject to the following conditions:\ +\ +The above copyright notice and this permission notice shall be included in all\ +copies or substantial portions of the Software.\ +\ +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\ +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\ +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\ +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\ +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\ +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\ +SOFTWARE.\ +\ +\ } \ No newline at end of file diff --git a/com.robotsandpencils.XcodesApp.Helper/AuditTokenHack.h b/com.robotsandpencils.XcodesApp.Helper/AuditTokenHack.h index ae723f4..bc84f6d 100644 --- a/com.robotsandpencils.XcodesApp.Helper/AuditTokenHack.h +++ b/com.robotsandpencils.XcodesApp.Helper/AuditTokenHack.h @@ -1,25 +1,4 @@ // From https://github.com/securing/SimpleXPCApp/ -// MIT License -// -// Copyright (c) 2020 securing -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. #import diff --git a/com.robotsandpencils.XcodesApp.Helper/AuditTokenHack.m b/com.robotsandpencils.XcodesApp.Helper/AuditTokenHack.m index 669677a..293c9e0 100644 --- a/com.robotsandpencils.XcodesApp.Helper/AuditTokenHack.m +++ b/com.robotsandpencils.XcodesApp.Helper/AuditTokenHack.m @@ -1,25 +1,4 @@ // From https://github.com/securing/SimpleXPCApp/ -// MIT License -// -// Copyright (c) 2020 securing -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. #import "AuditTokenHack.h" diff --git a/com.robotsandpencils.XcodesApp.Helper/ConnectionVerifier.swift b/com.robotsandpencils.XcodesApp.Helper/ConnectionVerifier.swift index 02ba430..6ad6af6 100644 --- a/com.robotsandpencils.XcodesApp.Helper/ConnectionVerifier.swift +++ b/com.robotsandpencils.XcodesApp.Helper/ConnectionVerifier.swift @@ -1,25 +1,4 @@ // From https://github.com/securing/SimpleXPCApp/ -// MIT License -// -// Copyright (c) 2020 securing -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. import Foundation diff --git a/com.robotsandpencils.XcodesApp.Helper/SimpleXPCApp.LICENSE b/com.robotsandpencils.XcodesApp.Helper/SimpleXPCApp.LICENSE new file mode 100644 index 0000000..332120d --- /dev/null +++ b/com.robotsandpencils.XcodesApp.Helper/SimpleXPCApp.LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 securing + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE.