CherryMace / melvor-mod-manager

A tool to allow for quick injection of userscripts and browser extensions into the Steam edition of Melvor Idle
https://CherryMace.github.io/melvor-mod-manager/
MIT License
41 stars 8 forks source link

support for macos #4

Closed s0hanian closed 3 years ago

s0hanian commented 3 years ago

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.