본문으로 건너뛰기
Skillpedia
기타6.9k · #13728

install-ra2

하는 일

내가 소유한 Steam 사본의 Command & Conquer Red Alert 2를 Mac, iPhone, iPad용 앱으로 만드는 과정을 안내합니다. 게임을 소유하고 Apple 기기에서 플레이하려는 플레이어를 위한 스킬입니다.

사용하는 경우

  • ✓Mac에서 내 Steam 사본으로 Red Alert 2나 Yuri's Revenge를 설치하고 싶을 때.
  • ✓내 Xcode를 써서 iPhone이나 iPad용으로 게임을 설정하고 싶을 때.
  • ✓Red Alert 2 설정 중 빌드 오류가 나타날 때.

스킬 링크

https://github.com/ly05010419/MacNativeGames/blob/main/.claude/skills/install-ra2/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/ly05010419/MacNativeGames/blob/main/.claude/skills/install-ra2/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 Mac에서 플레이할 수 있도록, 제 Steam 설치본으로 Red Alert 2를 빌드하도록 도와주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 Mac의 도구를 확인하고, 내 Steam 계정으로 게임을 가져온 뒤 네이티브 프로그램을 빌드합니다. 결과물은 내 컴퓨터에 남으며 나만을 위한 것입니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Install Red Alert 2 / Yuri's Revenge

You are helping a player turn their own Red Alert 2 install into native programs: the x86 executables are statically recompiled to arm64 (x86recomp), DirectDraw is drawn with Metal. Everything happens in windows_games/ra2; windows_games/ra2/install.md has the same steps for the player to read.

Rules

  • Only the player's own game. Never search the internet for, download, or ask anyone for game files. The Steam release comes with the player's own Steam account (steamcmd below); the player types their own login.
  • Never weaken a check. Do not edit config/symbols/sha256.txt or the lists beside it to get past an error: another version needs its own lists (step 6).
  • What the build makes (the recompiled code, the apps, the compact movies, the language files) is made from the player's files and is for this player only: never commit, upload or share it.
  • Speak the player's language. Find what you can yourself; ask only for what you cannot find.

1. Check the Mac

sw_vers -productVersion; uname -m; xcode-select -p
brew install cmake ninja llvm sdl3 ffmpeg opencc
python3 -c 'import PIL' || brew install pillow
git log -1 --oneline; df -h .

Apple silicon and macOS 26 or later. iPhone / iPad also need the full Xcode 26+ with the iOS platform, the player's Apple ID in Xcode › Settings › Accounts (a free one works) and the device on iOS / iPadOS 26 with Developer Mode on.

2. The game files

The Steam release (app 2229850): Red Alert 2 1.006 (GAME.EXE) and Yuri's Revenge 1.001 (gamemd.exe). If the player has it on Windows, copy the folder; otherwise steamcmd, logged in to their own account (the player runs it: it asks for the password and Steam Guard):

cd windows_games/ra2
steamcmd +@sSteamCmdForcePlatformType windows +force_install_dir "$PWD/game/install" +login <their account> +app_update 2229850 validate +quit

game/ is git-ignored. Another folder works too: pass it to build.sh.

Chinese (optional): the official Traditional Chinese language pack (depot 2229855), then the language files (lang/zh-Hant, lang/zh-Hans; Simplified is converted with OpenCC, its added glyphs drawn from Noto Sans CJK, downloaded and checked by the script):

steamcmd +@sSteamCmdForcePlatformType windows +login <their account> +download_depot 2229850 2229855 +quit
python3 -I scripts/languages.py game/install "<the depot folder steamcmd printed>"

3. Build for the Mac (about 7 minutes)

cd windows_games/ra2
BUILD_DIR="<folder outside the repository>/build" GENERATED_DIR="<same place>/generated" scripts/build.sh game/install

Without BUILD_DIR / GENERATED_DIR it builds in build/main and game/generated (git-ignored). It checks the executables' SHA-256, recompiles them (several hundred MB of C++) and compiles ra2 and, when gamemd.exe is there, yr. Run it with a long timeout; running it again rebuilds only what changed. JOBS (default 6, for 16 GB of memory) sets the parallel compilers.

4. Play on the Mac

"$BUILD_DIR/ra2" or "$BUILD_DIR/yr" (the install it was built from is the default; --game <folder> picks another). A resizable window; the green button for full screen. --language en|zh-Hant|zh-Hans (default: the system's language among those made in step 2). Saves and settings: ~/Library/Application Support/ra2/ (yr). Options: windows_games/ra2/install.md ("Run").

5. iPhone / iPad

After step 3 (the recompiled code is shared):

IOS_BUILD_DIR="<folder outside the repository>/ios" GENERATED_DIR="<as in step 3>" scripts/ios/build_app.sh
IOS_BUILD_DIR="<as above>" BUILD_DIR="<as in step 3>" python3 -I scripts/ios/install_device.py --device "<device name>" --game game/install
  • The first build_app.sh also builds SDL3, glslang, SPIRV-Cross and a decoders-only ffmpeg for iOS (some minutes).
  • --game puts the install into the app, so it plays once installed; the movie archives go in as compact copies (the first time about 10 minutes on the Mac, then cached): about 1.3 GB in all. The device must be on the cable.
  • First start on the device: trust the developer in Settings › General › VPN & Device Management. The first dialog asks for Red Alert 2 or Yuri's Revenge; its 🌐 button changes the language (kept).
  • A free Apple ID signs for 7 days: run install_device.py again; saves (in the app's Documents) are kept.

6. When it stops

The error says Cause and fix
자주 묻는 질문

게임을 소유해야 하나요?

네. 이 스킬은 사용자가 가진 설치본에만 작동하며, 게임 파일을 제공하지 않습니다.

빌드된 앱을 공유할 수 있나요?

아니요. 스킬은 빌드된 앱에 게임이 들어 있으므로 나만 쓰도록 되어 있다고 설명합니다.

Mac에 무엇이 필요한가요?

Apple 실리콘과 macOS 26 이상입니다. iPhone이나 iPad용으로는 Apple ID가 있는 전체 Xcode도 필요합니다.

상세 정보

작성자의 원본 설명

Build and install Command & Conquer Red Alert 2 and Yuri's Revenge (windows_games/ra2) from the player's own Steam install, for Mac, iPhone or iPad, with English, Traditional or Simplified Chinese. Use when a player asks to install, build or set up Red Alert 2 / Yuri's Revenge, or pastes one of its build errors.

repo: ly05010419/MacNativeGames

인기도

GitHub 스타
6.9k
순위
#13728
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬