r/SMAPI • u/Ms_AU • Dec 14 '24
discussion MacOS false malware solution
EDIT: Updated instructions have been posted to the wiki:
https://stardewvalleywiki.com/Modding:Installing_SMAPI_on_Mac
Original post: If you are a Mac user and can no longer get the codesign solution to work, our workaround was to recompile SMAPI locally and install that version over top of the released version. Here are the general steps we used for 4.1.9 installed via Steam (when prompted type the administrator password to sudo):
Force quit Steam
Download and install SMAPI 4.1.9 normally
Download the source code .tar.gz from github (Download from GitHub) and save to /Users/$USER/Downloads
Open it to extract all files
Open a terminal
Run:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install --cask dotnet-sdk
cd /Users/$USER/Downloads/SMAPI-4.1.9/build/unix
edit prepare-install-package.sh in your favorite text editor (We used vim)
add a # at the beginning of line 15 (this effectively removes the existing line 15) and add the following right after (new line 16):
gamePath="/Users/$USER/Library/Application Support/Steam/steamapps/common/Stardew Valley/Contents/MacOS"
./prepare-install-package.sh 4.1.9
sudo cp /Users/$USER/Downloads/SMAPI-4.1.9/src/SMAPI.Installer/bin/Release/win-x64/SMAPI.* /Users/$USER/Library/Application\ Support/Steam/steamapps/common/Stardew\ Valley/Contents/MacOS**/**
Launch steam and run SDV
If you run into problems feel free to reply to this post and we will do our best to help you get back up and running! Props to u/Pathoschild for maintaining SMAPI in the first place and consulting with us!
1
u/Martrix08 Dec 25 '24 edited Dec 25 '24
it works!
some warm notice:
make sure u followed all the instructions in the linked wiki(very important)
before 'brew install', complete the instructions of 'next step' generated in the terminal after step 5.1
step 6,8,9 actually require u to enter those codes in the terminal(this might be obivious,but as a computer newbie i really got confused at the first time)
after entering the code in step 9,there might be an error message says 'cp: ...is not a directory', but according to my experience it seems that this won't affect the successful running of the game