* try publishing a seprate free app that contains only the subtitles module and see if that's acceptable in the mac appstore

This commit is contained in:
Reinhard Pointner 2015-12-12 12:06:13 +00:00
parent b87e662466
commit 898eafdf7c
3 changed files with 157 additions and 0 deletions

125
build.xml
View File

@ -393,6 +393,131 @@
</target> </target>
<target name="appbundle-maspkg-subtitles" depends="svn-update, fatjar">
<taskdef name="bundleapp" classname="com.oracle.appbundler.AppBundlerTask" classpathref="jars.classpath" />
<property name="jre.version" value="jdk1.8.0_51.jdk" />
<property name="jre.path" value="/Library/Java/JavaVirtualMachines/${jre.version}/Contents/Home" />
<bundleapp minimumsystemversion="10.8" executablename="SmartSubtitlesAppLauncher" version="${svn.revision}" outputdirectory="${dir.dist}" name="Smart Subtitles" displayname="Smart Subtitles" shortversion="${version}" identifier="net.filebot.subtitles" mainclassname="net.filebot.Main" icon="${dir.installer}/appbundle/subtitles.icns" copyright="2015 Point Planck Limited" applicationcategory="public.app-category.utilities" highresolutioncapable="true" supportsautomaticgraphicsswitching="true">
<classpath file="${path.fatjar}" />
<librarypath dir="${dir.lib}/native/mac-x86_64" />
<arch name="x86_64" />
<runtime dir="${jre.path}" />
<argument value="--mode" />
<argument value="Subtitles" />
<!-- WORKING_DIR is sandbox data folder -->
<option value="-Dapplication.dir=./Library/Application Support/User Data" />
<option value="-Dapplication.cache=./Library/Caches/ehcache.disk.store" />
<option value="-Djava.io.tmpdir=./Library/Caches/java.io.tmpdir" />
<option value="-Dapplication.help=skip" />
<option value="-Dnet.filebot.UserFiles.fileChooser=COCOA" />
<option value="-Dapplication.deployment=mas" />
<option value="-Dapplication.update=skip" />
<option value="-Dunixfs=false" />
<option value="-DuseExtendedFileAttributes=true" />
<option value="-DuseCreationDate=false" />
<option value="-Djava.net.useSystemProxies=true" />
<option value="-Dsun.net.client.defaultConnectTimeout=10000" />
<option value="-Dsun.net.client.defaultReadTimeout=60000" />
<option value="-Dfile.encoding=UTF-8" />
<option value="-Djna.nosys=true" />
<option value="-Djna.nounpack=true" />
<option value="-Djna.boot.library.name=jnidispatch" />
<option value="-Djna.boot.library.path=$APP_ROOT/Contents/MacOS" />
<option value="-Djna.library.path=$APP_ROOT/Contents/MacOS" />
<option value="-Djava.library.path=$APP_ROOT/Contents/MacOS" />
<option value="-Dnet.filebot.AcoustID.fpcalc=$APP_ROOT/Contents/MacOS/fpcalc" />
<option value="-Xdock:name=Smart Subtitles" />
<option value="-Xdock:icon=Contents/Resources/subtitles.icns" />
<option value="-Dapple.laf.useScreenMenuBar=true" />
<!-- enable logging by default -->
<argument value="--log-file" />
<argument value="subtitles.log" />
<argument value="--log-lock" />
<argument value="false" />
</bundleapp>
<!-- fix code signing and submission issues -->
<delete verbose="yes">
<fileset dir="${dir.dist}/Smart Subtitles.app/Contents/PlugIns">
<include name="**/libjfxmedia_qtkit.dylib" />
<include name="**/Contents/Info.plist" />
<include name="**/Contents/MacOS/libjli.dylib" />
</fileset>
</delete>
<copy verbose="yes" failonerror="yes" overwrite="yes" file="/Library/Java/JavaVirtualMachines/${jre.version}/Contents/Info.plist" tofile="${dir.dist}/Smart Subtitles.app/Contents/PlugIns/${jre.version}/Contents/Info.plist" />
<copy verbose="yes" failonerror="yes" overwrite="yes" file="/Library/Java/JavaVirtualMachines/${jre.version}/Contents/MacOS/libjli.dylib" tofile="${dir.dist}/Smart Subtitles.app/Contents/PlugIns/${jre.version}/Contents/MacOS/libjli.dylib" />
<!-- fix permissions -->
<chmod verbose="yes" dir="${dir.dist}" includes="**/fpcalc" perm="755" />
<chmod verbose="yes" dir="${dir.dist}/Smart Subtitles.app/Contents/PlugIns" perm="+rw" />
<!-- JRE sign all jars, dylibs and executables -->
<property name="path.pkg" value="Smart_Subtitles_${version}_r${svn.revision}.pkg" />
<property name="codesign.opts" value="--verbose=4 --force --sign '3rd Party Mac Developer Application: Point Planck Limited'" />
<property name="codesign.entitlements" value="--entitlements '${dir.installer}/appbundle/FileBot.entitlements'" />
<property name="codesign.entitlements.inherit" value="--entitlements '${dir.installer}/appbundle/inherit.entitlements'" />
<apply executable="codesign">
<arg line="${codesign.opts} ${codesign.entitlements.inherit}" />
<srcfile />
<fileset dir="${dir.dist}/FileBot.app/Contents/PlugIns">
<include name="**/jspawnhelper" />
<include name="**/*.dylib" />
<include name="**/*.jar" />
</fileset>
</apply>
<!-- sign cmdline tool first -->
<exec dir="${dir.dist}/Smart Subtitles.app" executable="codesign">
<arg line="${codesign.opts} ${codesign.entitlements.inherit} Contents/MacOS/fpcalc" />
</exec>
<!-- APP sign all jars, dylibs and executables -->
<apply executable="codesign">
<arg line="${codesign.opts} ${codesign.entitlements}" />
<srcfile />
<fileset dir="${dir.dist}/FileBot.app/Contents">
<include name="MacOS/*.dylib" />
<include name="Java/*.jar" />
</fileset>
</apply>
<!-- sign app with entitlements -->
<exec dir="${dir.dist}" executable="codesign">
<arg line="${codesign.opts} ${codesign.entitlements} 'Smart Subtitles.app.app/Contents/PlugIns/${jre.version}'" />
</exec>
<exec dir="${dir.dist}" executable="codesign">
<arg line="${codesign.opts} ${codesign.entitlements} 'Smart Subtitles.app'" />
</exec>
<!-- verify signature & build pkg -->
<exec dir="${dir.dist}" executable="codesign" failonerror="on">
<arg line="--verify 'Smart Subtitles.app/Contents/PlugIns/${jre.version}'" />
</exec>
<exec dir="${dir.dist}" executable="codesign" failonerror="on">
<arg line="--verify 'Smart Subtitles.app'" />
</exec>
<exec dir="${dir.dist}" executable="productbuild" failonerror="on">
<arg line="--component 'Smart Subtitles.app' /Applications --sign '3rd Party Mac Developer Installer: Point Planck Limited' ${path.pkg}" />
</exec>
<!-- store this build in releases -->
<mkdir dir="${dir.release}" />
<copy todir="${dir.release}" file="${dir.dist}/${path.pkg}" verbose="yes" />
</target>
<target name="ubuntu-debsrc" depends="svn-update, fatjar"> <target name="ubuntu-debsrc" depends="svn-update, fatjar">
<property name="jre.version" value="jdk-8u66" /> <property name="jre.version" value="jdk-8u66" />
<property name="jre.dir" value="${basedir}/jre" /> <property name="jre.dir" value="${basedir}/jre" />

Binary file not shown.

View File

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="512px" height="512px" viewBox="0 0 150 150" enable-background="new 0 0 150 150" xml:space="preserve">
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="74.4683" y1="5.5562" x2="74.4683" y2="144.7075">
<stop offset="0" style="stop-color:#FFFFFF"/>
<stop offset="0.1882" style="stop-color:#FFFFFF"/>
<stop offset="0.4766" style="stop-color:#EEEFEF"/>
<stop offset="0.7425" style="stop-color:#E7E9EA"/>
<stop offset="1" style="stop-color:#F4F2F3"/>
</linearGradient>
<linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="74.4678" y1="4.083" x2="74.4678" y2="146.1802">
<stop offset="0" style="stop-color:#A1B7CB"/>
<stop offset="0.0962" style="stop-color:#899FB3"/>
<stop offset="0.268" style="stop-color:#6B8297"/>
<stop offset="0.4434" style="stop-color:#556E84"/>
<stop offset="0.6218" style="stop-color:#446278"/>
<stop offset="0.805" style="stop-color:#3A5B71"/>
<stop offset="1" style="stop-color:#37596E"/>
</linearGradient>
<path fill="url(#SVGID_1_)" stroke="url(#SVGID_2_)" stroke-width="2.9459" stroke-miterlimit="10" d="M144.271,132.672
c0,6.647-5.39,12.035-12.036,12.035H16.702c-6.647,0-12.036-5.388-12.036-12.035V17.592c0-6.647,5.389-12.036,12.036-12.036h115.532
c6.646,0,12.036,5.389,12.036,12.036V132.672z"/>
<g transform="scale(0.2) translate(67,73)">
<ellipse fill="#303030" cx="306" cy="302.1" rx="294.8" ry="291.1"/>
<path fill="#FFFFFF" d="M538.2,358.3c0,49.4-40.2,89.5-89.9,89.5H163.7c-49.6,0-89.9-40.1-89.9-89.5v-138
c0-49.4,40.2-89.5,89.9-89.5h284.6c49.6,0,89.9,40.1,89.9,89.5V358.3z"/>
<rect x="121.7" y="346.4" fill="#303030" width="361.2" height="25.8"/>
<rect x="184.4" y="390.6" fill="#303030" width="232.2" height="25.8"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB