This repository has been archived by the owner on Nov 23, 2024. It is now read-only.
forked from Ferry-200/coriander_player
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
72 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# 创建所需的目录 | ||
$buildTmpDir = "build\tmp" | ||
$buildDestDir = "build\windows\x64\runner\Release\BASS" | ||
|
||
New-Item -Path $buildTmpDir -ItemType Directory -Force | ||
New-Item -Path $buildDestDir -ItemType Directory -Force | ||
|
||
# 定义要下载的文件及其URL | ||
$files = @( | ||
"https://www.un4seen.com/files/bass24.zip", | ||
"https://www.un4seen.com/files/bassape24.zip", | ||
"https://www.un4seen.com/files/bassdsd24.zip", | ||
"https://www.un4seen.com/files/bassflac24.zip", | ||
"https://www.un4seen.com/files/bassmidi24.zip", | ||
"https://www.un4seen.com/files/bassopus24.zip", | ||
"https://www.un4seen.com/files/basswv24.zip" | ||
) | ||
|
||
# 下载文件并解压 | ||
foreach ($fileUrl in $files) { | ||
$fileName = Split-Path $fileUrl -Leaf | ||
$filePath = Join-Path -Path $buildTmpDir -ChildPath $fileName | ||
|
||
# 下载文件 | ||
Invoke-WebRequest -Uri $fileUrl -OutFile $filePath | ||
|
||
# 解压文件 | ||
Expand-Archive -Path $filePath -DestinationPath $buildTmpDir -Force | ||
} | ||
|
||
# 移动 DLL 文件到目标目录 | ||
$sourcePath = Join-Path -Path $buildTmpDir -ChildPath "x64\*" | ||
Move-Item -Path $sourcePath -Destination $buildDestDir -Force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters