mirror of
https://github.com/Xinrea/bili-shadowreplay.git
synced 2025-11-24 20:15:34 +08:00
ci/cd: update local build script
This commit is contained in:
3
.github/workflows/main.yml
vendored
3
.github/workflows/main.yml
vendored
@@ -19,9 +19,6 @@ jobs:
|
||||
- platform: "windows-latest"
|
||||
args: "--features cuda"
|
||||
features: "cuda"
|
||||
- platform: "windows-latest"
|
||||
args: ""
|
||||
features: "none"
|
||||
|
||||
runs-on: ${{ matrix.platform }}
|
||||
steps:
|
||||
|
||||
22
build.ps1
22
build.ps1
@@ -3,6 +3,26 @@
|
||||
yarn tauri build
|
||||
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-Item ./src-tauri/target/release/bundle/msi/* ./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-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/
|
||||
|
||||
Reference in New Issue
Block a user