Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kingslay committed Nov 13, 2023
1 parent 82b639c commit 0d8a7f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ 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的时候,依赖关系出错的问题
Expand Down
3 changes: 3 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ 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的时候,依赖关系出错的问题
Expand Down

0 comments on commit 0d8a7f4

Please sign in to comment.