Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Here is how to run this on Mac: #28

Closed
vesper8 opened this issue Dec 1, 2022 · 0 comments · Fixed by #32
Closed

Here is how to run this on Mac: #28

vesper8 opened this issue Dec 1, 2022 · 0 comments · Fixed by #32

Comments

@vesper8
Copy link

vesper8 commented Dec 1, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant