-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes the github workflow and adds the option to install Lovey on macOS as an app bundle in the user applications folder, complete with a unique icon. Updates Readme to accomodate.
- Loading branch information
1 parent
3224915
commit 07123e0
Showing
7 changed files
with
166 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/bash | ||
gamename="Balatro" | ||
|
||
workingpath=$(cd "$(dirname "$0")"; pwd) | ||
assetpath="${workingpath}/assets/" | ||
|
||
if ! [ -d "${workingpath}/${gamename}.app" ]; then | ||
echo | ||
echo "Balatro not found. Did you place everything in the right directory?" | ||
echo | ||
read -n1 -r -p "Press any key to exit..." key | ||
exit | ||
fi | ||
|
||
gamebundle="${workingpath}/${gamename}.app" | ||
|
||
bundlepath="/Users/$USER/Applications/${gamename} + Mods.app" | ||
contentpath="${bundlepath}/Contents" | ||
|
||
echo | ||
echo "Generating bundle..." | ||
mkdir -p "${contentpath}" | ||
cd "${contentpath}" | ||
mkdir MacOS | ||
mkdir Resources | ||
|
||
echo | ||
echo "Copying assets..." | ||
ln -s "${gamebundle}" ./MacOS/ | ||
mv "${assetpath}/run_lovely.sh" ./MacOS/run_lovely | ||
mv "${assetpath}/info.plist" ./ | ||
mv "${workingpath}/liblovely.dylib" ./MacOS/ | ||
mv "${assetpath}/application.icns" ./Resources/ | ||
|
||
chmod +x ./MacOS/run_lovely | ||
echo "Signing application..." | ||
codesign -s - --deep "${bundlepath}/Contents/MacOS/run_lovely" | ||
|
||
echo | ||
echo "Cleaning up..." | ||
rm "${workingpath}/install_lovely.sh" | ||
rm -rf "${workingpath}/assets" | ||
|
||
echo | ||
read -n1 -r -p "Installation complete! Press any key to exit..." key | ||
open /Users/$USER/Applications | ||
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>English</string> | ||
<key>CFBundleExecutable</key> | ||
<string>run_lovely</string> | ||
<key>CFBundleIconFile</key> | ||
<string>application.icns</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>com.Balatro.localthunk.modded</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>Balatro</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleVersion</key> | ||
<string>1.0</string> | ||
<key>CFBundleSignature</key> | ||
<string>LoVe</string> | ||
<key>LSApplicationCategoryType</key> | ||
<string>public.app-category.games</string> | ||
<key>LSMinimumSystemVersion</key> | ||
<string>10.7</string> | ||
<key>NSHighResolutionCapable</key> | ||
<true/> | ||
<key>NSHumanReadableCopyright</key> | ||
<string>© 2024 LocalThunk Inc.</string> | ||
<key>NSPrincipalClass</key> | ||
<string>NSApplication</string> | ||
<key>NSSupportsAutomaticGraphicsSwitching</key> | ||
<false/> | ||
</dict> | ||
</plist> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
gamename="Balatro" | ||
workingpath=$(cd "$(dirname "$0")"; pwd) | ||
|
||
export DYLD_INSERT_LIBRARIES=liblovely.dylib | ||
|
||
cd "${workingpath}" | ||
./$gamename.app/Contents/MacOS/love "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters