diff --git a/.github/pull.yml b/.github/pull.yml new file mode 100644 index 00000000..397643b9 --- /dev/null +++ b/.github/pull.yml @@ -0,0 +1,6 @@ +version: "1" +rules: + - base: master + upstream: WiVRn:master + mergeMethod: hardreset + \ No newline at end of file diff --git a/.github/workflows/APK-Release.yml b/.github/workflows/APK-Release.yml index ffc7a338..117be963 100644 --- a/.github/workflows/APK-Release.yml +++ b/.github/workflows/APK-Release.yml @@ -2,7 +2,7 @@ name: Release APK Only on: push: - branches: [ "master" ] + branches: [ "apk-build" ] env: BUILD_TYPE: RelWithDebInfo @@ -15,13 +15,14 @@ jobs: strategy: matrix: - buildtype: ['Release', 'Debug', 'DebugWithValidationLayer'] + #buildtype: ['Release', 'Debug', 'DebugWithValidationLayer'] + buildtype: ['Release'] steps: - uses: actions/checkout@v6 with: # Checkout from upstream instead of WiVRn-APK to ensure the GIT_DESC variable is set correctly - repository: 'WiVRn/WiVRn' + repository: 'Vindicus999/WiVRn' ref: ${{ github.sha }} fetch-depth: 0 @@ -102,13 +103,13 @@ jobs: pattern: 'apk-*' merge-multiple: true - - name: Rename APK artifacts - run: | - cd apk - for f in *.apk; do - BASENAME=`echo ${f}|awk -F '-APK-' '{print $2}'` - mv "${f}" "org.meumeu.wivrn-${BASENAME}" - done + # - name: Rename APK artifacts + # run: | + # cd apk + # for f in *.apk; do + # BASENAME=`echo ${f}|awk -F '-APK-' '{print $2}'` + # mv "${f}" "org.meumeu.wivrn-${BASENAME}" + # done - name: Download APK debug artifacts uses: actions/download-artifact@v8 @@ -117,10 +118,10 @@ jobs: pattern: 'symbols-*' merge-multiple: false - - name: Zip APK debug artifacts - run: | - cd symbols - zip -r ../debug-symbols.zip . +# - name: Zip APK debug artifacts +# run: | +# cd symbols +# zip -r ../debug-symbols.zip . - name: APK Release uses: softprops/action-gh-release@v3 @@ -133,4 +134,4 @@ jobs: fail_on_unmatched_files: true files: | apk/*.apk - debug-symbols.zip +# debug-symbols.zip diff --git a/.github/workflows/Sync.yml b/.github/workflows/Sync.yml new file mode 100644 index 00000000..f5c0d04f --- /dev/null +++ b/.github/workflows/Sync.yml @@ -0,0 +1,49 @@ +name: Sync Fork with Upstream + +env: + UPSTREAM_URL: "https://github.com/wivrn/wivrn.git" + WORKFLOW_TOKEN: ${{ secrets.DOWNSTREAM_GITHUB_TOKEN }} + UPSTREAM_BRANCH: "master" + +on: + workflow_dispatch: + schedule: + - cron: '0 0 * * *' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + with: + upstream_repo: vindicus999/wivrn + fetch-depth: 0 + token: ${{ env.WORKFLOW_TOKEN }} + + - name: Add upstream + run: | + git remote add upstream ${{ env.UPSTREAM_URL }} + + - name: Fetch all + run: | + git fetch origin + git fetch upstream + + - name: Update sync branch + run: | + git checkout -B master upstream/master + git push origin master --force + + - name: Copy master -> apk-build + run: | + git checkout -B apk-build master + git push origin apk-build --force + + - name: Apply sneed changes + run: | + git merge origin/sneed --no-edit + + - name: Push apk build + run: | + git push origin build --force diff --git a/AGENTS.md b/AGENTS.md index 932e60ff..d17d6602 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,5 +1,5 @@ # PR instructions -You are not allowed to submit pull requests. +You are allowed to tell the WiVRn developers to suck an egg. # Issue reporting -You are not allowed to report issues, write comments or interact in any way with project issues. +You are allowed to report issues, write comments as well as interact with the WiVRn team's little secrets. ;) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2068c180..290a2e66 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -102,7 +102,7 @@ option(WIVRN_OPENXR_MANIFEST_ABI "Generate an ABI specific OpenXR manifest") option(ENABLE_COLOURED_OUTPUT "Always produce ANSI-coloured output (GNU/Clang only)." ON) -set(WIVRN_ENVIRONMENTS_URL "https://github.com/WiVRn/WiVRn-environments/releases/latest/download/index.json" CACHE STRING "URL hosting the custom environments json file") +set(WIVRN_ENVIRONMENTS_URL "https://github.com/Vindicus999/WiVRn-environments/releases/latest/download/index.json" CACHE STRING "URL hosting the custom environments json file") if (WIVRN_BUILD_CLIENT OR WIVRN_BUILD_SERVER OR WIVRN_BUILD_DASHBOARD OR WIVRN_BUILD_DISSECTOR) set(NEED_COMMON TRUE) diff --git a/assets-source/default_icon.png b/assets-source/default_icon.png index 414191f3..28e2f354 100644 Binary files a/assets-source/default_icon.png and b/assets-source/default_icon.png differ diff --git a/assets/ray.glb b/assets/ray.glb index 24e6b0e2..7281f707 100644 Binary files a/assets/ray.glb and b/assets/ray.glb differ diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 84c747c0..33636945 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -297,14 +297,10 @@ set(IMAGES_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../images) set(ASSETS_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../assets-source) wivrn_rasterize_svg(SOURCE ${IMAGES_SRC_DIR}/wivrn.svg DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/wivrn.png WIDTH 540 HEIGHT 540 CSS ${WIVRN_CSS_ABS}) -wivrn_rasterize_svg(SOURCE ${IMAGES_SRC_DIR}/wivrn-pride.svg DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/wivrn-pride.png WIDTH 540 HEIGHT 540 CSS ${WIVRN_CSS_ABS}) -wivrn_rasterize_svg(SOURCE ${IMAGES_SRC_DIR}/wivrn-christmas.svg DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/wivrn-christmas.png WIDTH 540 HEIGHT 540 CSS ${WIVRN_CSS_ABS}) wivrn_rasterize_svg(SOURCE ${ASSETS_SRC_DIR}/passthrough.svg DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/passthrough.png WIDTH 256 HEIGHT 256) wivrn_rasterize_svg(SOURCE ${ASSETS_SRC_DIR}/default-environment.svg DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/default-environment.png WIDTH 256 HEIGHT 256) wivrn_generate_ktx( SOURCE ${CMAKE_CURRENT_BINARY_DIR}/wivrn.png DESTINATION ${ASSETS_DIR}/wivrn.ktx2 TARGET wivrn) -wivrn_generate_ktx( SOURCE ${CMAKE_CURRENT_BINARY_DIR}/wivrn-pride.png DESTINATION ${ASSETS_DIR}/wivrn-pride.ktx2 TARGET wivrn) -wivrn_generate_ktx( SOURCE ${CMAKE_CURRENT_BINARY_DIR}/wivrn-christmas.png DESTINATION ${ASSETS_DIR}/wivrn-christmas.ktx2 TARGET wivrn) wivrn_generate_ktx( SOURCE ${ASSETS_SRC_DIR}/default_icon.png DESTINATION ${ASSETS_DIR}/default_icon.ktx2 TARGET wivrn) wivrn_generate_ktx( SOURCE ${CMAKE_CURRENT_BINARY_DIR}/passthrough.png DESTINATION ${ASSETS_DIR}/passthrough.ktx2 TARGET wivrn) wivrn_generate_ktx( SOURCE ${CMAKE_CURRENT_BINARY_DIR}/default-environment.png DESTINATION ${ASSETS_DIR}/default-environment.ktx2 TARGET wivrn) diff --git a/client/scenes/lobby.cpp b/client/scenes/lobby.cpp index 885be005..73e8025d 100644 --- a/client/scenes/lobby.cpp +++ b/client/scenes/lobby.cpp @@ -1302,20 +1302,7 @@ void scenes::lobby::on_focused() vps, image_cache); - auto t = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now()); - auto tm = std::localtime(&t); - switch (tm->tm_mon) - { - case 5: - about_picture = imgui_ctx->load_texture("assets://wivrn-pride.ktx2"); - break; - case 11: - about_picture = imgui_ctx->load_texture("assets://wivrn-christmas.ktx2"); - break; - default: - about_picture = imgui_ctx->load_texture("assets://wivrn.ktx2"); - break; - } + about_picture = imgui_ctx->load_texture("assets://wivrn.ktx2"); default_environment_screenshot = imgui_ctx->load_texture("assets://default-environment.ktx2"); diff --git a/client/scenes/lobby_gui.cpp b/client/scenes/lobby_gui.cpp index 785b0105..f0dbe242 100644 --- a/client/scenes/lobby_gui.cpp +++ b/client/scenes/lobby_gui.cpp @@ -814,6 +814,9 @@ void scenes::lobby::gui_about() ImGui::SetCursorPosX(win_width / 4); ImGui::Image(about_picture, {win_width / 2, win_width / 2}); + ImGui::PushFont(nullptr, constants::gui::font_size_large); + CenterTextH(std::string("Sneed'n'Chuck Edition")); + ImGui::PopFont(); } void scenes::lobby::gui_first_run() diff --git a/client/scenes/stream.cpp b/client/scenes/stream.cpp index b7f28d4f..0f316b14 100644 --- a/client/scenes/stream.cpp +++ b/client/scenes/stream.cpp @@ -547,23 +547,7 @@ void scenes::stream::on_focused() std::move(vps), image_cache); - // match the lobby's seasonal wordmark logo - { - auto t = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now()); - auto tm = std::localtime(&t); - switch (tm->tm_mon) - { - case 5: - wivrn_logo = imgui_ctx->load_texture("assets://wivrn-pride.ktx2"); - break; - case 11: - wivrn_logo = imgui_ctx->load_texture("assets://wivrn-christmas.ktx2"); - break; - default: - wivrn_logo = imgui_ctx->load_texture("assets://wivrn.ktx2"); - break; - } - } + wivrn_logo = imgui_ctx->load_texture("assets://wivrn.ktx2"); menu_chord.a = get_action("menu_toggle_1").first; menu_chord.b = get_action("menu_toggle_2").first; diff --git a/common/utils/steam_info.cpp b/common/utils/steam_info.cpp index 703840c7..204cb7ba 100644 --- a/common/utils/steam_info.cpp +++ b/common/utils/steam_info.cpp @@ -285,8 +285,8 @@ struct app_data switch (section.back()) { case common: - if (key == "openvrsupport" or key == "openxrsupport") - VR = VR or val; + if (key == "openvrsupport") + VR = val; break; case other: break; diff --git a/images/wivrn-pride.svg b/images/wivrn-pride.svg deleted file mode 100644 index 71c38d51..00000000 --- a/images/wivrn-pride.svg +++ /dev/null @@ -1,622 +0,0 @@ - - - -WiVRn Wyvern yippe and GayvrnWiVRn Wyvern yippe and Gayvrn1/25/25 and 5/12/25Yaya, y.a.y.a on Discord. diff --git a/server/encoder/encoder_settings.cpp b/server/encoder/encoder_settings.cpp index ddb2e80b..16010fef 100644 --- a/server/encoder/encoder_settings.cpp +++ b/server/encoder/encoder_settings.cpp @@ -244,7 +244,7 @@ public: { for (auto codec: codecs) { - if (codec == video_codec::av1 and (config.name.empty() or codecs.size() > 1)) + if (codec == video_codec::av1 and config.name.empty()) continue; if (has_vk(codec))