Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
kingslay committed Nov 13, 2023
1 parent 2cb03be commit 82b639c
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -35,17 +35,11 @@ let package = Package(
]
)
var ffmpegKitPath = FileManager.default.currentDirectoryPath + "/FFmpegKit"
if !FileManager.default.fileExists(atPath: ffmpegKitPath) {
ffmpegKitPath = FileManager.default.currentDirectoryPath + "/KSPlayer/FFmpegKit"
}
if !FileManager.default.fileExists(atPath: ffmpegKitPath), let url = URL(string: #file) {
let path = url.deletingLastPathComponent().path
// 解决用xcode引入spm的时候,依赖关系出错的问题
if !path.contains("/checkouts/") {
ffmpegKitPath = path + "/FFmpegKit"
if !FileManager.default.fileExists(atPath: ffmpegKitPath) {
ffmpegKitPath = path + "/KSPlayer/FFmpegKit"
}
}
}

6 changes: 0 additions & 6 deletions [email protected]
Original file line number Diff line number Diff line change
@@ -36,17 +36,11 @@ let package = Package(
)

var ffmpegKitPath = FileManager.default.currentDirectoryPath + "/FFmpegKit"
if !FileManager.default.fileExists(atPath: ffmpegKitPath) {
ffmpegKitPath = FileManager.default.currentDirectoryPath + "/KSPlayer/FFmpegKit"
}
if !FileManager.default.fileExists(atPath: ffmpegKitPath), let url = URL(string: #file) {
let path = url.deletingLastPathComponent().path
// 解决用xcode引入spm的时候,依赖关系出错的问题
if !path.contains("/checkouts/") {
ffmpegKitPath = path + "/FFmpegKit"
if !FileManager.default.fileExists(atPath: ffmpegKitPath) {
ffmpegKitPath = path + "/KSPlayer/FFmpegKit"
}
}
}

0 comments on commit 82b639c

Please sign in to comment.