Try   HackMD

Let RPG Maker MV/MZ deploy macOS Games under Windows environment

This article was translated using "DeepL Translator".

First of all, I believe many of you should know that in order to deploy RPG Maker MV/MZ as a macOS game, you must have a Mac computer, because if you directly use the default deployment function of RPG Maker MV/MZ itself to directly export macOS games, the following situation will occur when running on a Mac computer

So I will be using Windows 10(2004) for this tutorial.

First, download any of the zip files from the download link.
See if your game is run with NW.js or Electron.
Of course, these are the zip files I made on my old Macbook Pro.

Update Info

2022/05/03 Update part of the article.
2022/04/15 Update Electronjs version to 16.2.2, and add a tip to modify the copyright text, and application form for macOS game testing.

Download Link

- NW.js (Ver 0.49.2)
https://drive.google.com/file/d/1iEt4AkMfPHKR23gK9csMQlOIpK4Z9DMr/view?usp=sharing

- Electronjs (Ver 16.2.2)
https://drive.google.com/file/d/1KkOOR9mUxH-TcxMMlBk_iy4iOCaEvsY3/view?usp=sharing

NW.js version (Steamworks included)

Deploy your RPG Maker MV/MZ game as a "Web Browsers" version.
After deploying, open the package.json in the folder.
And edit the "name" parameter and change it to your own name.

Next, download the installation file for your operating system from the official 7-Zip website, in fact, you can also use WinRAR.

Then, open the downloaded compressed file with 7-Zip, but do not decompress it, please note this point.

Under the Game.app/Contents/Resources/app.nw/ path of 7-Zip, open the downloaded zip file with 7-Zip.
Drag and drop the file you just deployed into the zip file, and then upload the zip file directly.

If you also want to modify the Icon icon of the executable file, you can actually do so.
First, prepare an image file in png format and search for "png to icns" on the Internet.
If Windows specifies the icon file as ico format, then macOS specifies the icon file as icns format.

Then Under the Game.app/Contents/Resources/ path of 7-Zip, and the converted icns file rename to app.icns and drag and drop it into the zip file to replace it.

★ Steamworks setup tutorial

[Download Steamworks SDK]
In addition, if your RPG Maker MV/MZ game is going to be available on Steam, you need to have at least a Steamworks developer account.
First, you must have at least a Steamworks developer account.
After logging in, go to the following link to download the Steamworks SDK, which must be at least version 1.5.0 or higher.
https://partner.steamgames.com/doc/sdk

[Download Node binary file]
Next, go to the following URL and download the specified binary file as I've set it up on the left.
Also, this site requires a GitHub account to download.
https://greenworks-prebuilds.armaldio.xyz

[Download greenworks.js file]
Download the files for greenworks.js.
https://github.com/greenheartgames/greenworks/raw/master/greenworks.js

Then, after extracting the Steamworks SDK file you just downloaded, get some specific files from the sdk folder
and put them in the lib folder of your game folder, as shown in the following path:

sdk\redistributable_bin\ steam_api.dll → Game\lib\ steam_api.dll

sdk\redistributable_bin\ steam_api.lib → Game\lib\ steam_api.lib

sdk\redistributable_bin\osx\ libsteam_api.dylib → Game\lib\ libsteam_api.dylib

sdk\public\steam\lib\osx\ libsdkencryptedappticket.dylib → Game\lib\ libsdkencryptedappticket.dylib

Place the freshly downloaded Node binary file and greenworks.js in the following paths:

greenworks-osx64.node → Game\lib\ greenworks-osx64.node

greenworks.js → Game\ greenworks.js

Then create the text file steam_appid.txt in the game folder.
and enter the text with the App ID you want to distribute on the Steam platform.

steam_appid.txt → Game\ steam_appid.txt

Finally, under the Game.app/Contents/Resources/app.nw/ path of 7-Zip
Drag and drop all the files from the game folder you just played into the compressed file.
Then open your web browser and log into Steamworks backend.
Upload the zip file directly to the Steamworks backend build.

Electron Version

Deploy your RPG Maker MV/MZ game as a "Web Browsers" version.
After deploying, follow the link in my article below to export in a Windows environment.
And open the package.json and edit the "asar" parameter to true.

[Windows]Use Electron to deploy output RPG Maker MV/MZ games
https://hackmd.io/@Mirai/rpg_maker_electron_win_eng

Next, download the installation file for your operating system from the official 7-Zip website, in fact, you can also use WinRAR.

Then, open the downloaded compressed file with 7-Zip, but do not decompress it, please note this point.

Under the Game.app/Contents/Resources/ path in 7-Zip
In the dist/win-unpacked/resources/ folder where you just deployed Electron, drag and drop the app.asar directly into the zip file, and then upload the zip file directly.

If you also want to modify the Icon icon of the executable file, you can actually do so.
First, prepare an image file in png format and search for "png to icns" on the Internet.
If Windows specifies the icon file as ico format, then macOS specifies the icon file as icns format.

Then Under the Game.app/Contents/Resources/ path of 7-Zip, and the converted icns file rename to electron.icns and drag and drop it into the zip file to replace it.

If you need to modify the copyright text of Game.app, just go to 7-Zip / WinRAR under Game.app/Contents/Resources/ and change the Copyright © 2022 Mirai text in to your copyrighted text in the Info.plist file and save it as your own.

Finally, I have also provided a link to a Google Form to help you test the game on the MacOS platform.
https://docs.google.com/forms/d/e/1FAIpQLSewTuah8wCQ3PSwyocsi_LpT1wIfsN0893NUUYw_o9qoJejjg/viewform?usp=sf_link

If the error message "Please move the Game.app to a different folder." pops up on the game screen when you first run the game, you can create a folder and move Gamp.app to this folder and run the game again.

Mirai - Patreon:
https://www.patreon.com/MiraiDiary

Mirai - Twitter(X):
https://twitter.com/Mirai_so_Sad

Mirai - itch.io
https://miraisosad.itch.io

Mirai - Instagram
https://www.instagram.com/miraisosad/

tags: 貓咪學園 NekoGakuen macOS RPG Maker RPG Maker MV RPG Maker MZ