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.

3.4 KB
Raw Blame

Contributing to Soju

Three ways to help, smallest first.

1. Report a game

The most useful thing is a result from your Mac, whether the game ran or not. Open a compatibility report or post in #compatibility on Discord. Include:

  • game and store (Steam, Battle.net, Epic, GOG, Xbox PC)
  • Mac model and chip, macOS version
  • Soju version (soju --version, or the number at the bottom left of the app)
  • what happened, and the output of soju doctor if it failed

Remove account names and personal paths from logs before posting.

2. Docs and translations

  • README.md, README.ko.md, README.zh.md
  • Guides are hand-written HTML in docs/guides/
  • The home pages are generated: edit site/content/*.json, then cd site && npm install && npm run build, and commit both the JSON and the files it writes under docs/

A guide for a game should say what was checked and what was not, on which Mac and macOS.

3. Code

git clone https://github.com/BCD1210/soju && cd soju
bash scripts/soju help            # the CLI runs from the checkout
bash scripts/install-app.sh       # builds the app and opens it (needs Apple's Command Line Tools)

Before opening a pull request, run what CI runs:

bash -n install.sh; for s in scripts/*.sh scripts/soju; do bash -n "$s"; done
python3 -m unittest discover -s tests -q
node --test tests/test_steam_login.cjs
node --test tests/test_stats_worker.mjs
node --test tests/test_feed_worker.mjs
python3 scripts/release-health.py
swiftc app/PurchaseLinks.swift tests/test_purchase_links.swift -o /tmp/t1 && /tmp/t1
swiftc app/UpdateCheck.swift tests/test_update_check.swift -o /tmp/t2 && /tmp/t2
swiftc app/StarAsk.swift tests/test_star_ask.swift -o /tmp/t3 && /tmp/t3
swiftc app/DownloadMeter.swift tests/test_download_meter.swift -o /tmp/t4 && /tmp/t4
swiftc app/GardenStats.swift tests/test_garden_stats.swift -o /tmp/t5 && /tmp/t5
swiftc app/GoatCatalog.swift tests/test_goat_catalog.swift -o /tmp/t6 && /tmp/t6
bash scripts/build-app.sh

Pull requests:

  • One change per pull request. Say which Mac and macOS you ran it on.
  • A new or changed behaviour comes with a test where the code is testable (see tests/).
  • Do not add Apple Game Porting Toolkit binaries, CrossOver binaries, store clients or game files.
  • Soju is GPL-3.0-or-later, and contributions are accepted under the same licence.

Not sure where to start? Issues labelled good first issue are small and self-contained.

Releasing (maintainers)

After the pull request is merged: scripts/build-app.sh with the Developer ID, scripts/notarize-app.sh, then scripts/publish-release.sh <notes-file>. That one command creates the GitHub release, moves the Homebrew tap to it and runs scripts/release-health.py. Do not create the release by hand: the tap stays behind.

Engine and support releases (engine-v*, launcher-support-v*, steam-support-v* and the like) are pinned by the app versions that shipped with them. Never delete one while a version that names it can still be installed. CI runs scripts/release-health.py, which fails when a pinned file is gone or the tap is behind the newest release.

Security

Please do not open a public issue for a security problem. See SECURITY.md.