diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 33573f9..a6e46c6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,9 +19,6 @@ jobs: - platform: "windows-latest" args: "--features cuda" features: "cuda" - - platform: "windows-latest" - args: "" - features: "none" runs-on: ${{ matrix.platform }} steps: diff --git a/build.ps1 b/build.ps1 index cf57cf9..1128e19 100644 --- a/build.ps1 +++ b/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/ \ No newline at end of file +Move-Item ./src-tauri/target/debug/bundle/nsis/* ./src-tauri/target/