if (APPLE)
install(DIRECTORY
- setup/apple/Contents
+ setup/macos/Contents
DESTINATION ${APPLE_INSTALL_PREFIX}
)
install(DIRECTORY
DESTINATION ${APPLE_INSTALL_PREFIX}/Contents/Prefix/share
)
install(PROGRAMS
- setup/apple/netradiant
+ setup/macos/NetRadiant
DESTINATION ${APPLE_INSTALL_PREFIX}/Contents/MacOS
)
endif ()
+++ /dev/null
-<?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>CFBundleDisplayName</key>
- <string>NetRadiant</string>
- <key>CFBundleExecutable</key>
- <string>netradiant</string>
- <key>CFBundleIconFile</key>
- <string>netradiant.icns</string>
- <key>CFBundleIdentifier</key>
- <string>org.xonotic.netradiant</string>
- <key>CFBundleName</key>
- <string>NetRadiant</string>
- <key>CFBundlePackageType</key>
- <string>APPL</string>
- <key>CFBundleShortVersionString</key>
- <string>1.5.0</string>
- <key>CFBundleVersion</key>
- <string>1.5.0</string>
- <key>LSMinimumSystemVersion</key>
- <string>10.7</string>
- <key>NSHighResolutionCapable</key>
- <false/>
-</dict>
-</plist>
+++ /dev/null
-#! /usr/bin/env bash
-
-set -o physical
-
-script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
-
-bundle_dir="$(cd "${script_dir}/../Prefix"; pwd)"
-
-echo "Starting NetRadiant in ${bundle_dir}"
-
-cd "${bundle_dir}"
-
-export FC_DEBUG=1024
-
-# if bundled
-if [ -d "${bundle_dir}/share/icons/hicolor" ]
-then
- export FONTCONFIG_PATH="${bundle_dir}/etc/fonts"
-
- # export GDK_GL_LIBGL_PATH="${bundle_dir}/lib/libGL.1.dylib"
- # export GDK_GL_LIBGLU_PATH="${bundle_dir}/lib/libGLU.1.dylib"
-
- export GDK_PATH="${bundle_dir}"
-
- export GDK_PIXBUF_MODULE_FILE="${bundle_dir}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"
-
- export GTK_IM_MODULE_FILE="${bundle_dir}/lib/gtk-2.0/2.10.0/immodules.cache"
-
- export GOBJECT_PATH="${bundle_dir}"
-
- export GTK_DATA_PREFIX="${bundle_dir}"
- export GTK_EXE_PREFIX="${bundle_dir}"
- export GTK_PATH="${bundle_dir}"
-fi
-
-if [ "$(defaults read -g AppleInterfaceStyle 2>/dev/null)" = 'Dark' ]
-then
- color='dark'
-else
- color='light'
-fi
-
-gtkrc_file="${bundle_dir}/share/themes/Mojave-${color}/gtk-2.0/gtkrc"
-
-if [ -f "${gtkrc_file}" ]
-then
- export GTK2_RC_FILES="${gtkrc_file}"
-fi
-
-exec ./netradiant "${@}"
--- /dev/null
+<?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>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleName</key>
+ <string>NetRadiant</string>
+ <key>CFBundleDisplayName</key>
+ <string>NetRadiant</string>
+ <key>CFBundleIdentifier</key>
+ <string>org.xonotic.netradiant</string>
+ <key>CFBundleExecutable</key>
+ <string>NetRadiant</string>
+ <key>CFBundleIconFile</key>
+ <string>netradiant.icns</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.5.0</string>
+ <key>CFBundleVersion</key>
+ <string>1.5.0</string>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>map</string>
+ </array>
+ <key>NSHighResolutionCapable</key>
+ <false/>
+ <key>LSMinimumSystemVersion</key>
+ <string>10.7</string>
+</dict>
+</plist>
--- /dev/null
+#! /usr/bin/env bash
+
+set -o physical
+
+script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
+
+bundle_dir="$(cd "${script_dir}/../Prefix"; pwd)"
+
+echo "Starting NetRadiant in ${bundle_dir}"
+
+cd "${bundle_dir}"
+
+export FC_DEBUG=1024
+
+# if bundled
+if [ -d "${bundle_dir}/share/icons/hicolor" ]
+then
+ export FONTCONFIG_PATH="${bundle_dir}/etc/fonts"
+
+ # export GDK_GL_LIBGL_PATH="${bundle_dir}/lib/libGL.1.dylib"
+ # export GDK_GL_LIBGLU_PATH="${bundle_dir}/lib/libGLU.1.dylib"
+
+ export GDK_PATH="${bundle_dir}"
+
+ export GDK_PIXBUF_MODULE_FILE="${bundle_dir}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"
+
+ export GTK_IM_MODULE_FILE="${bundle_dir}/lib/gtk-2.0/2.10.0/immodules.cache"
+
+ export GOBJECT_PATH="${bundle_dir}"
+
+ export GTK_DATA_PREFIX="${bundle_dir}"
+ export GTK_EXE_PREFIX="${bundle_dir}"
+ export GTK_PATH="${bundle_dir}"
+fi
+
+if [ "$(defaults read -g AppleInterfaceStyle 2>/dev/null)" = 'Dark' ]
+then
+ color='dark'
+else
+ color='light'
+fi
+
+gtkrc_file="${bundle_dir}/share/themes/Mojave-${color}/gtk-2.0/gtkrc"
+
+if [ -f "${gtkrc_file}" ]
+then
+ export GTK2_RC_FILES="${gtkrc_file}"
+fi
+
+exec ./netradiant "${@}"