Skip to content

Commit

Permalink
[macos] Add automatic git version to Info.plist
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Jun 16, 2024
1 parent 9bda947 commit ccaa62f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions platforms/macos/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<key>NSHighResolutionCapable</key>
<string>True</string>
<key>CFBundleVersion</key>
<string>1.0.0</string>
<string>@version@</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<string>@version@</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion platforms/macos/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ APP_NAME=Gearcoleco
bundle:
rm -rf $(APP_NAME).app
mkdir -p $(APP_NAME).app/Contents/{MacOS,Resources,Frameworks}
cp Info.plist $(APP_NAME).app/Contents/
sed -e "s/@version@/$(GIT_VERSION)/g" Info.plist > $(APP_NAME).app/Contents/Info.plist
cp $(DYLIB_PATH)/$(SDL_DYLIB) $(APP_NAME).app/Contents/Frameworks/
cp iconfile.icns $(APP_NAME).app/Contents/Resources/
cp $(TARGET) $(APP_NAME).app/Contents/MacOS/
Expand Down

0 comments on commit ccaa62f

Please sign in to comment.