From f9b752603e0a4edce64e04a15adc249dfce70956 Mon Sep 17 00:00:00 2001 From: Philippe Date: Fri, 27 Nov 2026 00:43:35 +0000 Subject: [PATCH 1/4] Community section, issue and pull request templates, contributing guide Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01VU4S7xHNWxnMyskL7xa616 Signed-off-by: Philippe --- .github/ISSUE_TEMPLATE/bug_report.yml | 99 ++++++++++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 8 ++ .github/ISSUE_TEMPLATE/feature_request.yml | 43 ++++++++++ .github/pull_request_template.md | 17 ++++ CONTRIBUTING.md | 33 ++++++++ README.md | 8 ++ 6 files changed, 208 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/feature_request.yml create mode 100644 .github/pull_request_template.md create mode 100644 CONTRIBUTING.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000..e06d2a5 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,99 @@ +name: Bug report +description: Something in OpenRAGE does not work as it should. +labels: ["bug"] +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to report a bug! + For quick questions or help with the setup, the [Matrix room](https://matrix.to/#/#openRAGE:nope.chat) is often faster. + + **Please do not attach game files, executables or encryption keys.** OpenRAGE takes them from your own copy of the game. + - type: dropdown + id: game + attributes: + label: Game + options: + - GTA V Legacy + - GTA V Enhanced + - GTA VI + - Red Dead Redemption 2 + - GTA IV + - Not game-specific + validations: + required: true + - type: input + id: game-version + attributes: + label: Game version and store + description: For example "1.0.3725, Steam" or "Rockstar Launcher, July 2026 update". + - type: input + id: version + attributes: + label: OpenRAGE version + description: Shown under Help → About OpenRAGE, or with `openrage --version`. + placeholder: "0.6.0" + validations: + required: true + - type: dropdown + id: os + attributes: + label: Operating system + options: + - Linux + - Linux (Steam Deck) + - Windows + validations: + required: true + - type: dropdown + id: install + attributes: + label: How did you install OpenRAGE? + options: + - AppImage + - Flatpak + - .tar.gz (Linux) + - .zip (Windows) + - Built from source + validations: + required: true + - type: textarea + id: what-happened + attributes: + label: What happened? + description: What did you do, and what went wrong? Error messages as text help more than screenshots alone. + validations: + required: true + - type: textarea + id: steps + attributes: + label: Steps to reproduce + description: If you know them, the steps that lead to the problem. + placeholder: | + 1. Open … + 2. Click … + 3. See the error + - type: textarea + id: expected + attributes: + label: What did you expect instead? + - type: textarea + id: mods + attributes: + label: Mods in the game folder + description: ASI loaders, Script Hook, SHVDN, LML, `dinput8.dll`, `xinput1_4.dll` and the like can change what OpenRAGE detects. List what you have installed, if anything. + - type: textarea + id: logs + attributes: + label: Output or logs + description: If you started OpenRAGE from a terminal, paste what it printed. This is shown as code, no backticks needed. + render: text + - type: checkboxes + id: checks + attributes: + label: Before sending + options: + - label: I searched the existing issues and did not find this bug. + required: true + - label: I did not attach game files, executables or keys. + required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..03acfb4 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,8 @@ +blank_issues_enabled: false +contact_links: + - name: Help and questions (Matrix) + url: https://matrix.to/#/#openRAGE:nope.chat + about: Help with installing, setting up your game and using OpenRAGE. + - name: Documentation + url: https://two-play.github.io/openrage/guide/ + about: Getting started, the explorer, modding and every command. diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 0000000..0eea274 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,43 @@ +name: Feature request +description: Suggest a new feature, format or game for OpenRAGE. +labels: ["enhancement"] +body: + - type: markdown + attributes: + value: | + Thanks for the idea! Rough ideas can also be discussed first in the [Matrix room](https://matrix.to/#/#openRAGE:nope.chat). + - type: textarea + id: problem + attributes: + label: What do you want to do? + description: Describe the task or the problem, not only the solution. For example "I want to replace the textures of a weapon in RDR2". + validations: + required: true + - type: textarea + id: solution + attributes: + label: How could OpenRAGE help? + description: "How you imagine it working: a button, a command, a new format, …" + - type: dropdown + id: game + attributes: + label: Game + multiple: true + options: + - GTA V + - GTA VI + - Red Dead Redemption 2 + - GTA IV + - Not game-specific + - type: textarea + id: openiv + attributes: + label: How do other tools do it? + description: If OpenIV, CodeWalker or another tool already does this, say how. Links to formats or documentation help a lot. + - type: checkboxes + id: checks + attributes: + label: Before sending + options: + - label: I searched the existing issues and did not find this idea. + required: true diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..63be97a --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,17 @@ + + +## What does this change? + + + +## How was it tested? + + + +## Checklist + +- [ ] The pull request targets `develop`. +- [ ] `cargo fmt --all --check` and `cargo test` pass locally. +- [ ] No game files, executables, encryption keys or extracted game assets are included. +- [ ] Large generated files (dictionaries, test data) are left out or discussed first. +- [ ] Documentation in `site/` is updated if the change affects users. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..c065cc9 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,33 @@ +# Contributing to OpenRAGE + +Thanks for wanting to help! Bug reports, ideas, documentation, testing on your own game and code are all welcome. + +## Talk to us + +- **Matrix:** [#openRAGE:nope.chat](https://matrix.to/#/#openRAGE:nope.chat) for questions, help and development. +- **GitHub Issues:** for bugs that can be reproduced and for feature requests. Please use the templates. + +For bigger changes (a new game, a new archive format, a large refactoring), open an issue or ask on Matrix first, so that we can agree on the approach before you put a lot of work in. + +## Pull requests + +- Work goes into **`develop`**; `main` only takes releases. Please target `develop`. +- Keep pull requests focused: one feature or fix each. Large changes are easier to review in several smaller steps. +- Run `cargo fmt --all --check` and `cargo test` before opening the pull request. +- Update the documentation in [`site/`](site/) when the change affects users. + +Building from source, the build environment and the project layout are described on the [development page](https://two-play.github.io/openrage/development/). + +## What we cannot accept + +OpenRAGE contains no game files and no encryption keys, and it has to stay that way. Please never commit or attach: + +- game files, executables or encryption keys, +- assets extracted from a game (models, textures, sounds, …), +- leaked or otherwise unlawfully obtained material. + +Large generated files, such as name dictionaries, should be discussed first; they may be better shipped separately. + +## Licence + +By contributing you agree that your contribution is licensed under the licence of the part of the project you change (see [LICENSE](LICENSE) and the licence section of the [README](README.md#license)). diff --git a/README.md b/README.md index 4db5214..205159e 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,14 @@ cargo build --release # target/release/openrage-gui and target/release/open The website lives in [`site/`](site/) and is built from Markdown. +## Community + +Questions, ideas, or want to show what you made? Join us on **Matrix**: **[#openRAGE:nope.chat](https://matrix.to/#/#openRAGE:nope.chat)** + +New to Matrix? Open the link and pick a client, for example [Element](https://element.io/download); creating an account is free. + +Found a bug or have a feature request? [Open an issue](https://github.com/Two-Play/openrage/issues/new/choose). Want to contribute code? See [CONTRIBUTING.md](CONTRIBUTING.md). + ## License GPL-3.0-only, except `crates/rage-tfit2` (the RDR2 archive cipher, ported from an AGPL-3.0 project), which is AGPL-3.0-only, and the plugin interface and SDK (`crates/openrage-plugins/wit`, `plugins/`), which are MIT OR Apache-2.0 so that plugins may use any licence. See [LICENSE](LICENSE) and [NOTICE.md](NOTICE.md) for third-party attributions, and [THIRD_PARTY_LICENSES.md](THIRD_PARTY_LICENSES.md) for the licenses of all third-party crates in the programs (generated from `Cargo.lock`, checked in CI). The same is in the app under **Help → About OpenRAGE**, via `openrage licenses` and on the [licenses page](https://two-play.github.io/openrage/licenses/). From f20b635d1f6dfbbf5795540e6ee4f52a721f5ba5 Mon Sep 17 00:00:00 2001 From: Philippe Date: Fri, 27 Nov 2026 00:43:35 +0000 Subject: [PATCH 2/4] Community page on the website, licence rules and sign-off for contributions Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01VU4S7xHNWxnMyskL7xa616 Signed-off-by: Philippe --- .github/ISSUE_TEMPLATE/config.yml | 2 +- .github/pull_request_template.md | 2 ++ CONTRIBUTING.md | 34 ++++++++++++++++++-- site/config.toml | 5 +++ site/content/community.md | 52 +++++++++++++++++++++++++++++++ site/templates/base.html | 5 ++- 6 files changed, 96 insertions(+), 4 deletions(-) create mode 100644 site/content/community.md diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 03acfb4..8b440da 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,4 +1,4 @@ -blank_issues_enabled: false +blank_issues_enabled: true contact_links: - name: Help and questions (Matrix) url: https://matrix.to/#/#openRAGE:nope.chat diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 63be97a..6eb17a9 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -11,6 +11,8 @@ ## Checklist - [ ] The pull request targets `develop`. +- [ ] Every commit is signed off (`git commit -s`, see [CONTRIBUTING.md](https://github.com/Two-Play/openrage/blob/develop/CONTRIBUTING.md#licences-and-sign-off)). +- [ ] Code from other projects has a compatible licence and is listed in `NOTICE.md`. - [ ] `cargo fmt --all --check` and `cargo test` pass locally. - [ ] No game files, executables, encryption keys or extracted game assets are included. - [ ] Large generated files (dictionaries, test data) are left out or discussed first. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c065cc9..9b33a4a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -28,6 +28,36 @@ OpenRAGE contains no game files and no encryption keys, and it has to stay that Large generated files, such as name dictionaries, should be discussed first; they may be better shipped separately. -## Licence +## Licences and sign-off -By contributing you agree that your contribution is licensed under the licence of the part of the project you change (see [LICENSE](LICENSE) and the licence section of the [README](README.md#license)). +OpenRAGE has three licences, depending on the part of the project: + +| Part | Licence | +|---|---| +| Everything not listed below | GPL-3.0-only | +| `crates/rage-tfit2` | AGPL-3.0-only | +| Plugin interface and SDK (`crates/openrage-plugins/wit`, `plugins/`) | MIT OR Apache-2.0 | + +**Your contribution is licensed under the licence of the files you change** ("inbound = outbound"). You keep your copyright; there is no contributor licence agreement (CLA). + +### Developer Certificate of Origin + +Every commit has to be signed off under the [Developer Certificate of Origin 1.1](https://developercertificate.org/). With the sign-off you confirm that you wrote the change yourself, or otherwise have the right to submit it under the project's licence. Add it with `-s`: + +```sh +git commit -s -m "Your message" +``` + +This adds a line with your name and e-mail address to the commit message: + +``` +Signed-off-by: Your Name +``` + +Use a name you are known by; a pseudonym is fine. Forgot it? `git commit --amend -s` fixes the last commit, `git rebase --signoff develop` all commits of your branch. + +### Code from elsewhere + +- Code from other projects is welcome if its licence is compatible with the part you add it to. Keep its copyright notice, name the source in the commit message and add it to [NOTICE.md](NOTICE.md). +- Do not copy code whose licence is unknown or incompatible, and no code decompiled or copied from a game or from closed-source tools. Findings from reverse engineering (how a format is laid out) are fine; describe them in your own code. +- New dependencies must pass the licence check (`cargo deny check licenses`, also run in CI). diff --git a/site/config.toml b/site/config.toml index 06ef97d..ab50f62 100644 --- a/site/config.toml +++ b/site/config.toml @@ -23,6 +23,7 @@ external_level = "warn" [extra] repo = "https://github.com/Two-Play/openrage" releases = "https://github.com/Two-Play/openrage/releases" +matrix = "https://matrix.to/#/#openRAGE:nope.chat" # Documentation sidebar: groups of pages, in order. [[extra.docs]] @@ -50,3 +51,7 @@ pages = [ ["licenses.md", "Licenses"], ] +[[extra.docs]] +title = "Community" +pages = [["community.md", "Community and contributing"]] + diff --git a/site/content/community.md b/site/content/community.md new file mode 100644 index 0000000..91c3b04 --- /dev/null +++ b/site/content/community.md @@ -0,0 +1,52 @@ ++++ +title = "Community and contributing" +description = "Talk to the OpenRAGE community on Matrix, report bugs, and contribute code, documentation and tests." + +[extra] +docs = true +lead = "Questions, ideas, bug reports and pull requests are all welcome." +toc = true ++++ + +## Chat on Matrix + +The OpenRAGE community meets on [Matrix](https://matrix.org), an open, decentralised chat network: +**[#openRAGE:nope.chat](https://matrix.to/#/#openRAGE:nope.chat)**. + +Ask for help with the setup, discuss ideas, show what you made, or talk about file formats and development. +New to Matrix? Open the link and pick a client, for example [Element](https://element.io/download) (web, desktop and +phone). Creating an account is free, and you can use any Matrix server. + +> [!NOTE] +> Please never share game files, executables or encryption keys in the chat. OpenRAGE takes them from your own copy +> of the game. + +## Report a bug or suggest a feature + +Bugs that can be reproduced and feature requests go to +[GitHub Issues](https://github.com/Two-Play/openrage/issues/new/choose). The templates ask for what helps most: the +game and its edition, your OpenRAGE version (**Help → About OpenRAGE**), your system, and the mods in your game +folder. Mods such as ASI loaders or Script Hook can change what OpenRAGE detects. + +## Contribute + +Code, documentation, notes on file formats and testing on your own game all help. How to build OpenRAGE is +described on the [development page](@/development.md); the rules for pull requests are in +[CONTRIBUTING.md](https://github.com/Two-Play/openrage/blob/develop/CONTRIBUTING.md). In short: + +- Pull requests go into `develop`. Keep them focused, and discuss large changes on Matrix or in an issue first. +- Run `cargo fmt --all --check` and `cargo test` before opening a pull request. +- No game files, keys, extracted assets or leaked material, and no code decompiled from a game or a closed-source tool. + +## Licences of contributions + +Your contribution is licensed under the licence of the files you change: GPL-3.0-only for most of the project, +AGPL-3.0-only for `crates/rage-tfit2`, and MIT OR Apache-2.0 for the plugin interface and SDK (see +[Licenses](@/licenses.md)). You keep your copyright; there is no contributor licence agreement. + +Every commit is signed off under the [Developer Certificate of Origin](https://developercertificate.org/), confirming +that you have the right to submit it: + +``` +git commit -s -m "Your message" +``` diff --git a/site/templates/base.html b/site/templates/base.html index 2c1f496..abe7777 100644 --- a/site/templates/base.html +++ b/site/templates/base.html @@ -44,7 +44,8 @@
  • Features
  • Why OpenRAGE
  • Get started
  • -
  • Docs
  • +
  • Docs
  • +
  • Community
  • @@ -66,6 +67,8 @@
  • Writing plugins
  • Development
  • Issues
  • +
  • Matrix chat
  • +
  • Community and contributing
  • License: GPL-3.0
  • Licenses
  • From 15d803b32de82eea688f84866450dea737eafcaa Mon Sep 17 00:00:00 2001 From: Philippe Date: Fri, 27 Nov 2026 00:43:35 +0000 Subject: [PATCH 3/4] Community section on the landing page Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01VU4S7xHNWxnMyskL7xa616 Signed-off-by: Philippe --- site/content/_index.md | 4 ++++ site/templates/index.html | 27 +++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/site/content/_index.md b/site/content/_index.md index 0165df1..03da5cc 100644 --- a/site/content/_index.md +++ b/site/content/_index.md @@ -37,6 +37,10 @@ Out of date? [Open an issue](https://github.com/Two-Play/openrage/issues). # A short section that points to the GTA VI page (content/gta-vi.md). +[extra.community] +title = "Community" +intro = "OpenRAGE is made by its community. Ask questions, share what you made, report bugs or help with the code." + [extra.gta6] title = "GTA VI" text = "OpenRAGE opens GTA VI's archives: the map in 3D, models, textures, animations, sounds and videos. A read-only preview, with your own copy of the game." diff --git a/site/templates/index.html b/site/templates/index.html index 0f75c6d..c549e51 100644 --- a/site/templates/index.html +++ b/site/templates/index.html @@ -174,5 +174,32 @@

    Build from source

    + + {%- if x?.community %} + +
    +
    +

    {{ x.community.title }}

    +

    {{ x.community.intro | markdown(inline=true) | safe }}

    +
    +
    +

    Chat on Matrix

    +

    Questions, help with the setup, ideas and development: #openRAGE:nope.chat.

    + Join the chat +
    +
    +

    Report a bug

    +

    Something does not work, or you miss a feature? Tell us on GitHub.

    + Open an issue +
    +
    +

    Contribute

    +

    Code, documentation, notes on file formats and testing on your own game.

    + How to contribute +
    +
    +
    +
    + {%- endif %} {% endblock main %} From e4a3f02606fb8b6f71677f8c303d202d860204ca Mon Sep 17 00:00:00 2001 From: Philippe Date: Fri, 27 Nov 2026 00:43:35 +0000 Subject: [PATCH 4/4] Website icons, macOS preview build, DCO check for pull requests Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01VU4S7xHNWxnMyskL7xa616 Signed-off-by: Philippe --- .github/workflows/ci.yml | 5 ++++ .github/workflows/dco.yml | 50 ++++++++++++++++++++++++++++++++ .github/workflows/release.yml | 13 +++++++-- CONTRIBUTING.md | 2 +- README.md | 6 ++-- packaging/macos/README-macOS.txt | 26 +++++++++++++++++ site/content/getting-started.md | 37 ++++++++++++++++++++--- site/content/licenses.md | 29 ++++++++++++++++++ site/static/script.js | 6 ++-- site/static/style.css | 5 +++- site/templates/components.html | 7 +++-- site/templates/index.html | 19 +++++++----- 12 files changed, 182 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/dco.yml create mode 100644 packaging/macos/README-macOS.txt diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c90492..db4e68b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,12 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest] + include: + # macOS (Apple silicon) is a preview: its result is shown but does not block. + - os: macos-latest + experimental: true runs-on: ${{ matrix.os }} + continue-on-error: ${{ matrix.experimental || false }} steps: - uses: actions/checkout@v5 - name: Install system libraries for the GUI (Slint, audio output) diff --git a/.github/workflows/dco.yml b/.github/workflows/dco.yml new file mode 100644 index 0000000..b46ce4c --- /dev/null +++ b/.github/workflows/dco.yml @@ -0,0 +1,50 @@ +name: DCO + +# Every commit of a pull request must be signed off under the Developer +# Certificate of Origin (https://developercertificate.org/), with a +# "Signed-off-by:" line that names the commit's author (`git commit -s`). +# See CONTRIBUTING.md. Merge commits and bots are skipped. +on: + pull_request: + +permissions: + contents: read + +jobs: + sign-off: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + with: + fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} + - name: Check the sign-off of every commit + env: + BASE: ${{ github.event.pull_request.base.sha }} + HEAD: ${{ github.event.pull_request.head.sha }} + run: | + failed=0 + for c in $(git rev-list --no-merges "$BASE..$HEAD"); do + author_name=$(git log -1 --format='%an' "$c") + author_mail=$(git log -1 --format='%ae' "$c") + subject=$(git log -1 --format='%h %s' "$c") + case "$author_mail" in + *'[bot]@users.noreply.github.com') echo "skip (bot): $subject"; continue ;; + esac + # The sign-off must carry the author's e-mail address. + if git log -1 --format='%(trailers:key=Signed-off-by,valueonly)' "$c" \ + | grep -qiF "<$author_mail>"; then + echo "ok: $subject" + else + echo "::error::Commit $subject has no 'Signed-off-by: $author_name <$author_mail>' line." + failed=1 + fi + done + if [ "$failed" = 1 ]; then + echo + echo "Sign off your commits under the Developer Certificate of Origin (see CONTRIBUTING.md):" + echo " last commit: git commit --amend -s --no-edit" + echo " all commits: git rebase --signoff ${{ github.event.pull_request.base.ref }}" + echo "then push again (git push --force-with-lease)." + exit 1 + fi diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 722a990..6f4b24d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,8 @@ name: Release # Pushing a tag such as v0.2.0 builds OpenRAGE for Linux (.tar.gz, AppImage -# and Flatpak) and Windows (.zip) and publishes a GitHub release with them and -# their SHA-256 checksums. +# and Flatpak), Windows (.zip) and macOS (Apple silicon, .tar.gz; preview) and +# publishes a GitHub release with them and their SHA-256 checksums. # "Run workflow" (manual) builds the same archives without publishing, to # try a release first. Tests are not repeated here: CI runs them on every # change to main, which is where release tags are cut from. @@ -28,7 +28,12 @@ jobs: name: linux-x86_64 - os: windows-latest name: windows-x86_64 + # Preview: a failed macOS build does not hold up the release. + - os: macos-latest + name: macos-arm64 + experimental: true runs-on: ${{ matrix.os }} + continue-on-error: ${{ matrix.experimental || false }} steps: - uses: actions/checkout@v5 - name: Check that the tag matches the version in Cargo.toml @@ -75,6 +80,10 @@ jobs: if [ "$RUNNER_OS" = "Windows" ]; then cp target/release/openrage.exe target/release/openrage-gui.exe "$dir/" 7z a -tzip "out/$dir.zip" "$dir" > /dev/null + elif [ "$RUNNER_OS" = "macOS" ]; then + cp target/release/openrage target/release/openrage-gui packaging/openrage.png "$dir/" + cp packaging/macos/README-macOS.txt "$dir/" + tar czf "out/$dir.tar.gz" "$dir" else cp target/release/openrage target/release/openrage-gui "$dir/" cp packaging/openrage.desktop packaging/openrage.png packaging/openrage-mime.xml "$dir/" diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9b33a4a..547a9f9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -54,7 +54,7 @@ This adds a line with your name and e-mail address to the commit message: Signed-off-by: Your Name ``` -Use a name you are known by; a pseudonym is fine. Forgot it? `git commit --amend -s` fixes the last commit, `git rebase --signoff develop` all commits of your branch. +A check on every pull request makes sure each commit carries a sign-off with its author's e-mail address. Use a name you are known by; a pseudonym is fine. Forgot it? `git commit --amend -s` fixes the last commit, `git rebase --signoff develop` all commits of your branch. ### Code from elsewhere diff --git a/README.md b/README.md index 205159e..38e1ba8 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ # OpenRAGE -**The open-source successor to OpenIV — mod GTA V and Red Dead Redemption 2, and explore GTA VI, on Linux and Windows.** +**The open-source successor to OpenIV — mod GTA V and Red Dead Redemption 2, and explore GTA VI, on Linux, Windows and macOS.** ### 🌴 New: GTA VI works! @@ -21,7 +21,7 @@ edit game text and install `.oiv` packages — compatible with OpenIV's `mods` f [![Dev environment](https://github.com/Two-Play/openrage/actions/workflows/dev-env.yml/badge.svg)](https://github.com/Two-Play/openrage/actions/workflows/dev-env.yml) [![License: GPL-3.0](https://img.shields.io/badge/license-GPL--3.0-blue.svg)](LICENSE) [![Rust 1.99](https://img.shields.io/badge/rust-1.99-orange.svg?logo=rust)](rust-toolchain.toml) -[![Platforms](https://img.shields.io/badge/platform-Linux%20%7C%20Windows-lightgrey.svg)](#installation) +[![Platforms](https://img.shields.io/badge/platform-Linux%20%7C%20Windows%20%7C%20macOS-lightgrey.svg)](#installation) [![GUI: Slint](https://img.shields.io/badge/GUI-Slint-2379F4.svg)](https://slint.dev) [![GPU: wgpu](https://img.shields.io/badge/GPU-wgpu-8A2BE2.svg)](https://wgpu.rs) @@ -74,7 +74,7 @@ More screenshots and all features: **[two-play.github.io/openrage](https://two-p ## Installation -Download the [latest release](https://github.com/Two-Play/openrage/releases/latest) for Linux (AppImage, Flatpak or `.tar.gz`) or Windows (`.zip`) and start `openrage-gui`. On first start it finds your game and sets up the keys. Step by step: **[Getting started](https://two-play.github.io/openrage/getting-started/)**. +Download the [latest release](https://github.com/Two-Play/openrage/releases/latest) for Linux (AppImage, Flatpak or `.tar.gz`), Windows (`.zip`) or macOS (Apple silicon, `.tar.gz`, preview) and start `openrage-gui`. On first start it finds your game and sets up the keys. Step by step: **[Getting started](https://two-play.github.io/openrage/getting-started/)**. For the GTA VI preview, choose the folder containing `game_scarlett_master.exe` or RPF9 archives. With the supported executable beside the archives, OpenRAGE reads their tables of contents with the keys in it (the keys are not stored), so archives open at once. Names are matched to the hashes in the tables; files without a match are listed under `entries/`. Without the executable, or with another build, the explorer indexes the archives in the background and caches the results, which can take several minutes for large archives; recovered entries are then grouped by file type and offset, with model names recovered from their data where possible. Editing RPF9 archives is not supported. diff --git a/packaging/macos/README-macOS.txt b/packaging/macos/README-macOS.txt new file mode 100644 index 0000000..b159892 --- /dev/null +++ b/packaging/macos/README-macOS.txt @@ -0,0 +1,26 @@ +OpenRAGE for macOS (Apple silicon) - preview +============================================ + +This build is a preview: it is built and tested automatically, but has seen +little use on real Macs yet. Please report problems: +https://github.com/Two-Play/openrage/issues + +Starting OpenRAGE +----------------- +The programs are not signed by an Apple developer account, so macOS blocks +them the first time. After unpacking, open Terminal in this folder and run: + + xattr -dr com.apple.quarantine . + ./openrage-gui + +"openrage" is the command-line tool. "plugins" holds the example plugins; +they stay off until you turn them on in Settings > Plugins. + +Your game +--------- +The games do not run on macOS themselves, so OpenRAGE cannot find them on its +own. Choose the game folder by hand: a copy from a Windows PC, an external +drive, or the folder inside CrossOver, Whisky or a similar tool. + +Guide: https://two-play.github.io/openrage/ +Source code: https://github.com/Two-Play/openrage diff --git a/site/content/getting-started.md b/site/content/getting-started.md index dc7d76d..a609151 100644 --- a/site/content/getting-started.md +++ b/site/content/getting-started.md @@ -1,6 +1,6 @@ +++ title = "Getting started" -description = "Switch from OpenIV in minutes: download OpenRAGE for Linux or Windows and set up GTA V, GTA IV or Red Dead Redemption 2 with keys from your own copy." +description = "Switch from OpenIV in minutes: download OpenRAGE for Linux, Windows or macOS and set up GTA V, GTA IV or Red Dead Redemption 2 with keys from your own copy." [extra] docs = true @@ -10,8 +10,8 @@ toc = true ## Download a release -Ready-made builds for **Linux** (x86-64, glibc 2.35 or newer) and **Windows** (x86-64) are on the -[releases page](https://github.com/Two-Play/openrage/releases/latest). +Ready-made builds for **Linux** (x86-64, glibc 2.35 or newer), **Windows** (x86-64) and, as a preview, **macOS** +(Apple silicon) are on the [releases page](https://github.com/Two-Play/openrage/releases/latest). {{ }} @@ -58,6 +58,34 @@ To check the download, compare its hash in PowerShell with the line in `SHA256SU Get-FileHash .\openrage-*-windows-x86_64.zip -Algorithm SHA256 ``` + +
    + +### macOS + +> [!NOTE] +> The macOS build is a preview: it is built and tested automatically, but has seen little use on real +> Macs yet. Please [report problems](https://github.com/Two-Play/openrage/issues/new/choose). + +Unpack the archive. The programs are not signed by an Apple developer account, so macOS blocks them the first time; +remove the download mark in Terminal, then start the GUI, or `openrage` for the command line: + +``` +tar -xzf openrage-*-macos-arm64.tar.gz +cd openrage-*-macos-arm64 +xattr -dr com.apple.quarantine . +./openrage-gui +``` + +The games do not run on macOS themselves, so OpenRAGE cannot find them on its own: choose the game folder by hand, +for example a copy from a Windows PC, an external drive, or the folder inside CrossOver or Whisky. + +To check the download, compare its hash with the line in `SHA256SUMS.txt`: + +``` +shasum -a 256 openrage-*-macos-arm64.tar.gz +``` +
    @@ -75,7 +103,8 @@ your own copy of the game: check the game folder and click **Derive keys**. For - **GTA V Enhanced** (`GTA5_Enhanced.exe`) no longer stores all keys in the executable. In the setup dialog, choose a CodeWalker key blob (`magic.dat`) you obtained yourself under *Key blob*. It is decrypted with the key from *your* executable and checked against `common.rpf` before it is used. -- The keys are cached once, at `~/.config/openrage/gtav.keys` (Linux) or `%APPDATA%\openrage\gtav.keys` (Windows), +- The keys are cached once, at `~/.config/openrage/gtav.keys` (Linux), `%APPDATA%\openrage\gtav.keys` (Windows) or + `~/Library/Application Support/openrage/gtav.keys` (macOS), and the game folder is remembered. To add or switch games later: **File → Switch game…** > [!WARNING] diff --git a/site/content/licenses.md b/site/content/licenses.md index 6a7184e..9cdfdea 100644 --- a/site/content/licenses.md +++ b/site/content/licenses.md @@ -18,6 +18,35 @@ It ships no game files and no encryption keys. Format knowledge and ported code The same information is in the app (**Help → About OpenRAGE**), on the command line (`openrage licenses`) and in `THIRD_PARTY_LICENSES.md`, which comes with every download. +## Icons on this website + +The icons for bugs, code and pull requests come from [Lucide](https://lucide.dev) (ISC license, copyright Lucide +Contributors, portions copyright Cole Bemis as part of Feather). The Linux, Apple and Matrix logos come from +[Simple Icons](https://simpleicons.org) (CC0 1.0); they remain trademarks of their owners and only show which systems +and services OpenRAGE works with. + +
    +Lucide license (ISC) + +``` +Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). +All other copyright (c) for Lucide are held by Lucide Contributors 2022. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +``` + +
    + ## How licenses are checked Every dependency must be under a license that can be combined with the GPL-3.0: CI runs diff --git a/site/static/script.js b/site/static/script.js index 369511f..86d4c37 100644 --- a/site/static/script.js +++ b/site/static/script.js @@ -118,12 +118,13 @@ // The visitor's operating system: shown first in downloads and guides. var OS_KEY = "openrage-os"; - var OS_NAMES = { linux: "Linux", windows: "Windows" }; + var OS_NAMES = { linux: "Linux", windows: "Windows", macos: "macOS" }; function detectOS() { var p = (navigator.userAgentData && navigator.userAgentData.platform) || navigator.platform || ""; var ua = navigator.userAgent || ""; if (/win/i.test(p) || /Windows/.test(ua)) return "windows"; - if (/android/i.test(ua)) return null; + if (/android|iphone|ipad/i.test(ua)) return null; + if (/mac/i.test(p) || /Macintosh/.test(ua)) return "macos"; if (/linux/i.test(p) || /Linux|X11|CrOS/.test(ua)) return "linux"; return null; } @@ -269,6 +270,7 @@ var byKind = { linux: find(/linux.*\.tar\.gz$/i), windows: find(/windows.*\.zip$/i), + macos: find(/macos.*\.tar\.gz$/i), sums: find(/SHA256SUMS/i) }; targets.forEach(function (el) { diff --git a/site/static/style.css b/site/static/style.css index 3db183a..cdb4281 100644 --- a/site/static/style.css +++ b/site/static/style.css @@ -346,7 +346,7 @@ details.more[open] summary { margin-bottom: 1rem; } /* Download cards */ .downloads { display: grid; - grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); + grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; } .card { @@ -359,6 +359,9 @@ details.more[open] summary { margin-bottom: 1rem; } gap: 0.6rem; } .card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; } +.card h3 { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; } +.card h3 .ico { width: 1.35em; height: 1.35em; flex: none; color: var(--accent); } +.btn .ico { width: 1.1em; height: 1.1em; flex: none; } .card .btn { align-self: flex-start; margin-top: auto; } /* Docs page */ diff --git a/site/templates/components.html b/site/templates/components.html index d656077..79ae6d9 100644 --- a/site/templates/components.html +++ b/site/templates/components.html @@ -2,14 +2,15 @@ {#- Highlighted hint:
    …
    , Markdown inside with blank lines. -#} -{#- Linux / Windows tabs in Markdown: wrap each system's part in +{#- Linux / Windows / macOS tabs in Markdown: wrap each system's part in
    …
    inside
    …
    , with blank lines around the Markdown. Without JavaScript both parts are shown. -#} {#- Download buttons for the latest release. In Markdown: {{ }} -#} {% component downloads(releases: string = "https://github.com/Two-Play/openrage/releases") %}

    - Linux (.tar.gz) - Windows (.zip) + Linux (.tar.gz) + Windows (.zip) + macOS (.tar.gz, preview)

    {% endcomponent downloads %} diff --git a/site/templates/index.html b/site/templates/index.html index c549e51..e3c5ac1 100644 --- a/site/templates/index.html +++ b/site/templates/index.html @@ -18,7 +18,7 @@

    {{ x.headline | markdown(inline=true) | safe }}

    • Latest release
    • -
    • Linux & Windows
    • +
    • Linux, Windows & macOS
    • GTA V · RDR2 archives
    • GTA VI preview
    • GPL-3.0
    • @@ -153,17 +153,22 @@

      Download

      {{ x.download_intro | markdown(inline=true) | safe }}

      -

      Linux

      +

      Linux

      x86-64, glibc 2.35 or newer (.tar.gz).

      Download for Linux
      -

      Windows

      +

      Windows

      x86-64 (.zip).

      Download for Windows
      +
      +

      macOS

      +

      Apple silicon, preview (.tar.gz).

      + Download for macOS +
      -

      Build from source

      +

      Build from source

      Rust toolchain plus a few system libraries on Linux.

      Build instructions
      @@ -183,17 +188,17 @@

      {{ x.community.title }}

      {{ x.community.intro | markdown(inline=true) | safe }}

      -

      Chat on Matrix

      +

      Chat on Matrix

      Questions, help with the setup, ideas and development: #openRAGE:nope.chat.

      Join the chat
      -

      Report a bug

      +

      Report a bug

      Something does not work, or you miss a feature? Tell us on GitHub.

      Open an issue
      -

      Contribute

      +

      Contribute

      Code, documentation, notes on file formats and testing on your own game.

      How to contribute