diff --git a/.build.yml b/.build.yml index b030cf8..ddbcd2e 100644 --- a/.build.yml +++ b/.build.yml @@ -113,11 +113,11 @@ tasks: echo "Task completed in $(($duration / 60))m$(($duration % 60))s." - upload_dpkg: | - # Just fail - test -z "fjkjksdf" + SECONDS=0 + cd twitter_offline_engine/build + scp -i ~/.ssh/4e6bb736-559c-4b3e-ba04-331f5808cacc offline-twitter-engine_${version}_all.deb aptrepo@apt.playfulpachyderm.com:/apt-repo/test-repo + ssh -i ~/.ssh/4e6bb736-559c-4b3e-ba04-331f5808cacc aptrepo@apt.playfulpachyderm.com "cd ~/test-repo && ./update.sh" - # SECONDS=0 - - # cd twitter_offline_engine/build - # scp offline + duration=$SECONDS + echo "Task completed in $(($duration / 60))m$(($duration % 60))s." diff --git a/build/build_dpkg.sh b/build/build_dpkg.sh index e682e3f..2ce0390 100755 --- a/build/build_dpkg.sh +++ b/build/build_dpkg.sh @@ -21,7 +21,7 @@ mkdir dpkg_tmp # Construct the dpkg directory structure mkdir -p dpkg_tmp/usr/local/bin -cp ../cmd/tw dpkg_tmp/usr/local/bin +cp ../cmd/tw dpkg_tmp/usr/local/bin/twitter # Create the `DEBIAN/control` file mkdir dpkg_tmp/DEBIAN @@ -36,7 +36,7 @@ Priority: optional Homepage: http://offline-twitter.com Description: This utility is the scraper engine that drives \`offline-twitter\`. Download and browse content from twitter. - Save a local copy of everything you browse. + Save a local copy of everything you browse to a SQLite database. " > dpkg_tmp/DEBIAN/control diff --git a/cmd/compile.sh b/cmd/compile.sh index 6c7eb8e..ff16197 100755 --- a/cmd/compile.sh +++ b/cmd/compile.sh @@ -3,5 +3,5 @@ set -x set -e -go build -o tw ./twitter +go build -ldflags="-s -w" -o tw ./twitter chmod +x tw