Ecks1337 / RyuSAK

GNU General Public License v3.0
1.21k stars 77 forks source link

Here is how to run this on Mac: #28

Closed vesper8 closed 1 year ago

vesper8 commented 1 year ago

Thanks to https://www.youtube.com/watch?v=5P7sQnYGUxU for providing a tutorial on how to run this on Mac.

I ran into two issues when trying to do this on my Apple Silicon mac so I thought I would share my solutions here.

First you need to install npm or yarn. There are several ways to do that, the easiest is probably to install Homebrew first and then install either of those via Homebrew.

I personally prefer Yarn so I used this. The above video does mention how to install Homebrew and NPM. To install Yarn would simply do brew install yarn

Then clone this repository, cd into it and run either npm install or just yarn

Lastly, start up RuySAK by running either npm run start or yarn start

It's possible that this will just work and you'll be good to go, follow the above tutorial for configuration steps.

In my case I ran into two errors.

The first one

Error: Expected plugin to either be a plugin instance or a { name, config } object but found @electron-forge/plugin-webpack

Required me to modify the forge.config.js file and replace this section

"plugins": [
    [
      "@electron-forge/plugin-webpack",
      {
        "mainConfig": "./webpack.main.config.js",
        "renderer": {
          "config": "./webpack.renderer.config.js",
          "entryPoints": [
            {
              "html": "./src/index.html",
              "js": "./src/renderer.ts",
              "name": "main_window"
            }
          ]
        }
      }
    ]
  ],

by this

  "plugins": [
    {
      "name": "@electron-forge/plugin-webpack",
      "config": {
        "mainConfig": "./webpack.main.config.js",
        "renderer": {
          "config": "./webpack.renderer.config.js",
          "entryPoints": [
            {
              "html": "./src/index.html",
              "js": "./src/renderer.ts",
              "name": "main_window"
            }
          ]
        }
      }
    }
  ],

It's just a minor syntax change. That solves that issue.

Then I received this error:

An unhandled exception has occurred inside Forge: listen EADDRINUSE: address already in use :::9000

This was also easily solved by adding "loggerPort": "9001" to my forge.config.js

So it now looks like this:

  "plugins": [
    {
      "name": "@electron-forge/plugin-webpack",
      "config": {
        "mainConfig": "./webpack.main.config.js",
        "renderer": {
          "config": "./webpack.renderer.config.js",
          "entryPoints": [
            {
              "html": "./src/index.html",
              "js": "./src/renderer.ts",
              "name": "main_window"
            }
          ]
        },
        "loggerPort": "9001"
      }
    }
  ],

And voila. RuySAK runs perfectly on Mac now!