1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 16:28:51 -05:00

Support for detached GPG signatures

This commit is contained in:
Reinhard Pointner 2017-04-16 21:03:59 +08:00
parent a400331148
commit fb8a600acd

View File

@ -1,5 +1,5 @@
<?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 -->
<property name="dir.source" location="${basedir}/source" />
@ -49,10 +49,13 @@
<!-- sign with gpg macro -->
<macrodef name="gpg-sign">
<attribute name="detach" default="no" />
<element name="filesets" implicit="yes" />
<sequential>
<apply executable="gpg">
<arg line="--verbose --batch --yes --local-user ${package.maintainer} --sign" />
<apply executable="gpg" verbose="yes">
<arg line="--verbose --batch --yes --local-user ${package.maintainer}" />
<arg line="--sign" unless:true="@{detach}" />
<arg line="--armor --detach-sign" if:true="@{detach}" />
<srcfile />
<filesets />
</apply>