[qet] qet/qet: [4796] Update macOS packaging

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 4796
Author:   scorpio810
Date:     2016-12-02 12:58:38 +0100 (Fri, 02 Dec 2016)
Log Message:
-----------
Update macOS packaging

Modified Paths:
--------------
    trunk/misc/MacQetDeploy.sh

Added Paths:
-----------
    trunk/ico/mac_icon/elmt.icns
    trunk/ico/mac_icon/qet.icns
    trunk/ico/mac_icon/titleblock.icns
    trunk/misc/Info.plist

Added: trunk/ico/mac_icon/elmt.icns
===================================================================
(Binary files differ)

Index: trunk/ico/mac_icon/elmt.icns
===================================================================
--- trunk/ico/mac_icon/elmt.icns	2016-12-01 09:09:50 UTC (rev 4795)
+++ trunk/ico/mac_icon/elmt.icns	2016-12-02 11:58:38 UTC (rev 4796)

Property changes on: trunk/ico/mac_icon/elmt.icns
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/ico/mac_icon/qet.icns
===================================================================
(Binary files differ)

Index: trunk/ico/mac_icon/qet.icns
===================================================================
--- trunk/ico/mac_icon/qet.icns	2016-12-01 09:09:50 UTC (rev 4795)
+++ trunk/ico/mac_icon/qet.icns	2016-12-02 11:58:38 UTC (rev 4796)

Property changes on: trunk/ico/mac_icon/qet.icns
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/ico/mac_icon/titleblock.icns
===================================================================
(Binary files differ)

Index: trunk/ico/mac_icon/titleblock.icns
===================================================================
--- trunk/ico/mac_icon/titleblock.icns	2016-12-01 09:09:50 UTC (rev 4795)
+++ trunk/ico/mac_icon/titleblock.icns	2016-12-02 11:58:38 UTC (rev 4796)

Property changes on: trunk/ico/mac_icon/titleblock.icns
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/misc/Info.plist
===================================================================
--- trunk/misc/Info.plist	                        (rev 0)
+++ trunk/misc/Info.plist	2016-12-02 11:58:38 UTC (rev 4796)
@@ -0,0 +1,111 @@
+<?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>CFBundleDocumentTypes</key>
+	<array>
+		<dict>
+			<key>CFBundleTypeIconFile</key>
+			<string>elmt</string>
+			<key>CFBundleTypeExtensions</key>
+			<array>
+				<string>elmt</string>
+			</array>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>CFBundleTypeIconFile</key>
+			<string>titleblock</string>
+			<key>CFBundleTypeExtensions</key>
+			<array>
+				<string>titleblock</string>
+			</array>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>CFBundleTypeIconFile</key>
+			<string>qet</string>
+			<key>CFBundleTypeExtensions</key>
+			<array>
+				<string>qet</string>
+			</array>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+	</array>
+	<key>CFBundleExecutable</key>
+	<string>qelectrotech</string>
+	<key>CFBundleIconFile</key>
+	<string>qelectrotech.icns</string>
+	<key>CFBundleIdentifier</key>
+	<string>org.qelectrotech</string>
+	<key>CFBundleInfoDictionaryVersion</key>
+	<string>6.0</string>
+	<key>CFBundlePackageType</key>
+	<string>APPL</string>
+	<key>CFBundleSignature</key>
+	<string>????</string>
+	<key>NOTE</key>
+	<string>This file was generated by Qt/QMake.</string>
+	<key>CFBundleShortVersionString</key>
+	<string></string>
+	<key>NSHighResolutionCapable</key>
+	<string>YES</string>
+	<key>NSHighResolutionMagnifyAllowed</key>
+	<string>NO</string>
+	<key>NSHumanReadableCopyright</key>
+	<string>GNU Public License, Version 2, June 1991</string>
+	<key>NSPrincipalClass</key>
+	<string>NSApplication</string>
+	<key>UTExportedTypeDeclarations</key>
+	<array>
+		<dict>
+			<key>UTTypeConformsTo</key>
+			<array>
+				<string>public.xml</string>
+			</array>
+			<key>UTTypeDescription</key>
+			<string>QElectroTech Titleblock File</string>
+			<key>UTTypeIdentifier</key>
+			<string>org.qelectrotech.titleblock</string>
+			<key>UTTypeTagSpecification</key>
+			<dict>
+				<key>public.filename-extension</key>
+				<string>titleblock</string>
+			</dict>
+		</dict>
+		<dict>
+			<key>UTTypeConformsTo</key>
+			<array>
+				<string>public.xml</string>
+			</array>
+			<key>UTTypeDescription</key>
+			<string>QElectroTech Element File</string>
+			<key>UTTypeIdentifier</key>
+			<string>org.qelectrotech.elmt</string>
+			<key>UTTypeTagSpecification</key>
+			<dict>
+				<key>public.filename-extension</key>
+				<string>elmt</string>
+			</dict>
+		</dict>
+		<dict>
+			<key>UTTypeConformsTo</key>
+			<array>
+				<string>public.xml</string>
+			</array>
+			<key>UTTypeDescription</key>
+			<string>QElectroTech Project File</string>
+			<key>UTTypeIdentifier</key>
+			<string>org.qelectrotech.qet</string>
+			<key>UTTypeTagSpecification</key>
+			<dict>
+				<key>public.filename-extension</key>
+				<string>qet</string>
+			</dict>
+		</dict>
+	</array>
+</dict>
+</plist>

Modified: trunk/misc/MacQetDeploy.sh
===================================================================
--- trunk/misc/MacQetDeploy.sh	2016-12-01 09:09:50 UTC (rev 4795)
+++ trunk/misc/MacQetDeploy.sh	2016-12-02 11:58:38 UTC (rev 4796)
@@ -182,10 +182,11 @@
     exit
 fi
 
+cp -R ${current_dir}/misc/Info.plist qelectrotech.app/Contents/
+cp -R ${current_dir}/ico/mac_icon/*.icns qelectrotech.app/Contents/Resources/
 # On rajoute le numero de version pour "cmd + i"
-sed -i "" "s/<string>Created by Qt\/QMake<\/string>/<string>$tagName r$revAp<\/string>/" qelectrotech.app/Contents/Info.plist
+/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $tagName r$revAp" "qelectrotech.app/Contents/Info.plist"  # Version number
 
-
 ### copy over frameworks ############################################
 
 echo
@@ -326,3 +327,21 @@
 fi 
 
 
+
+#rsync to TF DMG builds
+echo  -e "\033[1;31mWould you like to upload MacOS packages "${APPNAME}"-"$tagName"_"r$revAp.dmg", n/Y?.\033[m"
+read a
+if [[ $a == "Y" || $a == "y" ]]; then
+cp -Rf "packaging/mac-osx/${APPNAME} $tagName r$revAp.dmg" /Users/amdosx/MAC_OS_X/
+rsync -e ssh -av --delete-after --no-owner --no-g --chmod=g+w --progress  /Users/amdosx/MAC_OS_X/ admin@xxxxxxxxxxxxxxxxx:/home/qet/qet-repository/builds/MAC_OS_X/
+if [ $? != 0 ]; then
+{
+echo "RSYNC ERROR: problem syncing ${APPNAME} $tagName r$revAp.dmg"
+rsync -e ssh -av --delete-after --no-owner --no-g --chmod=g+w --progress  /Users/amdosx/MAC_OS_X/ admin@xxxxxxxxxxxxxxxxx:/home/qet/qet-repository/builds/MAC_OS_X/
+
+} fi
+
+else
+echo  -e "\033[1;33mExit.\033[m"
+
+fi
\ No newline at end of file


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/