OSX bundle support

This commit is contained in:
Michael Zanetti 2018-06-07 14:50:14 +02:00
parent 1a3df08921
commit accee52f74
7 changed files with 755 additions and 15 deletions

18
mea.pro
View File

@ -42,9 +42,25 @@ wininstaller.commands += binarycreator -c $${PACKAGE_DIR}\config\config.xml -p $
message("cmd: $${wininstaller.commands}") message("cmd: $${wininstaller.commands}")
QMAKE_EXTRA_TARGETS += wininstaller QMAKE_EXTRA_TARGETS += wininstaller
# OS X installer bundle
osxbundle.commands += cd mea && rm -f mea.dmg mea_writable.dmg mea-osx-bundle.dmg || true &&
osxbundle.commands += hdiutil eject /Volumes/mea || true &&
osxbundle.commands += macdeployqt mea.app -qmldir=$$top_srcdir/mea/ui -dmg &&
osxbundle.commands += hdiutil convert mea.dmg -format UDRW -o mea_writable.dmg &&
osxbundle.commands += hdiutil attach -readwrite -noverify mea_writable.dmg &&
osxbundle.commands += mkdir /Volumes/mea/.background/ && cp $$top_srcdir/packaging/osx/installer.png /Volumes/mea/.background/ &&
osxbundle.commands += ln -s /Applications /Volumes/mea/Applications &&
osxbundle.commands += osascript $$top_srcdir/packaging/osx/patchinstaller.sctp &&
osxbundle.commands += hdiutil eject /Volumes/mea &&
osxbundle.commands += hdiutil convert mea_writable.dmg -format UDRO -o mea-osx-bundle.dmg &&
osxbundle.commands += rm mea.dmg mea_writable.dmg
QMAKE_EXTRA_TARGETS += osxbundle
# Translations support
TRANSLATIONS += $$files(mea/translations/*.ts, true) TRANSLATIONS += $$files(mea/translations/*.ts, true)
lrelease.commands = lrelease $$_FILE_ lrelease.commands = lrelease $$_FILE_
lrelease-qmake_all.commands = lrelease $$_FILE_ lrelease-qmake_all.commands = lrelease $$_FILE_
QMAKE_EXTRA_TARGETS += lrelease lrelease-make_first lrelease-qmake_all lrelease-install_subtargets QMAKE_EXTRA_TARGETS += lrelease lrelease-make_first lrelease-qmake_all lrelease-install_subtargets
mea.depends += lrelease mea.depends += lrelease

View File

@ -31,17 +31,27 @@ contains(ANDROID_TARGET_ARCH,armeabi-v7a) {
} }
android { android {
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/../packaging/android ANDROID_PACKAGE_SOURCE_DIR = $$PWD/../packaging/android
DISTFILES += \ DISTFILES += \
$$ANDROID_PACKAGE_SOURCE_DIR/AndroidManifest.xml \ $$ANDROID_PACKAGE_SOURCE_DIR/AndroidManifest.xml \
$$ANDROID_PACKAGE_SOURCE_DIR/gradle/wrapper/gradle-wrapper.jar \ $$ANDROID_PACKAGE_SOURCE_DIR/gradle/wrapper/gradle-wrapper.jar \
$$ANDROID_PACKAGE_SOURCE_DIR/gradlew \ $$ANDROID_PACKAGE_SOURCE_DIR/gradlew \
$$ANDROID_PACKAGE_SOURCE_DIR/res/values/libs.xml \ $$ANDROID_PACKAGE_SOURCE_DIR/res/values/libs.xml \
$$ANDROID_PACKAGE_SOURCE_DIR/build.gradle \ $$ANDROID_PACKAGE_SOURCE_DIR/build.gradle \
$$ANDROID_PACKAGE_SOURCE_DIR/gradle/wrapper/gradle-wrapper.properties \ $$ANDROID_PACKAGE_SOURCE_DIR/gradle/wrapper/gradle-wrapper.properties \
$$ANDROID_PACKAGE_SOURCE_DIR/gradlew.bat \ $$ANDROID_PACKAGE_SOURCE_DIR/gradlew.bat \
$$ANDROID_PACKAGE_SOURCE_DIR/LICENSE $$ANDROID_PACKAGE_SOURCE_DIR/LICENSE
}
macx: {
PRODUCT_NAME=mea
plist.input = ../packaging/osx/Info.plist.in
plist.output = $$OUT_PWD/Info.plist
QMAKE_SUBSTITUTES += plist
QMAKE_INFO_PLIST = $$OUT_PWD/Info.plist
OTHER_FILES += ../packaging/osx/Info.plist.in
ICON = ../packaging/osx/icon.icns
} }
BR=$$BRANDING BR=$$BRANDING
@ -52,9 +62,5 @@ BR=$$BRANDING
win32:RCC_ICONS += ../packaging/windows/packages/io.guh.mea/meta/logo.ico win32:RCC_ICONS += ../packaging/windows/packages/io.guh.mea/meta/logo.ico
} }
withavahi: {
LIBS += -lavahi-client -lavahi-common
}
target.path = /usr/bin target.path = /usr/bin
INSTALLS += target INSTALLS += target

View File

@ -0,0 +1,26 @@
<?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>mea</string>
<key>CFBundleGetInfoString</key>
<string>Created by Qt/QMake</string>
<key>CFBundleIconFile</key>
<string>icon.icns</string>
<key>CFBundleIdentifier</key>
<string>com.yourcompany.mea</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>LSMinimumSystemVersion</key>
<string>10.11</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>

BIN
packaging/osx/icon.icns Normal file

Binary file not shown.

BIN
packaging/osx/installer.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

673
packaging/osx/installer.svg Normal file
View File

@ -0,0 +1,673 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="544"
height="408"
viewBox="0 0 143.93333 107.95"
version="1.1"
id="svg8"
inkscape:version="0.92.2 (5c3e80d, 2017-08-06)"
sodipodi:docname="background.svg">
<defs
id="defs2">
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3645"
id="linearGradient910"
gradientUnits="userSpaceOnUse"
x1="107.44235"
y1="190.37285"
x2="106.24807"
y2="296.21161" />
<linearGradient
y2="262.58051"
x2="441.68719"
y1="171.88429"
x1="369.02579"
gradientUnits="userSpaceOnUse"
id="SVGID_1_">
<stop
id="stop46"
style="stop-color:#7CC099"
offset="0.1296" />
<stop
id="stop48"
style="stop-color:#6FB594"
offset="0.3785" />
<stop
id="stop50"
style="stop-color:#4E9688"
offset="0.835" />
<stop
id="stop52"
style="stop-color:#408A83"
offset="1" />
</linearGradient>
<linearGradient
gradientTransform="matrix(0.9669,0.2553,-0.2553,0.9669,-399.6603,-163.1002)"
y2="154.45329"
x2="918.56207"
y1="154.45329"
x1="936.13898"
gradientUnits="userSpaceOnUse"
id="SVGID_2_">
<stop
id="stop61"
style="stop-color:#DBE6E0"
offset="0" />
<stop
id="stop63"
style="stop-color:#BCDED3"
offset="1" />
</linearGradient>
<linearGradient
y2="243.37801"
x2="442.73761"
y1="201.9489"
x1="451.01599"
gradientUnits="userSpaceOnUse"
id="SVGID_3_">
<stop
id="stop72"
style="stop-color:#7CC099"
offset="0" />
<stop
id="stop74"
style="stop-color:#78BC98"
offset="0.2568" />
<stop
id="stop76"
style="stop-color:#6CB193"
offset="0.5165" />
<stop
id="stop78"
style="stop-color:#589F8C"
offset="0.7767" />
<stop
id="stop80"
style="stop-color:#408A83"
offset="1" />
</linearGradient>
<linearGradient
y2="234.5722"
x2="457.47629"
y1="234.5722"
x1="457.62369"
gradientUnits="userSpaceOnUse"
id="SVGID_4_">
<stop
id="stop87"
style="stop-color:#DBE6E0"
offset="0" />
<stop
id="stop89"
style="stop-color:#BCDED3"
offset="1" />
</linearGradient>
<linearGradient
y2="223.4929"
x2="457.62369"
y1="223.4929"
x1="467.88159"
gradientUnits="userSpaceOnUse"
id="SVGID_5_">
<stop
id="stop96"
style="stop-color:#DBE6E0"
offset="0" />
<stop
id="stop98"
style="stop-color:#BCDED3"
offset="1" />
</linearGradient>
<linearGradient
y2="235.823"
x2="452.43719"
y1="235.823"
x1="457.47629"
gradientUnits="userSpaceOnUse"
id="SVGID_6_">
<stop
id="stop105"
style="stop-color:#DBE6E0"
offset="0" />
<stop
id="stop107"
style="stop-color:#BCDED3"
offset="1" />
</linearGradient>
<linearGradient
y2="227.27921"
x2="460.47461"
y1="227.27921"
x1="452.19159"
gradientUnits="userSpaceOnUse"
id="SVGID_7_">
<stop
id="stop112"
style="stop-color:#6AA583"
offset="0" />
<stop
id="stop114"
style="stop-color:#4C9E96"
offset="1" />
</linearGradient>
<linearGradient
gradientTransform="matrix(0.9997,0.0227,-0.0227,0.9997,-36.4014,-7.9207)"
y2="283.95389"
x2="455.23529"
y1="268.90411"
x1="473.17111"
gradientUnits="userSpaceOnUse"
id="SVGID_8_">
<stop
id="stop119"
style="stop-color:#7CC099"
offset="0" />
<stop
id="stop121"
style="stop-color:#57BAAE"
offset="1" />
</linearGradient>
<linearGradient
gradientTransform="matrix(0.9997,0.0227,-0.0227,0.9997,-36.4014,-7.9207)"
y2="274.66199"
x2="470.95151"
y1="274.66199"
x1="447.13129"
gradientUnits="userSpaceOnUse"
id="SVGID_9_">
<stop
id="stop126"
style="stop-color:#7CC099"
offset="0" />
<stop
id="stop128"
style="stop-color:#76BA97"
offset="0.2327" />
<stop
id="stop130"
style="stop-color:#65AB90"
offset="0.5485" />
<stop
id="stop132"
style="stop-color:#489186"
offset="0.9106" />
<stop
id="stop134"
style="stop-color:#408A83"
offset="1" />
</linearGradient>
<linearGradient
y2="252.7919"
x2="422.0509"
y1="260.93829"
x1="415.2153"
gradientUnits="userSpaceOnUse"
id="SVGID_10_">
<stop
id="stop141"
style="stop-color:#4C9E96"
offset="0" />
<stop
id="stop143"
style="stop-color:#489790"
offset="0.4859" />
<stop
id="stop145"
style="stop-color:#408A83"
offset="1" />
</linearGradient>
<linearGradient
y2="239.4308"
x2="393.7475"
y1="203.1666"
x1="425.60641"
gradientUnits="userSpaceOnUse"
id="SVGID_11_">
<stop
id="stop152"
style="stop-color:#7CC099"
offset="0" />
<stop
id="stop154"
style="stop-color:#77BF9C"
offset="0.3183" />
<stop
id="stop156"
style="stop-color:#6ABDA3"
offset="0.6757" />
<stop
id="stop158"
style="stop-color:#57BAAE"
offset="1" />
</linearGradient>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1.979899"
inkscape:cx="420.41696"
inkscape:cy="191.9552"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
units="px"
inkscape:window-width="2880"
inkscape:window-height="1698"
inkscape:window-x="0"
inkscape:window-y="44"
inkscape:window-maximized="1" />
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-189.04997)">
<g
transform="matrix(0.1143967,0,0,0.1143967,7.475879,158.62538)"
id="layer1-6"
inkscape:label="Layer 1">
<g
id="g41"
transform="matrix(2.2038606,0,0,2.2038606,-672.50331,283.61944)">
<g
id="g43">
<linearGradient
y2="262.58051"
x2="441.68719"
y1="171.88429"
x1="369.02579"
gradientUnits="userSpaceOnUse"
id="linearGradient3548">
<stop
id="stop3550"
style="stop-color:#7CC099"
offset="0.1296" />
<stop
id="stop3552"
style="stop-color:#6FB594"
offset="0.3785" />
<stop
id="stop3554"
style="stop-color:#4E9688"
offset="0.835" />
<stop
id="stop3556"
style="stop-color:#408A83"
offset="1" />
</linearGradient>
<path
id="path54"
d="m 433.7,212.6 c -5.9,-10.1 -19,-17.9 -27.5,-21 -8.5,-3.2 -18,-10.1 -18,-10.1 -7.5,-5 -9.7,-9 -13.7,-14 -1.2,2.6 -2.2,5.8 -3,9.6 1.8,3.1 8.7,13.4 28.1,21.5 1.7,0.7 6.9,2.8 7,2.9 l 6.5,2.6 -6.7,-1.9 c -0.2,-0.1 -5.5,-1.6 -7.3,-2.2 -17.3,-6.3 -25,-15.1 -28,-19.9 -0.8,4.9 -1.1,10.6 -0.7,16.5 5.2,4.7 14,11 26.9,15.4 0.9,0.3 3.6,1.3 3.6,1.3 l 3.4,1.2 -3.5,-0.5 c -0.1,0 -3,-0.4 -4,-0.6 -12.1,-2.9 -20.5,-8.4 -26.1,-13.3 0.5,4.3 1.4,8.6 2.8,13 0.3,1 0.7,2.1 1.1,3 4.4,2 9.6,3.9 15.4,5.2 1.1,0.2 4.3,1.1 4.3,1.1 l 3.8,1 -4,-0.2 c -0.1,0 -3.4,-0.2 -4.5,-0.4 -5.1,-0.7 -9.8,-2 -13.9,-3.6 6.6,13.7 18.8,21.4 35.2,27.5 18.7,7 19.4,25 19.4,25 0,0 5.1,-3.8 9.6,-18.4 5.1,-16.2 -0.3,-30.6 -6.2,-40.7 z"
inkscape:connector-curvature="0"
style="fill:url(#SVGID_1_)" />
</g>
<g
id="g56">
<g
id="g58">
<linearGradient
gradientTransform="matrix(0.9669,0.2553,-0.2553,0.9669,-399.6603,-163.1002)"
y2="154.45329"
x2="918.56207"
y1="154.45329"
x1="936.13898"
gradientUnits="userSpaceOnUse"
id="linearGradient3561">
<stop
id="stop3563"
style="stop-color:#DBE6E0"
offset="0" />
<stop
id="stop3565"
style="stop-color:#BCDED3"
offset="1" />
</linearGradient>
<path
id="path65"
d="m 458.6,233.8 c 4.9,-3.6 6.9,-7.8 8.5,-12.5 0.7,-2.1 1.3,-5 0.3,-8.1 -0.8,-2.5 -6.5,-6.2 -11.2,-4.7 -5.1,1.7 -6.1,8.1 -6.5,10.9 -0.6,4.3 0.4,10.9 2.8,17.6 -0.1,0 2.1,-0.2 6.1,-3.2 z"
inkscape:connector-curvature="0"
style="fill:url(#SVGID_2_)" />
</g>
<g
id="g67">
<g
id="g69">
<linearGradient
y2="243.37801"
x2="442.73761"
y1="201.9489"
x1="451.01599"
gradientUnits="userSpaceOnUse"
id="linearGradient3570">
<stop
id="stop3572"
style="stop-color:#7CC099"
offset="0" />
<stop
id="stop3574"
style="stop-color:#78BC98"
offset="0.2568" />
<stop
id="stop3576"
style="stop-color:#6CB193"
offset="0.5165" />
<stop
id="stop3578"
style="stop-color:#589F8C"
offset="0.7767" />
<stop
id="stop3580"
style="stop-color:#408A83"
offset="1" />
</linearGradient>
<path
id="path82"
d="m 449.7,219.4 c 0.4,-2.8 1.4,-9.2 6.5,-10.9 4.2,-1.4 9.3,1.5 10.8,3.9 -1.5,-3.9 -5.6,-6.6 -9,-8.3 -4.8,-2.5 -10.8,-2.9 -15.7,-1.7 -4.6,1.1 -7,3.6 -10.9,6.9 0.8,1.1 1.6,2.2 2.2,3.3 4.6,8 9,18.6 8.2,30.6 3,-5 9.7,-6.1 10.6,-6.2 -2.4,-6.6 -3.4,-13.3 -2.7,-17.6 z"
inkscape:connector-curvature="0"
style="fill:url(#SVGID_3_)" />
</g>
<g
id="g84">
<linearGradient
y2="234.5722"
x2="457.47629"
y1="234.5722"
x1="457.62369"
gradientUnits="userSpaceOnUse"
id="linearGradient3584">
<stop
id="stop3586"
style="stop-color:#DBE6E0"
offset="0" />
<stop
id="stop3588"
style="stop-color:#BCDED3"
offset="1" />
</linearGradient>
<path
id="path91"
d="m 457.6,234.5 c -0.1,0 -0.1,0.1 -0.1,0.1 0,0 0.1,0 0.1,-0.1 z"
inkscape:connector-curvature="0"
style="fill:url(#SVGID_4_)" />
</g>
<g
id="g93">
<linearGradient
y2="223.4929"
x2="457.62369"
y1="223.4929"
x1="467.88159"
gradientUnits="userSpaceOnUse"
id="linearGradient3592">
<stop
id="stop3594"
style="stop-color:#DBE6E0"
offset="0" />
<stop
id="stop3596"
style="stop-color:#BCDED3"
offset="1" />
</linearGradient>
<path
id="path100"
d="m 467.4,213.2 c -0.1,-0.2 -0.2,-0.5 -0.4,-0.8 0.7,1.7 0.8,3.7 0.1,5.9 -1.5,4.9 -1.8,7.1 -6.1,12.9 -1,1.3 -2.2,2.4 -3.4,3.2 0.3,-0.2 0.6,-0.4 1,-0.7 4.9,-3.6 6.9,-7.8 8.5,-12.5 0.7,-2 1.2,-4.9 0.3,-8 z"
inkscape:connector-curvature="0"
style="fill:url(#SVGID_5_)" />
</g>
<g
id="g102">
<linearGradient
y2="235.823"
x2="452.43719"
y1="235.823"
x1="457.47629"
gradientUnits="userSpaceOnUse"
id="linearGradient3600">
<stop
id="stop3602"
style="stop-color:#DBE6E0"
offset="0" />
<stop
id="stop3604"
style="stop-color:#BCDED3"
offset="1" />
</linearGradient>
<path
id="path109"
d="m 452.4,237 c 0,0 0,0 0,0 0,0 1.8,-0.2 5,-2.4 -2.5,1.7 -4.9,2.4 -4.9,2.4 0,0 0,0 -0.1,0 z"
inkscape:connector-curvature="0"
style="fill:url(#SVGID_6_)" />
</g>
</g>
<linearGradient
y2="227.27921"
x2="460.47461"
y1="227.27921"
x1="452.19159"
gradientUnits="userSpaceOnUse"
id="linearGradient3607">
<stop
id="stop3609"
style="stop-color:#6AA583"
offset="0" />
<stop
id="stop3611"
style="stop-color:#4C9E96"
offset="1" />
</linearGradient>
<path
id="path116"
d="m 458.2,217.6 c -1,-0.3 -2,0 -2.8,0.6 -0.2,0.3 -0.3,0.6 -0.4,0.9 -0.4,1.6 0.5,3.3 2.2,3.7 0.7,0.2 1.3,0.1 1.9,-0.1 -0.9,6.9 -5.9,12.4 -6.9,13.5 0.1,0.4 0.2,0.5 0.2,0.7 0.3,0 0.4,-0.1 0.9,-0.2 1.7,-1.9 6.7,-7.9 7,-15.5 0.5,-1.5 -0.5,-3.1 -2.1,-3.6 z"
inkscape:connector-curvature="0"
style="fill:url(#SVGID_7_)" />
</g>
<linearGradient
gradientTransform="matrix(0.9997,0.0227,-0.0227,0.9997,-36.4014,-7.9207)"
y2="283.95389"
x2="455.23529"
y1="268.90411"
x1="473.17111"
gradientUnits="userSpaceOnUse"
id="linearGradient3614">
<stop
id="stop3616"
style="stop-color:#7CC099"
offset="0" />
<stop
id="stop3618"
style="stop-color:#57BAAE"
offset="1" />
</linearGradient>
<path
id="path123"
d="m 405.5,261.4 c 1.5,12.7 7.5,31.7 27.8,47.9 0,0 10.1,-15.4 0.4,-32.5 -9.7,-17.1 -23.8,-22.7 -28.8,-24.5 -0.2,3.6 0.4,6.8 0.6,9.1 z"
inkscape:connector-curvature="0"
style="fill:url(#SVGID_8_)" />
<linearGradient
gradientTransform="matrix(0.9997,0.0227,-0.0227,0.9997,-36.4014,-7.9207)"
y2="274.66199"
x2="470.95151"
y1="274.66199"
x1="447.13129"
gradientUnits="userSpaceOnUse"
id="linearGradient3621">
<stop
id="stop3623"
style="stop-color:#7CC099"
offset="0" />
<stop
id="stop3625"
style="stop-color:#76BA97"
offset="0.2327" />
<stop
id="stop3627"
style="stop-color:#65AB90"
offset="0.5485" />
<stop
id="stop3629"
style="stop-color:#489186"
offset="0.9106" />
<stop
id="stop3631"
style="stop-color:#408A83"
offset="1" />
</linearGradient>
<path
id="path136"
d="m 423.7,272.8 c -5.7,-10 -12.8,-16.8 -18.8,-20.5 -0.1,3.2 0.4,7 0.6,9.1 1.2,10.8 5.8,26.1 19.6,40.4 2.4,-5.5 5.5,-16.8 -1.4,-29 z"
inkscape:connector-curvature="0"
style="fill:url(#SVGID_9_)" />
<g
id="g138">
<linearGradient
y2="252.7919"
x2="422.0509"
y1="260.93829"
x1="415.2153"
gradientUnits="userSpaceOnUse"
id="linearGradient3635">
<stop
id="stop3637"
style="stop-color:#4C9E96"
offset="0" />
<stop
id="stop3639"
style="stop-color:#489790"
offset="0.4859" />
<stop
id="stop3641"
style="stop-color:#408A83"
offset="1" />
</linearGradient>
<path
id="path147"
d="m 411.9,246.7 c -2,-0.8 -4.9,-1.6 -6.8,-2.4 -0.3,2.5 -0.2,5.1 -0.2,8.1 4.4,1.6 16.1,6.2 25.5,19.3 0,-0.1 0,-0.2 0,-0.3 -0.2,-2.3 -1.1,-18.3 -18.5,-24.7 z"
inkscape:connector-curvature="0"
style="fill:url(#SVGID_10_)" />
</g>
<g
id="g149">
<linearGradient
y2="239.4308"
x2="393.7475"
y1="203.1666"
x1="425.60641"
gradientUnits="userSpaceOnUse"
id="linearGradient3645">
<stop
id="stop3647"
style="stop-color:#7CC099"
offset="0" />
<stop
id="stop3649"
style="stop-color:#77BF9C"
offset="0.3183" />
<stop
id="stop3651"
style="stop-color:#6ABDA3"
offset="0.6757" />
<stop
id="stop3653"
style="stop-color:#57BAAE"
offset="1" />
</linearGradient>
<path
id="path160"
d="m 433.7,212.6 c -5.9,-10.1 -19,-17.9 -27.5,-21 -8.5,-3.2 -18,-10.1 -18,-10.1 -2.1,-1.4 -3.8,-2.7 -5.2,-4 -0.4,3.6 -0.6,7.5 -0.4,11.6 4.2,3.2 9.7,6.5 16.9,9.5 1.7,0.7 6.9,2.8 7,2.9 l 6.5,2.6 -6.7,-1.9 c -0.2,-0.1 -5.5,-1.6 -7.3,-2.2 -6.8,-2.5 -12.1,-5.3 -16.2,-8.2 0.4,5 1.3,10.1 2.9,15.2 3.4,1.8 7.2,3.4 11.6,4.9 0.9,0.3 3.6,1.3 3.6,1.3 l 3.4,1.2 -3.5,-0.5 c -0.1,0 -3,-0.4 -4,-0.6 -3.7,-0.9 -7,-2 -10,-3.3 1.9,4.8 4.4,8.8 7.4,12.3 0.1,0 0.1,0 0.1,0 l 3.8,1 -3.2,-0.2 c 6.9,7.7 16.3,13.3 26.3,21.3 13.5,10.8 9.2,27.2 9.2,27.2 0,0 0.8,-0.6 1.5,-1.5 1.8,-2.1 5.1,-7 8.1,-16.9 5,-16.1 -0.4,-30.5 -6.3,-40.6 z"
inkscape:connector-curvature="0"
style="fill:url(#SVGID_11_)" />
</g>
</g>
</g>
<rect
style="fill:url(#linearGradient910);fill-opacity:1;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;opacity:1"
id="rect896"
width="143.93307"
height="107.95"
x="1.7763568e-15"
y="189.04997" />
<rect
ry="3.96875"
rx="3.96875"
y="227.50989"
x="14.110243"
height="47.039448"
width="44.901287"
id="rect1315"
style="opacity:1;fill:#000000;fill-opacity:0.39215687;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:5.64444447px;line-height:1.25;font-family:Verdana;-inkscape-font-specification:Verdana;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.26458332;"
x="49.976791"
y="213.3446"
id="text1311"><tspan
sodipodi:role="line"
id="tspan1309"
x="49.976791"
y="213.3446"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:22.57777786px;font-family:Ubuntu;-inkscape-font-specification:Ubuntu;fill:#ffffff;fill-opacity:1;stroke-width:0.26458332;">mea</tspan></text>
<rect
style="opacity:1;fill:#000000;fill-opacity:0.39215687;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect1313"
width="44.901287"
height="47.039448"
x="87.664406"
y="227.50989"
rx="3.96875"
ry="3.96875" />
<path
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 64.27832,245.35013 h 11.091687 l -10e-7,-2.6727 8.93204,5.98016 -8.965449,6.24742 0.03341,-2.93996 H 64.27832 Z"
id="rect1317"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccccc" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:5.64444447px;line-height:1.25;font-family:Verdana;-inkscape-font-specification:Verdana;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.26458332;"
x="14.186265"
y="284.23785"
id="text1322"><tspan
sodipodi:role="line"
id="tspan1320"
x="14.186265"
y="284.23785"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333311px;font-family:Ubuntu;-inkscape-font-specification:Ubuntu;stroke-width:0.26458332;fill:#ffffff;fill-opacity:1;">To install, drag this icon</tspan></text>
<text
id="text1326"
y="284.23785"
x="95.304039"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:5.64444447px;line-height:1.25;font-family:Verdana;-inkscape-font-specification:Verdana;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.26458332;"
xml:space="preserve"><tspan
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333311px;font-family:Ubuntu;-inkscape-font-specification:Ubuntu;stroke-width:0.26458332;fill:#ffffff;fill-opacity:1;"
y="284.23785"
x="95.304039"
id="tspan1324"
sodipodi:role="line">...onto this one!</tspan></text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 23 KiB

View File

@ -0,0 +1,19 @@
tell app "Finder"
tell disk "mea"
open
set current view of container window to icon view
set toolbar visible of container window to false
set statusbar visible of container window to false
set the bounds of container window to {400, 100, 944, 531}
set viewOptions to the icon view options of container window
set arrangement of viewOptions to not arranged
set icon size of viewOptions to 128
set background picture of viewOptions to file ".background:installer.png"
set position of item "mea.app" of container window to {140, 220}
set position of item "Applications" of container window to {415, 220}
close
open
update without registering applications
delay 2
end tell
end tell