From d358b44779a57c4aa0d825d718103b222d23d9df Mon Sep 17 00:00:00 2001 From: Benjamin Klum Date: Thu, 8 Feb 2024 17:40:31 +0100 Subject: [PATCH] ReaLearn v2.16.0-pre.9 --- .github/workflows/release.yml | 35 ++++++++++++++++--- Cargo.lock | 2 +- main/Cargo.toml | 2 +- main/src/infrastructure/proto/mod.rs | 2 +- main/src/infrastructure/ui/app/app_library.rs | 2 +- 5 files changed, 34 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b7dbeca5c..5e20f4451 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: os: windows-latest toolchain-suffix: x86_64-pc-windows-msvc lib-file-name: realearn.dll - extension-file-name: "" + extension-file-name: reaper_helgobox.dll target: x86_64-pc-windows-msvc use-cross: false profile: release @@ -26,7 +26,7 @@ jobs: os: windows-latest toolchain-suffix: i686-pc-windows-msvc lib-file-name: realearn.dll - extension-file-name: "" + extension-file-name: reaper_helgobox.dll target: i686-pc-windows-msvc use-cross: false profile: release-llvm-out-of-memory-fix @@ -155,7 +155,7 @@ jobs: with: name: ${{ matrix.artifact }} path: target/${{ matrix.target }}/${{ matrix.profile }}/${{ matrix.lib-file-name }} - # Upload extension (macOS only for now) + # Upload extension (macOS and Windows only for now) - name: Upload extension to artifact if: matrix.extension-file-name != '' uses: actions/upload-artifact@v2 @@ -202,7 +202,8 @@ jobs: prerelease: ${{ contains(github.ref, 'pre') }} - name: Download artifacts from build job uses: actions/download-artifact@v2 - - name: Upload windows-x86_64 release artifact + # Upload Windows x86_64 artifacts + - name: Upload windows-x86_64 release artifact 1 uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -211,7 +212,17 @@ jobs: asset_path: ./windows-x86_64/realearn.dll asset_name: realearn-windows-x86_64.dll asset_content_type: application/octet-stream - - name: Upload windows-i686 release artifact + - name: Upload windows-x86_64 release artifact 2 + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./windows-x86_64/reaper_helgobox.dll + asset_name: reaper_helgobox-windows-x86_64.dll + asset_content_type: application/octet-stream + # Upload Windows i686 artifacts + - name: Upload windows-i686 release artifact 1 uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -220,6 +231,16 @@ jobs: asset_path: ./windows-i686/realearn.dll asset_name: realearn-windows-i686.dll asset_content_type: application/octet-stream + - name: Upload windows-i686 release artifact 2 + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./windows-i686/reaper_helgobox.dll + asset_name: reaper_helgobox-windows-i686.dll + asset_content_type: application/octet-stream + # Upload macOS x86_64 artifacts - name: Upload macos-x86_64 release artifact 1 uses: actions/upload-release-asset@v1 env: @@ -238,6 +259,7 @@ jobs: asset_path: ./macos-x86_64/libreaper_helgobox.dylib asset_name: reaper_helgobox-macos-x86_64.dylib asset_content_type: application/octet-stream + # Upload macOS aarch64 artifacts - name: Upload macos-aarch64 release artifact 1 uses: actions/upload-release-asset@v1 env: @@ -256,6 +278,7 @@ jobs: asset_path: ./macos-aarch64/libreaper_helgobox.dylib asset_name: reaper_helgobox-macos-aarch64.dylib asset_content_type: application/octet-stream + # Upload Linux x86_64 artifacts - name: Upload linux-x86_64 release artifact uses: actions/upload-release-asset@v1 env: @@ -265,6 +288,7 @@ jobs: asset_path: ./linux-x86_64/librealearn.so asset_name: realearn-linux-x86_64.so asset_content_type: application/octet-stream + # Upload Linux aarch64 artifacts # - name: Upload linux-aarch64 release artifact # uses: actions/upload-release-asset@v1 # env: @@ -274,6 +298,7 @@ jobs: # asset_path: ./linux-aarch64/librealearn.so # asset_name: realearn-linux-aarch64.so # asset_content_type: application/octet-stream + # Upload Linux armv7 artifacts # - name: Upload linux-armv7 release artifact # uses: actions/upload-release-asset@v1 # env: diff --git a/Cargo.lock b/Cargo.lock index 14bc27949..e7aa8a678 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4842,7 +4842,7 @@ checksum = "be105c72a1e6a5a1198acee3d5b506a15676b74a02ecd78060042a447f408d94" [[package]] name = "realearn" -version = "2.16.0-pre.8" +version = "2.16.0-pre.9" dependencies = [ "anyhow", "approx", diff --git a/main/Cargo.toml b/main/Cargo.toml index d9bb84196..665a544b0 100644 --- a/main/Cargo.toml +++ b/main/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "realearn" -version = "2.16.0-pre.8" +version = "2.16.0-pre.9" authors = ["Benjamin Klum "] edition = "2021" build = "build.rs" diff --git a/main/src/infrastructure/proto/mod.rs b/main/src/infrastructure/proto/mod.rs index 25afafac4..fde0c737c 100644 --- a/main/src/infrastructure/proto/mod.rs +++ b/main/src/infrastructure/proto/mod.rs @@ -40,4 +40,4 @@ pub use initial_playtime_events::*; /// It's important to get this right in order to get good error messages from customers. Knowing /// that they just have an incompatible version mix (e.g. due to manual installing) makes it /// trivial to respond to bug reports. -pub const HOST_API_VERSION: &str = "1.0.0"; +pub const HOST_API_VERSION: &str = "2.0.0"; diff --git a/main/src/infrastructure/ui/app/app_library.rs b/main/src/infrastructure/ui/app/app_library.rs index 838dff957..baf289318 100644 --- a/main/src/infrastructure/ui/app/app_library.rs +++ b/main/src/infrastructure/ui/app/app_library.rs @@ -684,7 +684,7 @@ fn to_status(err: anyhow::Error) -> Status { /// The minimum version of the app API that the host (ReaLearn) requires to properly /// communicates with it. Keep this up-to-date! -pub const MIN_APP_API_VERSION: Version = Version::new(1, 0, 0); +pub const MIN_APP_API_VERSION: Version = Version::new(2, 0, 0); #[cfg(not(feature = "playtime"))] fn playtime_not_available() -> Result<(), Status> {