Support for detached GPG signatures

This commit is contained in:
Reinhard Pointner 2017-04-16 21:03:59 +08:00
parent a400331148
commit fb8a600acd
1 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<project name="filebot" default="fatjar" xmlns:ivy="antlib:org.apache.ivy.ant"> <project name="filebot" default="fatjar" xmlns:if="ant:if" xmlns:unless="ant:unless" xmlns:ivy="antlib:org.apache.ivy.ant">
<!-- define source dirs --> <!-- define source dirs -->
<property name="dir.source" location="${basedir}/source" /> <property name="dir.source" location="${basedir}/source" />
@ -49,10 +49,13 @@
<!-- sign with gpg macro --> <!-- sign with gpg macro -->
<macrodef name="gpg-sign"> <macrodef name="gpg-sign">
<attribute name="detach" default="no" />
<element name="filesets" implicit="yes" /> <element name="filesets" implicit="yes" />
<sequential> <sequential>
<apply executable="gpg"> <apply executable="gpg" verbose="yes">
<arg line="--verbose --batch --yes --local-user ${package.maintainer} --sign" /> <arg line="--verbose --batch --yes --local-user ${package.maintainer}" />
<arg line="--sign" unless:true="@{detach}" />
<arg line="--armor --detach-sign" if:true="@{detach}" />
<srcfile /> <srcfile />
<filesets /> <filesets />
</apply> </apply>