Update macOS packaging

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4796 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810 2016-12-02 11:58:38 +00:00
parent c811b02516
commit 7394abfbd5
5 changed files with 132 additions and 2 deletions

BIN
ico/mac_icon/elmt.icns Normal file

Binary file not shown.

BIN
ico/mac_icon/qet.icns Normal file

Binary file not shown.

Binary file not shown.

111
misc/Info.plist Normal file
View File

@ -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>

View File

@ -182,9 +182,10 @@ else
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 ############################################
@ -326,3 +327,21 @@ svnversion | grep -q '[MS:]' ; if [ $? -eq 0 ] ; then
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@ssh.tuxfamily.org:/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@ssh.tuxfamily.org:/home/qet/qet-repository/builds/MAC_OS_X/
} fi
else
echo -e "\033[1;33mExit.\033[m"
fi