The basic need is on macOS the directory where things like package.json live (and Mods folder and m3.js file) is not the same folder as where the executable is. Also, this folder is hidden can't be accessed in Finder (can't select that directory via a filepicker). Only the directory with the executeable (Melvor Idle.app) is selectable.
My solution is to introduce a new packageDir. On Windows, dir and packageDir will be the same. On macOS, the packageDir will be dir appended with the hidden directory path.
I've tested by installing via file, via URL and using the ones listed in the app. I poked around at the other bits and everything seemed to work.
The basic need is on macOS the directory where things like package.json live (and Mods folder and m3.js file) is not the same folder as where the executable is. Also, this folder is hidden can't be accessed in Finder (can't select that directory via a filepicker). Only the directory with the executeable (Melvor Idle.app) is selectable.
My solution is to introduce a new packageDir. On Windows, dir and packageDir will be the same. On macOS, the packageDir will be dir appended with the hidden directory path.
I've tested by installing via file, via URL and using the ones listed in the app. I poked around at the other bits and everything seemed to work.