Open RoryMB opened 2 years ago
@RoryMB thank you for the detailed info!
We went for distributing a jar because, without notarization, we found it was really hard for people to run the game.
Usually the game runs fine while you're on the machine from which you created the files, but starts to fail when you have downloaded it from the web
In the latest otherplatforms
builds there is a .command
script that does something similar to what you suggest.
Even that file though, when downloaded, is blocked, we found this to be a decent compromise as you can do cat original-launcher.command > my-launcher.command
and create "your" copy of the launcher (after giving it executable permissions), and this is a simple enough procedure for people to follow even when they're not technically versed.
I'm not a mac user, do you know if there's a better way to make this reliably easy to setup, and easy to play? I could write a small bash install script that does what you suggest, but I'm not sure if that would work once you run it on a different computer than the one creating it
Suggested MacOS Improvement (tested on M1)
The current instructions for playing on a Mac involve opening a Terminal and running a Java command to start the application every time. To avoid this, only 3 things need to be changed:
Below, I outline how any user can do this, but the distributed zip file could also be modified in the same way so that users wouldn't have to do this.
As always, don't run code in a Terminal from untrusted sources without checking it yourself. Some resources for the commands I used in the instructions can be found here:
Instructions
1. Setup
terminal
, and press entercd
(MAKE SURE YOU PUT A SPACE AFTER cd !!)2. Replacing the executable
cat > pokemon-wilds
and press enter (This will let us create a file with the below snippet of code)username@computer MacOS %
) should appear after you pressed control+D to indicate that it has succeeded3. Marking the executable as executable
chmod u+x pokemon-wilds
and press enter (This tells the computer we want to be able to execute the code we just wrote)4. Changing the directory into an application
Use .app
in the popup5. Bypassing security settings for this application
Ok
orCancel
in the popup (Apple tries to warn us that they don't know where this game came from)Open
Open
in the popup (We have to tell our computer to trust the game)6. Cleanup