Skip to content

Commit

Permalink
fixes and verify phar signing
Browse files Browse the repository at this point in the history
  • Loading branch information
maglnet committed Mar 20, 2018
1 parent dac1b70 commit 7b46f44
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,22 @@
</target>

<target name="phar-sign" depends="phar-build">
<exec executable="gpg">
<delete file="${build-dir}/${phing.project.name}.phar.asc"/>
<exec executable="gpg" checkreturn="true" passthru="true">
<arg value="--batch" />
<arg value="--local-user" />
<arg value="[email protected]" />
<arg value="--detach-sign" />
<arg value="--output" />
<arg path="${build-dir}/${phing.project.name}.phar.asc" />
<arg path="${build-dir}/${phing.project.name}.phar" />
</exec>

<exec executable="gpg" checkreturn="true" passthru="true">
<arg value="--verify" />
<arg path="${build-dir}/${phing.project.name}.phar.asc" />
<arg path="${build-dir}/${phing.project.name}.phar" />
</exec>
</target>

<!-- ============================================ -->
Expand Down

0 comments on commit 7b46f44

Please sign in to comment.