Skip to content

Commit

Permalink
Added custom Info.plist to SPIERSalign
Browse files Browse the repository at this point in the history
There are no current associated SPIERSalign files.
  • Loading branch information
alanspencer committed May 31, 2020
1 parent 3e79eeb commit fc14ed1
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 4 deletions.
24 changes: 24 additions & 0 deletions SPIERSalign/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?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>CFBundleExecutable</key>
<string>SPIERSalign64</string>
<key>CFBundleIconFile</key>
<string>SPIERSalignIcon.icns</string>
<key>CFBundleIdentifier</key>
<string>com.yourcompany.SPIERSalign64</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>LSMinimumSystemVersion</key>
<string>10.13</string>
<key>NOTE</key>
<string>This file was generated by Qt/QMake.</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSSupportsAutomaticGraphicsSwitching</key>
<true/>
</dict>
</plist>
17 changes: 13 additions & 4 deletions SPIERSalign/SPIERSalign.pro
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ DESTDIR \
+= \
bin

#Needed to make binaries launchable from file in Ubuntu - GCC default link flag -pie on newer Ubuntu versions this so otherwise recognised as shared library
# Needed to make binaries launchable from file in Ubuntu - GCC default link flag -pie on newer Ubuntu versions this so otherwise recognised as shared library
QMAKE_LFLAGS += -no-pie

RC_FILE += resources/icon.rc
Expand All @@ -40,9 +40,6 @@ OBJECTS_DIR = build
FORMS += ui/mainwindow.ui \
ui/about.ui

#Mac icon
ICON = resources/SPIERSalignIcon.icns

HEADERS += src/mainwindowimpl.h \
src/globals.h \
src/scene.h \
Expand All @@ -62,3 +59,15 @@ SOURCES += src/mainwindowimpl.cpp \
../SPIERScommon/src/semanticversion.cpp \
../SPIERScommon/src/prereleasecomponent.cpp

# MacOS common build here
macx {
#Mac icon
ICON = resources/SPIERSalignIcon.icns


# macOS file associations are done through the Info.plist files under the application pakages
# QT/qmake should be able to overwrite the default generated file with this custom file
# We need to make sure that the custom Info.plist (below) is in XML format and not binary
# as qmake uses sed for string replacements within it.
QMAKE_INFO_PLIST = Info.plist
}

0 comments on commit fc14ed1

Please sign in to comment.