diff --git a/dist/mac/dmg/build.sh b/dist/mac/dmg/build.sh index a779f79b5..e366a8c38 100755 --- a/dist/mac/dmg/build.sh +++ b/dist/mac/dmg/build.sh @@ -78,12 +78,12 @@ sed -i '' "s|###BUNDLE_VERSION###|${REVISION_NO}|g" Cryptomator.app/Contents/Inf # generate license mvn -B -f../../../pom.xml license:add-third-party \ -Dlicense.thirdPartyFilename=license.rtf \ - -Dlicense.outputDirectory=resources + -Dlicense.outputDirectory=dist/mac/dmg/resources \ -Dlicense.fileTemplate=resources/licenseTemplate.ftl \ -Dlicense.includedScopes=compile \ -Dlicense.excludedGroups=^org\.cryptomator \ -Dlicense.failOnMissing=true \ - -Dlicense.licenseMergesUrl=file:///../../../license/merges + -Dlicense.licenseMergesUrl=file://$(pwd)/../../../license/merges # codesign if [ -n "${CODESIGN_IDENTITY}" ]; then diff --git a/dist/mac/dmg/resources/licenseTemplate.ftl b/dist/mac/dmg/resources/licenseTemplate.ftl index af949937e..e4d7fd476 100644 --- a/dist/mac/dmg/resources/licenseTemplate.ftl +++ b/dist/mac/dmg/resources/licenseTemplate.ftl @@ -1,8 +1,8 @@ <#function artifactFormat p> <#if p.name?index_of('Unnamed') > -1> - <#return p.artifactId + " (" + p.groupId + ":" + p.artifactId + ":" + p.version + " - {\\field{\\*\\fldinst{HYPERLINK \"" + (p.url!"no url defined") + "\"}}{\\fldrslt " + (p.url!"no url defined") + "}})"> + <#return "{\\field{\\*\\fldinst{HYPERLINK \"" + (p.url!"no url defined") + "\"}}{\\fldrslt " + p.artifactId + "}}" + " (" + p.groupId + ":" + p.artifactId + ":" + p.version + ")"> <#else> - <#return p.name + " (" + p.groupId + ":" + p.artifactId + ":" + p.version + " - {\\field{\\*\\fldinst{HYPERLINK \"" + (p.url!"no url defined") + "\"}}{\\fldrslt " + (p.url!"no url defined") + "}})"> + <#return "{\\field{\\*\\fldinst{HYPERLINK \"" + (p.url!"no url defined") + "\"}}{\\fldrslt " + p.name + "}}" + " (" + p.groupId + ":" + p.artifactId + ":" + p.version + ")"> {\rtf1\ansi\ansicpg1252\cocoartf2512 @@ -44,6 +44,6 @@ You should have received a copy of the GNU General Public License along with thi \f0\b Cryptomator uses other third-party assets under the following licenses: \f1\b0 \ SIL OFL 1.1 License:\ - - Font Awesome 5.12.0 ({\field{\*\fldinst{HYPERLINK "https://fontawesome.com/"}}{\fldrslt https://fontawesome.com/}})\ + - {\field{\*\fldinst{HYPERLINK "https://fontawesome.com/"}}{\fldrslt Font Awesome}} (5.12.0)\ \ } diff --git a/dist/win/bundle/resources/licenseTemplate.ftl b/dist/win/bundle/resources/licenseTemplate.ftl index bd137a1a1..9b4d461f2 100644 --- a/dist/win/bundle/resources/licenseTemplate.ftl +++ b/dist/win/bundle/resources/licenseTemplate.ftl @@ -1,8 +1,8 @@ <#function artifactFormat p> <#if p.name?index_of('Unnamed') > -1> - <#return p.artifactId + " (" + p.groupId + ":" + p.artifactId + ":" + p.version + " - {{\\field{\\*\\fldinst{HYPERLINK " + (p.url!"no url defined") + "}}{\\fldrslt{" + (p.url!"no url defined") + "\\ul0\\cf0}}}}\\f0\\fs16 ) "> + <#return "{{\\field{\\*\\fldinst{HYPERLINK " + (p.url!"no url defined") + "}}{\\fldrslt{" + p.artifactId + "\\ul0\\cf0}}}}\\f0\\fs16 " + " (" + p.groupId + ":" + p.artifactId + ":" + p.version + ") "> <#else> - <#return p.name + " (" + p.groupId + ":" + p.artifactId + ":" + p.version + " - {{\\field{\\*\\fldinst{HYPERLINK " + (p.url!"no url defined") + "}}{\\fldrslt{" + (p.url!"no url defined") + "\\ul0\\cf0}}}}\\f0\\fs16 ) "> + <#return "{{\\field{\\*\\fldinst{HYPERLINK " + (p.url!"no url defined") + "}}{\\fldrslt{" + p.name + "\\ul0\\cf0}}}}\\f0\\fs16 " + " (" + p.groupId + ":" + p.artifactId + ":" + p.version + ") "> {\rtf1\ansi\ansicpg1252\deff0\nouicompat{\fonttbl{\f0\fnil\fcharset0 Arial;}} @@ -26,16 +26,16 @@ You should have received a copy of the GNU General Public License along with thi <#if projects?size > 0> \tab ${license}:\par <#list projects as project> -\tab\tab- ${artifactFormat(project)}\par +\tab\tab - ${artifactFormat(project)}\par \par \b Cryptomator uses other third-party assets under the following licenses:\b0\par \tab SIL OFL 1.1 License:\par -\tab\tab - Font Awesome 5.12.0 ({{\field{\*\fldinst{HYPERLINK https://fontawesome.com/ }}{\fldrslt{https://fontawesome.com/\ul0\cf0}}}}\f0\fs16 )\b\par +\tab\tab - {{\field{\*\fldinst{HYPERLINK https://fontawesome.com/}}{\fldrslt{Font Awesome\ul0\cf0}}}}\f0\fs16 (5.12.0)\b\par \par \b Cryptomator dynamically links to third-party libraries under the following license:\b0\par \tab Uncategorized License:\par -\tab\tab - WinFsp - Windows File System Proxy, Copyright (C) Bill Zissimopoulos ({{\field{\*\fldinst{HYPERLINK https://github.com/billziss-gh/winfsp }}{\fldrslt{https://github.com/billziss-gh/winfsp\ul0\cf0}}}}\f0\fs16 )\b\par -} \ No newline at end of file +\tab\tab - {{\field{\*\fldinst{HYPERLINK https://github.com/billziss-gh/winfsp}}{\fldrslt{WinFsp - Windows File System Proxy\ul0\cf0}}}}\f0\fs16 (Copyright (C) Bill Zissimopoulos)\b\par +} diff --git a/dist/win/resources/licenseTemplate.ftl b/dist/win/resources/licenseTemplate.ftl index d442e6538..1ed36438c 100644 --- a/dist/win/resources/licenseTemplate.ftl +++ b/dist/win/resources/licenseTemplate.ftl @@ -26,12 +26,12 @@ You should have received a copy of the GNU General Public License along with thi <#if projects?size > 0> \tab ${license}:\par <#list projects as project> -\tab\tab- ${artifactFormat(project)}\par +\tab\tab - ${artifactFormat(project)}\par \par \b Cryptomator uses other third-party assets under the following licenses:\b0\par \tab SIL OFL 1.1 License:\par -\tab\tab - Font Awesome 5.12.0 ({{\field{\*\fldinst{HYPERLINK https://fontawesome.com/ }}{\fldrslt{https://fontawesome.com/\ul0\cf0}}}}\f0\fs16 )\b\par +\tab\tab - Font Awesome (5.12.0 - {{\field{\*\fldinst{HYPERLINK https://fontawesome.com/ }}{\fldrslt{https://fontawesome.com/\ul0\cf0}}}}\f0\fs16 )\b\par } \ No newline at end of file diff --git a/src/main/resources/license/template.ftl b/src/main/resources/license/template.ftl index 9468f0094..0c6c8c71a 100644 --- a/src/main/resources/license/template.ftl +++ b/src/main/resources/license/template.ftl @@ -32,4 +32,4 @@ Cryptomator uses ${dependencyMap?size} third-party dependencies under the follow Cryptomator uses other third-party assets under the following licenses: SIL OFL 1.1 License: - - Font Awesome 5.12.0 (https://fontawesome.com/) + - Font Awesome (5.12.0 - https://fontawesome.com/)