use asset catalog
@ -0,0 +1,68 @@
 | 
			
		||||
{
 | 
			
		||||
  "images" : [
 | 
			
		||||
    {
 | 
			
		||||
      "filename" : "icon_16x16.png",
 | 
			
		||||
      "idiom" : "mac",
 | 
			
		||||
      "scale" : "1x",
 | 
			
		||||
      "size" : "16x16"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "filename" : "icon_32x32.png",
 | 
			
		||||
      "idiom" : "mac",
 | 
			
		||||
      "scale" : "2x",
 | 
			
		||||
      "size" : "16x16"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "filename" : "icon_32x32-1.png",
 | 
			
		||||
      "idiom" : "mac",
 | 
			
		||||
      "scale" : "1x",
 | 
			
		||||
      "size" : "32x32"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "filename" : "icon_32x32@2x.png",
 | 
			
		||||
      "idiom" : "mac",
 | 
			
		||||
      "scale" : "2x",
 | 
			
		||||
      "size" : "32x32"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "filename" : "icon_128x128.png",
 | 
			
		||||
      "idiom" : "mac",
 | 
			
		||||
      "scale" : "1x",
 | 
			
		||||
      "size" : "128x128"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "filename" : "icon_128x128@2x.png",
 | 
			
		||||
      "idiom" : "mac",
 | 
			
		||||
      "scale" : "2x",
 | 
			
		||||
      "size" : "128x128"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "filename" : "icon_256x256.png",
 | 
			
		||||
      "idiom" : "mac",
 | 
			
		||||
      "scale" : "1x",
 | 
			
		||||
      "size" : "256x256"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "filename" : "icon_512x512-1.png",
 | 
			
		||||
      "idiom" : "mac",
 | 
			
		||||
      "scale" : "2x",
 | 
			
		||||
      "size" : "256x256"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "filename" : "icon_512x512.png",
 | 
			
		||||
      "idiom" : "mac",
 | 
			
		||||
      "scale" : "1x",
 | 
			
		||||
      "size" : "512x512"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "filename" : "icon_512x512@2x.png",
 | 
			
		||||
      "idiom" : "mac",
 | 
			
		||||
      "scale" : "2x",
 | 
			
		||||
      "size" : "512x512"
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "info" : {
 | 
			
		||||
    "author" : "xcode",
 | 
			
		||||
    "version" : 1
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
| 
		 After Width: | Height: | Size: 5.3 KiB  | 
| 
		 After Width: | Height: | Size: 24 KiB  | 
| 
		 After Width: | Height: | Size: 577 B  | 
| 
		 After Width: | Height: | Size: 24 KiB  | 
| 
		 After Width: | Height: | Size: 1.0 KiB  | 
| 
		 After Width: | Height: | Size: 1.0 KiB  | 
| 
		 After Width: | Height: | Size: 1.8 KiB  | 
| 
		 After Width: | Height: | Size: 144 KiB  | 
| 
		 After Width: | Height: | Size: 144 KiB  | 
| 
		 Before Width: | Height: | Size: 899 KiB After Width: | Height: | Size: 696 KiB  | 
							
								
								
									
										6
									
								
								Sources/Voxelotl/Assets.xcassets/Contents.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						@ -0,0 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
  "info" : {
 | 
			
		||||
    "author" : "xcode",
 | 
			
		||||
    "version" : 1
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
add_executable(Voxelotl MACOSX_BUNDLE
 | 
			
		||||
  Voxelotl.icns
 | 
			
		||||
  Assets.xcassets
 | 
			
		||||
  Application.swift
 | 
			
		||||
  main.swift)
 | 
			
		||||
 | 
			
		||||
@ -14,8 +14,8 @@ set_target_properties(Voxelotl PROPERTIES
 | 
			
		||||
  MACOSX_BUNDLE_BUNDLE_VERSION "${PROJECT_VERSION}"
 | 
			
		||||
  MACOSX_BUNDLE_SHORT_VERSION_STRING "${PROJECT_VERSION}"
 | 
			
		||||
  MACOSX_BUNDLE_GUI_IDENTIFIER "gay.pizza.voxelotl"
 | 
			
		||||
  MACOSX_BUNDLE_ICON_FILE "Voxelotl"
 | 
			
		||||
  MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist.in"
 | 
			
		||||
  XCODE_ATTRIBUTE_ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon"
 | 
			
		||||
  BUILD_RPATH "@loader_path/../Frameworks"
 | 
			
		||||
  XCODE_ATTRIBUTE_SKIP_INSTALL "NO"
 | 
			
		||||
  XCODE_ATTRIBUTE_INSTALL_PATH "$(LOCAL_APPS_DIR)"
 | 
			
		||||
@ -23,7 +23,7 @@ set_target_properties(Voxelotl PROPERTIES
 | 
			
		||||
  XCODE_SCHEME_ENABLE_GPU_FRAME_CAPTURE_MODE "Metal"
 | 
			
		||||
  XCODE_ATTRIBUTE_CODE_SIGN_ENTITLEMENTS "${CMAKE_CURRENT_SOURCE_DIR}/Voxelotl.entitlements"
 | 
			
		||||
  MACOSX_BUNDLE_COPYRIGHT "© 2024 Gay Pizza Specifications")
 | 
			
		||||
set_source_files_properties(Voxelotl.icns PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
 | 
			
		||||
source_group("Resources" FILES Voxelotl.icns)
 | 
			
		||||
set_source_files_properties(Assets.xcassets PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
 | 
			
		||||
source_group("Resources" FILES Assets.xcassets)
 | 
			
		||||
 | 
			
		||||
source_group("Source Files" REGULAR_EXPRESSION "\\.(swift)$")
 | 
			
		||||
 | 
			
		||||
@ -8,10 +8,8 @@
 | 
			
		||||
	<string>${MACOSX_BUNDLE_EXECUTABLE_NAME}</string>
 | 
			
		||||
	<key>CFBundleGetInfoString</key>
 | 
			
		||||
	<string>${MACOSX_BUNDLE_INFO_STRING}</string>
 | 
			
		||||
	<key>CFBundleIconFile</key>
 | 
			
		||||
	<string>${MACOSX_BUNDLE_ICON_FILE}</string>
 | 
			
		||||
	<key>CFBundleIconName</key>
 | 
			
		||||
	<string>${MACOSX_BUNDLE_ICON_FILE}</string>
 | 
			
		||||
	<string>AppIcon</string>
 | 
			
		||||
	<key>CFBundleIdentifier</key>
 | 
			
		||||
	<string>${MACOSX_BUNDLE_GUI_IDENTIFIER}</string>
 | 
			
		||||
	<key>CFBundleInfoDictionaryVersion</key>
 | 
			
		||||
 | 
			
		||||