Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

danvataylor

2
Posts
1
Following
A member registered Mar 01, 2021

Recent community posts

(1 edit)

Hey!

Looking back, I realize I've missed a step. After Step 3 (navigating to the donsol-js-master folder in command promt), you should run the command: npm install electron-packager before going to Step 4 (which allows you to execute npm run build_win without getting an error). I will edit my post to add this.

Hopefully doing that will fix the problem. I think what's happening is that you're using Electron v25.1.1 to compile, and not v7.1.12 (the version defined at the end of the package.json file which should look like:

 "devDependencies": {
    "electron": "^7.1.12",
    "electron-packager": "^14.2.1"
  }
}

As a test, I changed "electron": "^7.1.12" to "electron": "^25.1.1" before running npm run build_win, and also ended up just getting a blank black window when running Donsol.exe. Considering Electron v7 came out the same year the code was last updated (2020 at the time of writing), I'm guessing the source code is referencing something that's depreciated in later versions of Electron.

(4 edits)

To compile donsol-js as an Electron app (in Windows):

1) Download and extract this ZIP: https://github.com/neauoire/donsol-js/archive/master.zip

2) Install Node.js: https://nodejs.org/

3) Open Command Prompt, and navigate (using the cd command) into the donsol-js-master folder you extracted.

4)  Type: npm install electron-packager into the same Command Prompt window, and hit ENTER to install electron-packager.

5) Type: npm run build_win into the same Command Prompt window, and hit ENTER to build the Electron app.

6) In the donsol-js-master folder, there will be a new folder named ~ . In File Explorer, click through all the sub-directories (for me it was ~ , then Desktop, and finally Donsol-win32-x64), and at the end you'll find the file Donsol.exe, which when you open it, should run the game!

Note: Although I haven't tested it, the commands npm run build_osx and npm run build_linux should be the scripts you would use instead of npm run build_win (to build it on macOS and Linux respectively).