Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(4 edits) (+1)

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).

Hi,


I know this is a little old but I followed these instructions & was able to compile "Donsol.exe"—however, it just opens to a black screen. I'm pretty unfamiliar with Javascript, is it possible I missed a step? I'm using Electron v25.1.1

(1 edit) (+1)

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.

Thank you so much! Glad to have a copy of Donsol & a better understanding in case I run into this again :)


The "package" and "package-lock" .json files had specified the newest versions of electron, so I changed those. When I installed electron-packager, it downloaded v7.3.3, which must be the most recent compatible version with the source code. I'm on Windows 10 in case this is helpful for anyone else :)