Repository: flex-utilities
Updated Branches:
  refs/heads/develop f82317b9a -> 6dfe45a1e


Apache Installer: Add SHA-512 hash generation and more echo messages


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/6dfe45a1
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/6dfe45a1
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/6dfe45a1

Branch: refs/heads/develop
Commit: 6dfe45a1e45a979e2a965ccd097e3f7c6208e0ae
Parents: f82317b
Author: Piotr Zarzycki <pio...@apache.org>
Authored: Mon Apr 16 22:02:42 2018 +0200
Committer: Piotr Zarzycki <pio...@apache.org>
Committed: Mon Apr 16 22:02:42 2018 +0200

----------------------------------------------------------------------
 flex-installer/build.xml | 22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/6dfe45a1/flex-installer/build.xml
----------------------------------------------------------------------
diff --git a/flex-installer/build.xml b/flex-installer/build.xml
index aa58b81..d0129e5 100644
--- a/flex-installer/build.xml
+++ b/flex-installer/build.xml
@@ -627,14 +627,16 @@
         <echo message="not found in anttask.classpath"/>
     </target>
 
-    <target name="create-md5s" >
-        <checksum file="${RELEASE_DIR}/${source.kit}.zip" algorithm="md5" 
forceOverwrite="yes" />
-        <checksum file="${RELEASE_DIR}/${source.kit}.tar.gz" algorithm="md5" 
forceOverwrite="yes" />
-        <checksum file="${RELEASE_DIR}/${binary.kit}.${extension}" 
algorithm="md5" forceOverwrite="yes" />
-        
+    <target name="create-SHA-512" >
+        <echo message="Generating SHA-512 hashes for release artifacts"/>
+        <checksum algorithm="SHA-512" file="${RELEASE_DIR}/${source.kit}.zip" 
forceOverwrite="yes"/>
+        <checksum algorithm="SHA-512" 
file="${RELEASE_DIR}/${source.kit}.tar.gz" forceOverwrite="yes"/>
+        <checksum algorithm="SHA-512" 
file="${RELEASE_DIR}/${binary.kit}.${extension}" forceOverwrite="yes"/>
     </target>
     
-       <target name="sign" >
+       <target name="sign" depends="create-SHA-512">
+        <echo message="Signing sources"/>
+
                <exec executable="gpg">
                        <arg value="--armor" />
                        <arg value="--output" />
@@ -661,7 +663,9 @@
        </target>
 
        <target name="sign_exe" description="sign exe when on mac" >
-               <checksum file="${RELEASE_DIR}/${binary.kit}.exe" 
algorithm="md5" forceOverwrite="yes" />
+        <echo message="Signing exe"/>
+
+               <checksum file="${RELEASE_DIR}/${binary.kit}.exe" 
algorithm="SHA-512" forceOverwrite="yes" />
 
                <exec executable="gpg">
                        <arg value="--armor" />
@@ -673,7 +677,9 @@
        </target>
 
        <target name="sign_dmg" description="sign dmg when on win" >
-               <checksum file="${RELEASE_DIR}/${binary.kit}.dmg" 
algorithm="md5" forceOverwrite="yes" />
+        <echo message="Signing dmg"/>
+        
+               <checksum file="${RELEASE_DIR}/${binary.kit}.dmg" 
algorithm="SHA-512" forceOverwrite="yes" />
 
                <exec executable="gpg">
                        <arg value="--armor" />

Reply via email to