From 365cadbb31c54a53e1282081a4f259bae7da769b Mon Sep 17 00:00:00 2001 From: Joe Mattiello Date: Wed, 1 Mar 2023 20:16:41 -0500 Subject: [PATCH] spm ignore unused resources --- Package.swift | 28 ++++++++++++++++------- Sources/SideStore/Resources/tempEnt.plist | 6 ++--- 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/Package.swift b/Package.swift index 6ec55d0f..bc162b54 100644 --- a/Package.swift +++ b/Package.swift @@ -23,17 +23,21 @@ let unsafe_flags: [String] = INHIBIT_UPSTREAM_WARNINGS ? ["-w"] : [] let unsafe_flags_cxx: [String] = INHIBIT_UPSTREAM_WARNINGS ? ["-w", "-Wno-module-import-in-extern-c"] : ["-Wno-module-import-in-extern-c"] let dependencies: [Package.Dependency] = [ - .package(url: "https://github.com/JoeMatt/Roxas", from: "1.2.2"), + + // Side Store + .package(url: "https://github.com/SideStore/AltSign", from: "1.0.2"), + .package(url: "https://github.com/SideStore/iMobileDevice.swift", from: "1.0.5"), + .package(url: "https://github.com/SideStore/SideKit", from: "0.1.0"), + + // JoeMatt + .package(url: "https://github.com/JoeMatt/Roxas", from: "1.2.2"), + + // 3rd Party .package(url: "https://github.com/johnxnguyen/Down", branch: "master"), .package(url: "https://github.com/kean/Nuke", from: "7.0.0"), .package(url: "https://github.com/kishikawakatsumi/KeychainAccess", from: "4.2.0"), .package(url: "https://github.com/microsoft/appcenter-sdk-apple", from: "4.2.0"), - .package(url: "https://github.com/SideStore/AltSign", from: "1.0.2"), - .package(url: "https://github.com/SideStore/iMobileDevice.swift", from: "1.0.5"), -// .package(path: "../iMobileDevice.swift"), - .package(url: "https://github.com/SideStore/SideKit", from: "0.1.0"), .package(url: "https://github.com/SwiftPackageIndex/SemanticVersion", from: "0.3.5"), - .package(url: "https://github.com/krzyzanowskim/OpenSSL.git", .upToNextMinor(from: "1.1.1700")), // Plugins .package(url: "https://github.com/JoeMatt/SwiftPMPlugins.git", .upToNextMinor(from: "1.0.0")), @@ -95,6 +99,13 @@ let package = Package( .product(name: "AppCenterAnalytics", package: "appcenter-sdk-apple"), .product(name: "AppCenterCrashes", package: "appcenter-sdk-apple"), ], + exclude: [ + "Resources/Info.plist", + "Resources/AltBackup.ipa", + "Resources/Info.info", + "Resources/Info.plist", + "Resources/tempEnt.plist", + ], resources: [ .process("Resources/XIB"), .process("Resources/Storyboards"), @@ -128,7 +139,9 @@ let package = Package( ], plugins: [ .plugin(name: "IntentBuilderPlugin", package: "SwiftPMPlugins"), - .plugin(name: "LoggerPlugin", package: "SwiftPMPlugins") + .plugin(name: "LoggerPlugin", package: "SwiftPMPlugins"), +// .plugin(name: "VersionatorPlugin", package: "Versionator"), + .plugin(name: "InfomaticPlugin", package: "InfomaticPlugin") ] ), @@ -175,7 +188,6 @@ let package = Package( plugins: [ .plugin(name: "IntentBuilderPlugin", package: "SwiftPMPlugins"), .plugin(name: "LoggerPlugin", package: "SwiftPMPlugins"), - .plugin(name: "VersionatorPlugin", package: "Versionator") ] ), diff --git a/Sources/SideStore/Resources/tempEnt.plist b/Sources/SideStore/Resources/tempEnt.plist index 2ae02803..a7b3b7dc 100644 --- a/Sources/SideStore/Resources/tempEnt.plist +++ b/Sources/SideStore/Resources/tempEnt.plist @@ -3,7 +3,7 @@ application-identifier - A72ZC8AJ5X.com.SideStore.AltStore + A72ZC8AJ5X.com.SideStore.SideStore aps-environment development com.apple.developer.siri @@ -12,9 +12,9 @@ A72ZC8AJ5X com.apple.security.application-groups - group.com.SideStore.AltStore + group.com.SideStore.SideStore get-task-allow - \ No newline at end of file +