diff --git a/scripts/steam/2-move-build-steam.sh b/scripts/steam/2-move-build-steam.sh index 1ce4cd7e..15b954f2 100644 --- a/scripts/steam/2-move-build-steam.sh +++ b/scripts/steam/2-move-build-steam.sh @@ -3,8 +3,16 @@ ### DO NOT RUN MANUALLY # Copy files to Win64 Depot folder +if [ -f src-core/target/release/OyasumiVR.exe ]; then cp src-core/target/release/OyasumiVR.exe SteamSDK/sdk/tools/ContentBuilder/content/Win64/ cp src-core/target/release/flags.toml SteamSDK/sdk/tools/ContentBuilder/content/Win64/ cp src-core/target/release/openvr_api.dll SteamSDK/sdk/tools/ContentBuilder/content/Win64/ cp src-core/target/release/steam_api64.dll SteamSDK/sdk/tools/ContentBuilder/content/Win64/ cp -r src-core/target/release/resources/ SteamSDK/sdk/tools/ContentBuilder/content/Win64/ +elif [ -f src-core/target/debug/OyasumiVR.exe ]; then +cp src-core/target/debug/OyasumiVR.exe SteamSDK/sdk/tools/ContentBuilder/content/Win64/ +cp src-core/target/debug/flags.toml SteamSDK/sdk/tools/ContentBuilder/content/Win64/ +cp src-core/target/debug/openvr_api.dll SteamSDK/sdk/tools/ContentBuilder/content/Win64/ +cp src-core/target/debug/steam_api64.dll SteamSDK/sdk/tools/ContentBuilder/content/Win64/ +cp -r src-core/target/debug/resources/ SteamSDK/sdk/tools/ContentBuilder/content/Win64/ +fi diff --git a/scripts/steam/3-move-build-steam-cn.sh b/scripts/steam/3-move-build-steam-cn.sh index d29377a4..bf9fdf14 100644 --- a/scripts/steam/3-move-build-steam-cn.sh +++ b/scripts/steam/3-move-build-steam-cn.sh @@ -3,8 +3,16 @@ ### DO NOT RUN MANUALLY # Copy files to Win64_CN Depot folder +if [ -f src-core/target/release/OyasumiVR.exe ]; then cp src-core/target/release/OyasumiVR.exe SteamSDK/sdk/tools/ContentBuilder/content/Win64_CN/ cp src-core/target/release/flags.toml SteamSDK/sdk/tools/ContentBuilder/content/Win64_CN/ cp src-core/target/release/openvr_api.dll SteamSDK/sdk/tools/ContentBuilder/content/Win64_CN/ cp src-core/target/release/steam_api64.dll SteamSDK/sdk/tools/ContentBuilder/content/Win64_CN/ cp -r src-core/target/release/resources/ SteamSDK/sdk/tools/ContentBuilder/content/Win64_CN/ +elif [ -f src-core/target/debug/OyasumiVR.exe ]; then +cp src-core/target/debug/OyasumiVR.exe SteamSDK/sdk/tools/ContentBuilder/content/Win64_CN/ +cp src-core/target/debug/flags.toml SteamSDK/sdk/tools/ContentBuilder/content/Win64_CN/ +cp src-core/target/debug/openvr_api.dll SteamSDK/sdk/tools/ContentBuilder/content/Win64_CN/ +cp src-core/target/debug/steam_api64.dll SteamSDK/sdk/tools/ContentBuilder/content/Win64_CN/ +cp -r src-core/target/debug/resources/ SteamSDK/sdk/tools/ContentBuilder/content/Win64_CN/ +fi diff --git a/src-core/src/main.rs b/src-core/src/main.rs index ac1e600c..fb4b0682 100644 --- a/src-core/src/main.rs +++ b/src-core/src/main.rs @@ -224,7 +224,7 @@ fn configure_tauri_plugin_log() -> TauriPlugin { #[cfg(debug_assertions)] const LOG_LEVEL: LevelFilter = LevelFilter::Info; #[cfg(not(debug_assertions))] - const LOG_TARGETS: [LogTarget; 3] = [LogTarget::LogDir, LogTarget::Stdout]; + const LOG_TARGETS: [LogTarget; 2] = [LogTarget::LogDir, LogTarget::Stdout]; #[cfg(not(debug_assertions))] const LOG_LEVEL: LevelFilter = LevelFilter::Info;