Hello Mac users,
Want to play TiTS, but can't? I have a solution, if you want to make your hands dirty
It should launch the game \o/
@Gedan It looks like there is code to detect the OS it is running on in the main.js file (if (process.platform === "linux")).
Would it be possible to add a detection for macos (process.platform === "darwin"), even without building on it, so we can remove the step where we do a replace all ? (which can be seriously dangerous)
Want to play TiTS, but can't? I have a solution, if you want to make your hands dirty
- First, download the latest TiTS package you can (backers or public)
- Unzip it and remember WHERE you unziped it
- Download node.js. You need the LTS / .pkg version for macos.
- Install it.
- In a terminal, type "npm install electron --save-dev" to install electron.
- After making a backup of it, edit the file {TiTS directory}/resources/app/image-manifest.json to change ALL "\\" to "/" (I don't know if this is specific to backers build, you let me know). Use a real text editor for this. Avoid TextEdit (Text Wrangler and Visual Studio Code are good for that)
- In a termnal, go to {TiTS directory}/resources/app , then type "npx electron ." (with the space and dot at the end).
It should launch the game \o/
@Gedan It looks like there is code to detect the OS it is running on in the main.js file (if (process.platform === "linux")).
Would it be possible to add a detection for macos (process.platform === "darwin"), even without building on it, so we can remove the step where we do a replace all ? (which can be seriously dangerous)
Last edited: