| 1 |
#!/bin/bash -e |
| 2 |
|
| 3 |
. $(dirname $(readlink -f $0))/make-weekly-common |
| 4 |
|
| 5 |
# Build and upload |
| 6 |
cd build-release |
| 7 |
cmake -DCMAKE_BUILD_TYPE=Release .. |
| 8 |
make -j${cpu_count} install |
| 9 |
|
| 10 |
# Sign the app |
| 11 |
echo "Signing the app (requires sudo access):" |
| 12 |
sudo codesign --deep -fs codelite-self-signed codelite.app |
| 13 |
echo "Signing the app..done" |
| 14 |
|
| 15 |
package_file=codelite-${arch}.app.tar.gz |
| 16 |
upload_path="/var/www/html/downloads/codelite/${version}" |
| 17 |
ssh [email protected] "mkdir -p ${upload_path}" |
| 18 |
tar cvfz ${package_file} codelite.app/* |
| 19 |
scp ${package_file} [email protected]:${upload_path} |
| 20 |
ssh [email protected] \ |
| 21 |
"cd ${upload_path} && sha256sum ${package_file} |cut -d' ' -f1 > ${package_file}.sha1 && cat ${package_file}.sha1" |