From 7badc298d36ce129e3cfd1a2aba9ec445a141fa7 Mon Sep 17 00:00:00 2001 From: rtm516 Date: Wed, 11 Mar 2026 03:51:07 +0000 Subject: [PATCH] Update readme and actions --- .github/workflows/nightly.yml | 10 ++++++---- README.md | 11 +++++------ 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 402f3cb62..f3b6dbc89 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -22,11 +22,13 @@ jobs: - name: Setup msbuild uses: microsoft/setup-msbuild@v2 + - name: Configure + run: cmake -B out/build --preset windows64 - name: Build - run: MSBuild.exe MinecraftConsoles.sln /p:Configuration=Release /p:Platform="Windows64" + run: cmake --build out/build --preset windows64-release --target Minecraft.Client - name: Zip Build - run: 7z a -r LCEWindows64.zip ./x64/Release/* + run: 7z a -r LCEWindows64.zip ./out/build/Minecraft.Client/Release/* - name: Update release uses: andelf/nightly-release@main @@ -42,5 +44,5 @@ jobs: If you've never downloaded the game before, you need to download `LCEWindows64.zip` and extract it to the folder where you'd like to keep the game. The other files are included in this `.zip` file! files: | LCEWindows64.zip - ./x64/Release/Minecraft.Client.exe - ./x64/Release/Minecraft.Client.pdb + ./out/build/Minecraft.Client/Release/Minecraft.Client.exe + ./out/build/Minecraft.Client/Release/Minecraft.Client.pdb diff --git a/README.md b/README.md index 0c476666e..1963add9a 100644 --- a/README.md +++ b/README.md @@ -77,17 +77,16 @@ Minecraft.Client.exe -name Steve -fullscreen ## Build & Run -1. Install [Visual Studio 2022](https://aka.ms/vs/17/release/vs_community.exe). +1. Install [Visual Studio 2022](https://aka.ms/vs/17/release/vs_community.exe) or [newer](https://visualstudio.microsoft.com/downloads/). 2. Clone the repository. -3. Open the project by double-clicking `MinecraftConsoles.sln`. -4. Make sure `Minecraft.Client` is set as the Startup Project. -5. Set the build configuration to **Debug** (Release is also ok but missing some debug features) and the target platform to **Windows64**, then build and run. +3. Open the project folder from Visual Studio. +5. Set the build configuration to **Windows - Debug** (Release is also ok but missing some debug features), then build and run. ### CMake (Windows x64) ```powershell -cmake -S . -B build -G "Visual Studio 17 2022" -A x64 -cmake --build build --config Debug --target MinecraftClient +cmake -B out/build --preset windows64 +cmake --build out/build --preset windows64-release --target Minecraft.Client ``` For more information, see [COMPILE.md](COMPILE.md).