Skip to content

About

Zero-dependency Windows-to-macOS game porter and server-side AI anti-cheat telemetry engine.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

AnyWindows

Zero-dependency converter for packaging Windows-only PC games into standalone macOS Application Bundles (.app).

AnyWindows inspects Windows game binaries, identifies their engine and DirectX graphics API, and compiles a self-contained, double-clickable macOS application configured with the optimal translation layer (Apple Game Porting Toolkit 2 / D3DMetal, DXVK, or MoltenVK).


⚡ Features

  • Automated Engine & Binary Inspection:
    • Standard library PE (Portable Executable) header parser (32-bit x86 vs 64-bit x86_64).
    • Automatic game engine signature detection:
      • Unity (Mono managed assemblies vs. IL2CPP native AOT).
      • Unreal Engine (DirectX 11/12 cooked .pak archives).
      • Godot Engine (.pck packages).
      • Ren'Py & RPG Maker (MV/MZ/XP/VX).
      • Generic Win32 / C++.
  • Smart Translation Layer Routing:
    • DirectX 11 & 12 Games: Pre-configured for Apple Game Porting Toolkit 2 (D3DMetal) with AVX2 instruction emulation and Metal IR translation.
    • DirectX 9 & 10 Games: Configured for DXVK -> MoltenVK -> Metal.
    • Vulkan / OpenGL: Direct native mapping via MoltenVK.
  • True macOS Application Bundle Generation:
    • Produces valid Game.app structures with Info.plist, PkgInfo, and config.json.
    • Self-healing Unix launcher script that automatically detects existing local runtimes (Apple GPTK 2, Whisky, CrossOver, or Homebrew Wine).
    • Disables Retina high-DPI scaling by default to prevent 4K downscale frame drops on MacBook displays.
  • POSIX Permission Preservation:
    • Builds Mac-ready .zip archives where Unix executable bits (chmod +x / 0o755) are strictly preserved.
  • Dual Interfaces:
    • Fast, scriptable Command-Line Interface (CLI).
    • Built-in Web Studio GUI (http://127.0.0.1:4848).
  • Zero External Dependencies:
    • Pure Python standard library (struct, plistlib, zipfile, tarfile, http.server). No pip install required.

🚀 Quick Start

1. Launch the Web Studio GUI

Double-click anywindows.bat or run:

python anywindows.py serve

Open http://127.0.0.1:4848 in your browser. Enter the game folder path, click Inspect, customize your options, and generate the Mac bundle with one click.


2. Command Line Interface (CLI)

Inspect a Game Folder

Diagnose the engine, architecture, graphics API, and estimated compatibility:

python anywindows.py inspect "C:\Games\HollowKnight"

Output:

============================================================
 ANYWINDOWS GAME DIAGNOSTIC REPORT: Hollow Knight
============================================================
 Directory       : C:\Games\HollowKnight
 Main Executable : hollow_knight.exe
 Architecture    : x86_64 (64-bit)
 Game Engine     : Unity Engine (Mono C# Managed Assemblies)
 Graphics API    : DIRECTX11
 Recommended Mac : GPTK2 (Apple Silicon)
 Compatibility   : 95%
 Total Size      : 7420.50 MB (245 files)
============================================================

Convert to macOS .app

# 1. Slim Wrapper Mode (Smallest file size; utilizes host Whisky/GPTK2/Wine on Mac)
python anywindows.py convert "C:\Games\HollowKnight" -o "E:\MacGames"

# 2. 100% Self-Contained Mode (Zero Mac setup; embeds portable Wine inside .app)
python anywindows.py convert "C:\Games\HollowKnight" --embed-runtime -o "E:\MacGames"

# 3. Output Mac-ready ZIP (with +x permissions preserved for AirDrop/Transfer)
python anywindows.py convert "C:\Games\HollowKnight" --format zip -o "E:\MacGames"

# 4. Enable Metal Performance HUD overlay on Apple Silicon
python anywindows.py convert "C:\Games\Cyberpunk2077" --backend gptk2 --hud

Check Runtime Cache Status

python anywindows.py runtime status

📦 Packaging Modes: Self-Contained vs. Slim Wrapper

Feature Self-Contained Mode (--embed-runtime) Slim Wrapper Mode (Default)
Mac Prerequisites Zero. Just double-click Game.app. Requires Whisky, Apple GPTK2, or Homebrew Wine.
File Size Larger (Includes embedded Wine runtime). Ultra-light (Only Windows game assets).
Portability 100% standalone across any Mac. Best for local library or sharing with Mac gamers.

🏗️ Generated macOS Bundle Architecture

HollowKnight.app/
├── Contents/
│   ├── Info.plist              # CFBundleExecutable, bundle ID, version metadata
│   ├── PkgInfo                 # APPL????
│   ├── MacOS/
│   │   └── launcher            # Resilient startup script (chmod 0755)
│   ├── Resources/
│   │   ├── AppIcon.icns        # Application icon
│   │   └── config.json         # AnyWindows backend & display settings
│   └── SharedSupport/
│       └── game/               # Full mirrored Windows game payload

🎮 Running on macOS

  1. Copy or AirDrop the generated .app (or unzip the -mac.zip archive) onto your Mac.
  2. Double-click the .app.
  3. If your Mac does not yet have a Wine/GPTK runtime installed, AnyWindows displays a prompt with direct links to:
    • Apple Game Porting Toolkit 2 (brew install apple/apple/game-porting-toolkit)
    • Whisky (getwhisky.app)
    • CrossOver Mac

🧪 Testing & Verification

Run the zero-dependency test suite:

python run_tests.py
python test_inventions.py
python test_real_sentry.py

🛡️ Invention 1: AnySentry AI Anti-Cheat Radar

AnySentry is a server-side behavioral biometrics engine that eliminates the need for Windows kernel drivers (like Vanguard) by evaluating real-time mouse dynamics, Fitts's Law, and physiological tremors.

Launch Live Security Radar Dashboard

python sentry_server.py

Open http://127.0.0.1:4949 to watch real-time mouse trajectory feeds, angular jerk meters, and live cheat classifications.

Stream Telemetry from Client

  • Stream real mouse movements from your screen:
    python sentry_agent.py --mode real --duration 15
  • Stream simulated aimbots for verification:
    python sentry_agent.py --mode simulate --profile snap_aimbot
    python sentry_agent.py --mode simulate --profile smooth_aimbot
    python sentry_agent.py --mode simulate --profile triggerbot

About

Zero-dependency Windows-to-macOS game porter and server-side AI anti-cheat telemetry engine.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages