mirror of
https://github.com/Xinrea/bili-shadowreplay.git
synced 2025-11-25 04:22:24 +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"
|
- 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:
|
||||||
|
|||||||
20
build.ps1
20
build.ps1
@@ -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/
|
||||||
|
|||||||
Reference in New Issue
Block a user