File: macdeploy.sh

package info (click to toggle)
flightcrew 0.9.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 6,748 kB
  • sloc: cpp: 53,736; xml: 2,006; ansic: 275; python: 215; sh: 112; makefile: 8; exp: 8
file content (10 lines) | stat: -rw-r--r-- 484 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
ORIGFILENAME=flightcrew-plugin
COMMIT=$(echo $TRAVIS_COMMIT | cut -c1-7)
DTE=$(echo $(date +%Y-%m-%d_%H_%M_%S) | cut -c1-10)
NEWFILENAME="$ORIGFILENAME-$TRAVIS_BRANCH-$COMMIT-$DTE-mac"
cp "./bin/$ORIGFILENAME" "./bin/$NEWFILENAME"
FILESIZE=$(stat -f%z "./bin/$NEWFILENAME")
echo "Finished rename (size $FILESIZE), starting Google Drive upload"
gdrive --refresh-token $GDRIVE_REFRESH_TOKEN upload --parent $GDRIVE_DIR "./bin/$NEWFILENAME"
echo "Finished Google Drive upload"