From 99c437573f1748832f6eb30c5f4eeaf00fd72cf2 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 3 Sep 2023 14:19:27 +0200 Subject: Makefile: Try to build .app bundle I'm trying to set up the Make targets to build a .app bundle, but I'm having trouble handling file names with spaces. I sort of managed to do it using the strategy articulated by andrewdotn (https://stackoverflow.com/users/14558/andrewdotn) with "${@}" in this Stack Overflow answer: https://stackoverflow.com/questions/14639906/can-gnu-make-handle-spaces/14640047#14640047 However, it doesn't seem to be working in the `subst` or `patsubst` calls using "%" for the localisation files. I get the error: make: *** No rule to make target `en.lproj', needed by `app'. Stop. The error looks like it's saying that the `build/$(APP_NAME).app/Contents/Resources/%.lproj` rule couldn't be found, even though it is declared. It looks like I'm going to have to explore other options to handle file names, or at least application names, with spaces. I copied the Info.plist file from Mass-menu and updated some fields to work with this project. I also copied and modified the Make rules from Mass-menu, but that project doesn't need to handle spaces in file names. --- Info.plist | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Info.plist (limited to 'Info.plist') diff --git a/Info.plist b/Info.plist new file mode 100644 index 0000000..ae7efd1 --- /dev/null +++ b/Info.plist @@ -0,0 +1,28 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + Base Windowed Application + CFBundleExecutable + Application + CFBundleIdentifier + com.teddywing.Base-Windowed-Application + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + Base Windowed Application + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1.0 + LSMinimumSystemVersion + 10.12 + NSHumanReadableCopyright + Copyright © 2023 Teddy Wing + + -- cgit v1.2.3