mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
Use em_proxy and minimuxer from gh release
This commit is contained in:
@@ -190,10 +190,16 @@ let package = Package(
|
||||
dependencies: ["em_proxy"]
|
||||
),
|
||||
|
||||
.binaryTarget(
|
||||
name: "em_proxy",
|
||||
path: "Dependencies/em_proxy/em_proxy.xcframework.zip"
|
||||
),
|
||||
// .binaryTarget(
|
||||
// name: "em_proxy",
|
||||
// path: "Dependencies/em_proxy/em_proxy.xcframework.zip"
|
||||
// ),
|
||||
|
||||
.binaryTarget(
|
||||
name: "em_proxy",
|
||||
url: "https://github.com/SideStore/em_proxy/releases/download/build/em_proxy.xcframework.zip",
|
||||
checksum: "8c745d9fdf121ab33b1007394c283d1a1a74a30efa0a52b22c29b766ea7d6a8e"
|
||||
),
|
||||
|
||||
.testTarget(
|
||||
name: "EmotionalDamageTests",
|
||||
@@ -228,10 +234,16 @@ let package = Package(
|
||||
]
|
||||
),
|
||||
|
||||
.binaryTarget(
|
||||
name: "minimuxer",
|
||||
path: "Dependencies/minimuxer/minimuxer.xcframework.zip"
|
||||
),
|
||||
// .binaryTarget(
|
||||
// name: "minimuxer",
|
||||
// path: "Dependencies/minimuxer/minimuxer.xcframework.zip"
|
||||
// ),
|
||||
|
||||
.binaryTarget(
|
||||
name: "minimuxer",
|
||||
url: "https://github.com/SideStore/minimuxer/releases/download/build/minimuxer.xcframework.zip",
|
||||
checksum: "7a5423ad301dacc664ee5141942781f69753346bae148699ea21b1debdc0d3b5"
|
||||
),
|
||||
|
||||
.testTarget(
|
||||
name: "MiniMuxerTests",
|
||||
|
||||
@@ -33,7 +33,7 @@ struct CargoPlugin: BuildToolPlugin {
|
||||
// Manually look for configuration files, to avoid issues when the plugin does not execute our tool from the
|
||||
// package source directory.
|
||||
if let configuration = packageDirectory.firstConfigurationFileInParentDirectories() {
|
||||
arguments.append(contentsOf: ["--config", "\(configuration.string)"])
|
||||
arguments.append(contentsOf: ["--manifest-path", "\(configuration.string)"])
|
||||
}
|
||||
arguments += inputFiles.map(\.string)
|
||||
|
||||
@@ -57,7 +57,7 @@ import XcodeProjectPlugin
|
||||
extension CargoPlugin: XcodeBuildToolPlugin {
|
||||
func createBuildCommands(context: XcodePluginContext, target: XcodeTarget) throws -> [Command] {
|
||||
let inputFilePaths = target.inputFiles
|
||||
.filter { $0.type == .source && $0.path.extension == "swift" }
|
||||
.filter { $0.type == .source && $0.path.extension == "toml" }
|
||||
.map(\.path)
|
||||
return createBuildCommands(
|
||||
inputFiles: inputFilePaths,
|
||||
@@ -80,7 +80,7 @@ extension Path {
|
||||
///
|
||||
/// - returns: Path to the configuration file, or nil if one cannot be found.
|
||||
func firstConfigurationFileInParentDirectories() -> Path? {
|
||||
let defaultConfigurationFileName = ".swiftlint.yml"
|
||||
let defaultConfigurationFileName = "Cargo.toml"
|
||||
let proposedDirectory = sequence(
|
||||
first: self,
|
||||
next: { path in
|
||||
|
||||
Reference in New Issue
Block a user