Skip to content

Commit

Permalink
Add MacOS support
Browse files Browse the repository at this point in the history
  • Loading branch information
dm4web committed Dec 19, 2024
1 parent 2b6ef1f commit 1e8baf6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
build_matrix:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest, windows-latest, macos-latest]
feature: ["cli", "egui"]

runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -36,6 +36,12 @@ jobs:
mkdir result
cp target/release/rusty-psn result
- name: Move binary (MacOS)
if: ${{ matrix.os == 'macos-latest' }}
run: |
mkdir result
cp target/release/rusty-psn result
- name: Move binary (Windows)
if: ${{ matrix.os == 'windows-latest' }}
run: |
Expand All @@ -49,6 +55,13 @@ jobs:
name: rusty-psn-${{ matrix.feature }}-linux
path: result

- name: Upload artifact (MacOS)
if: ${{ matrix.os == 'macos-latest' }}
uses: actions/upload-artifact@v4
with:
name: rusty-psn-${{ matrix.feature }}-macos
path: result

- name: Upload artifact (Windows)
if: ${{ matrix.os == 'windows-latest' }}
uses: actions/upload-artifact@v4
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ A simple tool to grab updates for PS3 & PS4 games, directly from Sony's servers

## Usage
Go to the [latest release](https://github.com/RainbowCookie32/rusty-psn/releases/latest) page and download the file you'll use from the Assets section:
- If you want to use the GUI version of rusty-psn, then download the `rusty-psn-egui-windows.zip` or `rusty-psn-egui-linux.zip` file, depending on your OS.
- If you want to use the CLI version of rusty-psn, then download the `rusty-psn-cli-windows.zip` or `rusty-psn-cli-linux.zip` file, depending on your OS.
- If you are using macOS, you can use the Dockerfile below to run the CLI build of rusty-psn. While the egui build might be able to compile and run natively on macOS, I don't have the means to test it so it's an unsupported configuration. You are on your own.
- If you want to use the GUI version of rusty-psn, then download the `rusty-psn-egui-windows.zip`, `rusty-psn-egui-linux.zip` or `rusty-psn-egui-macos.zip` file, depending on your OS.
- If you want to use the CLI version of rusty-psn, then download the `rusty-psn-cli-windows.zip`, `rusty-psn-cli-linux.zip` or `rusty-psn-cli-macos.zip` file, depending on your OS.

After the selected file is downloaded, **extract it** and run the executable file. For the Linux egui builds, you'll need to install some dependencies (sourced from [egui's README](https://github.com/emilk/egui/blob/0.26.2/README.md)):

Expand Down

0 comments on commit 1e8baf6

Please sign in to comment.