Skip to content

armgit / soju

Public Imported from GitHub
0

Play Windows games on Apple Silicon Macs. Free, open-source app that installs the official Battle.net, Steam, Epic and GOG launchers and lists your games in one library.

Licensing: NOTICE file, publish winemac dock-icon patch (LGPL-2.1+), state DXMT license

mikey9291f23faa0db6
diff --git a/NOTICE b/NOTICE
new file mode 100644
index 00000000000..0ddd1804d95
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1,23 @@
+Soju — third-party components and their licenses
+
+Bundled in this repository:
+- third_party/steam-on-m1-wine/steamwebhelper-wrapper.c — MIT, Copyright (c) 2026 notpop
+ (see third_party/steam-on-m1-wine/LICENSE and NOTICE)
+- patches/winemac-no-dock-icon.patch — a patch against Wine's winemac.drv (Wine is LGPL-2.1+);
+ the patch itself is offered under LGPL-2.1+ to match.
+
+Built or downloaded by the scripts (never redistributed by this repository):
+- Wine 11.0 — LGPL-2.1+ / GPL components, built from CodeWeavers' published sources
+ (media.codeweavers.com/pub/crossover/source/)
+- DXMT — LGPL-2.1+, Copyright (c) 2023-2026 Feifan He for CodeWeavers
+ (built from the notpop fork of github.com/3Shain/dxmt)
+- wine-mono — MIT (dotnet parts MIT/BSD-like); MoltenVK — Apache-2.0; gnutls — LGPL-2.1+;
+ freetype — FTL/GPL-2.0 dual
+- Apple Game Porting Toolkit payload (libd3dshared/D3DMetal) — Apple proprietary,
+ NON-redistributable: users download it themselves from developer.apple.com
+- Blizzard Battle.net / game files and Valve Steam client — proprietary,
+ installed by their own official installers into the user's prefix
+
+Trademarks: Battle.net and Diablo are trademarks of Blizzard Entertainment.
+Steam is a trademark of Valve Corporation. This project is not affiliated with
+CodeWeavers, Apple, Blizzard, or Valve.
diff --git a/docs/STEAM-GAMES.md b/docs/STEAM-GAMES.md
index a7e8223dc47..ab9fab51b27 100644
--- a/docs/STEAM-GAMES.md
+++ b/docs/STEAM-GAMES.md
@@ -69,6 +69,11 @@ three fixes we needed on macOS 26.5 / current Homebrew:
- The Dock-icon patch on top of the visibility rebuild lives in
`transformProcessToForeground:` (see `scripts/setup-steam-games.sh` header).
+DXMT is LGPL-2.1+ (Copyright Feifan He for CodeWeavers); the wrapper is MIT
+(vendored in `third_party/`); our winemac patch is published as
+`patches/winemac-no-dock-icon.patch` (LGPL-2.1+, matching Wine). Nothing
+proprietary is redistributed.
+
Artifacts land in `~/.battlenet-macos/steam-support/` and
`scripts/setup-steam-games.sh` wires everything idempotently.
diff --git a/patches/winemac-no-dock-icon.patch b/patches/winemac-no-dock-icon.patch
new file mode 100644
index 00000000000..2f3fc985048
--- /dev/null
+++ b/patches/winemac-no-dock-icon.patch
@@ -0,0 +1,39 @@
+diff --git a/dlls/winemac.drv/cocoa_app.m b/dlls/winemac.drv/cocoa_app.m
+index 2a9dab2..63e871b 100644
+--- a/dlls/winemac.drv/cocoa_app.m
++++ b/dlls/winemac.drv/cocoa_app.m
+@@ -230,6 +230,34 @@ - (void) transformProcessToForeground:(BOOL)activateIfTransformed
+ NSString* title;
+ NSMenuItem* item;
+
++ /* Soju: suppress Dock icons for processes listed in WINE_NO_DOCK_ICON
++ (semicolon-separated exe names). Modeled on CrossOver's hack 24141. */
++ {
++ const char* nodock = getenv("WINE_NO_DOCK_ICON");
++ if (nodock)
++ {
++ /* The Windows exe path may sit in any argv slot (the loader
++ rewrites argv after NSProcessInfo snapshots it), so match
++ the basename of every argument against the list. */
++ NSArray* list = [[[NSString stringWithUTF8String:nodock] lowercaseString] componentsSeparatedByString:@";"];
++ NSCharacterSet* seps = [NSCharacterSet characterSetWithCharactersInString:@"/\\"];
++ BOOL blocked = NO;
++ NSArray* args = [[NSProcessInfo processInfo] arguments];
++ NSUInteger limit = MIN((NSUInteger)2, args.count);
++ for (NSUInteger i = 0; i < limit; i++)
++ {
++ NSString* base = [[[args[i] componentsSeparatedByCharactersInSet:seps] lastObject] lowercaseString];
++ if (base.length && [list containsObject:base]) { blocked = YES; break; }
++ }
++ if (blocked)
++ {
++ if (activateIfTransformed)
++ [self tryToActivateIgnoringOtherApps:YES];
++ return;
++ }
++ }
++ }
++
+ [NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];
+
+ if (activateIfTransformed)