Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Generated CMake Xcode project runs Xestia Calendar
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 6 Dec 2020 10:11:58 +0000 (10:11 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 6 Dec 2020 10:11:58 +0000 (10:11 +0000)
source/CMakeFunctions/CopyLibraries.cmake
source/os/osx/Info.plist [new file with mode: 0644]
source/os/osx/XestiaCalendar.icns [new file with mode: 0644]
source/tools/generateicnsfile.sh [new file with mode: 0755]

index d5371ef..eee5be2 100644 (file)
@@ -187,7 +187,8 @@ function(GatherLibrariesForCopying source)
                 string(APPEND libraryPath "/../Frameworks/${refname}")
                 list(APPEND sfmllibs ${libraryPath})
             elseif(line MATCHES "^.*libcurl.[0-9]\\.dylib " OR
-                   line MATCHES "^.*libxml2.[0-9]\\.dylib ")
+                   line MATCHES "^.*libxml2.[0-9]\\.dylib " OR
+                   line MATCHES "^.*libsqlite3.[0-9]\\.dylib ")
                 string(REGEX REPLACE "dylib .*" "dylib" line "${line}")
                 set(lib ${line})
 
diff --git a/source/os/osx/Info.plist b/source/os/osx/Info.plist
new file mode 100644 (file)
index 0000000..b0a8c01
--- /dev/null
@@ -0,0 +1,34 @@
+<?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>$(EXECUTABLE_NAME)</string>
+       <key>CFBundleGetInfoString</key>
+       <string></string>
+       <key>CFBundleIconFile</key>
+       <string>XestiaCalendar</string>
+       <key>CFBundleIdentifier</key>
+       <string>uk.co.xestia.calendar</string>
+       <key>CFBundleInfoDictionaryVersion</key>
+       <string>6.0</string>
+       <key>CFBundleLongVersionString</key>
+       <string></string>
+       <key>CFBundleName</key>
+       <string></string>
+       <key>CFBundlePackageType</key>
+       <string>APPL</string>
+       <key>CFBundleShortVersionString</key>
+       <string></string>
+       <key>CFBundleSignature</key>
+       <string>????</string>
+       <key>CFBundleVersion</key>
+       <string>0.08</string>
+       <key>CSResourcesFileMapped</key>
+       <true/>
+       <key>NSHumanReadableCopyright</key>
+       <string>(c) 2016-2020 Xestia Software Development</string>
+</dict>
+</plist>
diff --git a/source/os/osx/XestiaCalendar.icns b/source/os/osx/XestiaCalendar.icns
new file mode 100644 (file)
index 0000000..4495450
Binary files /dev/null and b/source/os/osx/XestiaCalendar.icns differ
diff --git a/source/tools/generateicnsfile.sh b/source/tools/generateicnsfile.sh
new file mode 100755 (executable)
index 0000000..50091c5
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+if [ -z $1 ]; then
+  echo "Usage: $0 <pngfile>"
+  exit
+fi
+
+IMAGELOCATION=$1
+IMAGEFILENAME=${IMAGELOCATION##*/}
+IMAGENAME="${IMAGEFILENAME%.*}"
+
+mkdir $IMAGENAME.iconset
+sips $IMAGELOCATION -z 16 16 --out $IMAGENAME.iconset/icon_16x16.png
+sips $IMAGELOCATION -z 32 32 --out $IMAGENAME.iconset/icon_16x16@2x.png
+sips $IMAGELOCATION -z 32 32 --out $IMAGENAME.iconset/icon_32x32.png
+sips $IMAGELOCATION -z 64 64 --out $IMAGENAME.iconset/icon_32x32@2x.png
+sips $IMAGELOCATION -z 128 128 --out $IMAGENAME.iconset/icon_128x128.png
+sips $IMAGELOCATION -z 256 256 --out $IMAGENAME.iconset/icon_128x128@2x.png
+sips $IMAGELOCATION -z 256 256 --out $IMAGENAME.iconset/icon_256x256.png
+sips $IMAGELOCATION -z 512 512 --out $IMAGENAME.iconset/icon_256x256@2x.png
+sips $IMAGELOCATION -z 512 512 --out $IMAGENAME.iconset/icon_512x512.png
+cp $IMAGELOCATION $IMAGENAME.iconset/icon_512x512@2x.png
+iconutil -c icns $IMAGENAME.iconset
+rm $IMAGENAME.iconset/*
+rmdir $IMAGENAME.iconset
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy