mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
fix cross compilation and bintray uploading
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
DATE=`date --iso-8601=date`
|
||||
TIME=`date --iso-8601=seconds`
|
||||
@@ -17,9 +17,9 @@ commit_id: ${commit_id}
|
||||
files:
|
||||
EOF
|
||||
|
||||
for f in $(ls -1 ./bin/* | grep -v info.txt); do
|
||||
for f in $(ls -1 ./bin/*/* | grep -v info.txt); do
|
||||
sha256sum=$(sha256sum $f | cut -d ' ' -f 1);
|
||||
name=$(basename $f)
|
||||
name=$(echo $f | sed "s/^\.\/bin\///")
|
||||
updated_on=$(stat -c %y $f)
|
||||
cat >> "./bin/info.txt" <<EOF
|
||||
- name: ${name}"
|
||||
@@ -64,11 +64,15 @@ cat > "./.bintray.json" <<EOF
|
||||
|
||||
"files":
|
||||
[
|
||||
{"includePattern": "bin/(.*)",
|
||||
"uploadPattern": "./latest/\$1",
|
||||
{"includePattern": "bin\/([^\/]+)\/(.*)",
|
||||
"uploadPattern": "./latest/\$1/\$2",
|
||||
"matrixParams": {"override": 1 }
|
||||
},
|
||||
{"includePattern": "bin/info.txt",
|
||||
"uploadPattern": "./latest/info.txt",
|
||||
"matrixParams": {"override": 1 }
|
||||
}
|
||||
],
|
||||
"publish": true
|
||||
}
|
||||
EOF
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user