ci/cd: update local build script

This commit is contained in:
Xinrea
2025-03-31 01:52:07 +08:00
parent 7d9428de14
commit 3bb215ae94
2 changed files with 21 additions and 4 deletions

View File

@@ -19,9 +19,6 @@ jobs:
- platform: "windows-latest" - platform: "windows-latest"
args: "--features cuda" args: "--features cuda"
features: "cuda" features: "cuda"
- platform: "windows-latest"
args: ""
features: "none"
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
steps: steps:

View File

@@ -3,6 +3,26 @@
yarn tauri build yarn tauri build
yarn tauri build --debug yarn tauri build --debug
# rename the builds, "bili-shadowreplay" to "bili-shadowreplay-cpu"
Get-ChildItem -Path ./src-tauri/target/release/bundle/msi/ | ForEach-Object {
$newName = $_.Name -replace 'bili-shadowreplay', 'bili-shadowreplay-cpu'
Rename-Item -Path $_.FullName -NewName $newName
}
Get-ChildItem -Path ./src-tauri/target/release/bundle/nsis/ | ForEach-Object {
$newName = $_.Name -replace 'bili-shadowreplay', 'bili-shadowreplay-cpu'
Rename-Item -Path $_.FullName -NewName $newName
}
# rename the debug builds, "bili-shadowreplay" to "bili-shadowreplay-cpu"
Get-ChildItem -Path ./src-tauri/target/debug/bundle/msi/ | ForEach-Object {
$newName = $_.Name -replace 'bili-shadowreplay', 'bili-shadowreplay-cpu'
Rename-Item -Path $_.FullName -NewName $newName
}
Get-ChildItem -Path ./src-tauri/target/debug/bundle/nsis/ | ForEach-Object {
$newName = $_.Name -replace 'bili-shadowreplay', 'bili-shadowreplay-cpu'
Rename-Item -Path $_.FullName -NewName $newName
}
# move the build to the correct location # move the build to the correct location
Move-Item ./src-tauri/target/release/bundle/msi/* ./src-tauri/target/ Move-Item ./src-tauri/target/release/bundle/msi/* ./src-tauri/target/
Move-Item ./src-tauri/target/release/bundle/nsis/* ./src-tauri/target/ Move-Item ./src-tauri/target/release/bundle/nsis/* ./src-tauri/target/
@@ -19,4 +39,4 @@ Get-ChildItem -Path ./src-tauri/target/debug/bundle/nsis/ | ForEach-Object {
# move the debug builds to the correct location # move the debug builds to the correct location
Move-Item ./src-tauri/target/debug/bundle/msi/* ./src-tauri/target/ Move-Item ./src-tauri/target/debug/bundle/msi/* ./src-tauri/target/
Move-Item ./src-tauri/target/debug/bundle/nsis/* ./src-tauri/target/ Move-Item ./src-tauri/target/debug/bundle/nsis/* ./src-tauri/target/