make_release.sh (688B)
1 #! /bin/sh 2 3 version=$(basename $(pwd)) 4 find . -type f | xargs chmod 644 5 mkdir release 6 7 file_platform() { 8 if [ "$1" = "medfall.exe" ] || [ "$1" = "launch.exe" ] || [ "$1" = "elevate_for_update.exe" ]; then 9 echo " windows64" 10 elif [ "$1" = "medfall" ] || [ "$1" = "launch" ]; then 11 echo " linux64" 12 fi 13 } 14 15 # create manifest 16 for f in $(find * -type f); do 17 digest=$(../utils/b2sum/b2sum < "$f") 18 size=$(stat -c "%s" "$f") 19 platform=$(file_platform "$f") 20 cp "$f" "release/$digest" 21 echo "$f $digest $size$platform" >> "release/manifest.txt" 22 done 23 24 # sign manifest 25 ../utils/genkeys/sign "release/manifest.txt" | cat - "release/manifest.txt" > "release/$version.txt" 26 rm release/manifest.txt