Permalink
Browse files

bug: deploy-sample.sh failed on Linux

  • Loading branch information...
MikeMitterer committed Jun 27, 2018
1 parent 63c4187 commit 456927c5847a4d841002bac51463ffa96f738ce9
Showing with 7 additions and 56 deletions.
  1. +1 −0 .gitignore
  2. +5 −4 deploy-sample.sh
  3. +1 −1 example/browser/web/index.html
  4. +0 −51 example/browser/web/index.html-e
@@ -1,3 +1,4 @@
packages
pubspec.lock

*.bak
@@ -99,16 +99,17 @@ publishSamples() {
local S3BUCKET=$(cat "${SAMPLE}/.s3" | sed -e "s/^#.*$//g" -e "/^$/d" | head -n 1)

cd ${SAMPLE}
pub update
#pub update

# Set current date in index.html
sed -i -e "s#\<span class=\"pubdate\"\>[^<]*\</span\>#<span class=\"pubdate\">$(date +"%Y-%m-%d / %H:%M")</span>#g" web/index.html
sed -i .bak -e "s#<span class=\"pubdate\">[^<]*</span>#<span class=\"pubdate\">$(date +"%Y-%m-%d / %H:%M:%S")</span>#g" web/index.html

# Dart build
pub run build_runner build --output web:deploy
#pub run build_runner build --output web:deploy

# Sync to Amazon (root dir: browser)
aws s3 sync --delete deploy/ s3://${S3BUCKET}
# Uses 'Bucket-all-samples-for-mikemitterer.at' policy on AWS
#aws s3 sync --delete deploy/ s3://${S3BUCKET}

done
}
@@ -38,7 +38,7 @@
<footer id="pageFooter" class="dark-mode">
<div>Sample for pub-package:
<a href="https://pub.dartlang.org/packages/m4d_router" target="_blank">m4d_router</a>
<span class="published">/ published: <span class="pubdate">2018-06-27 / 11:18</span></span>
<span class="published">/ published: <span class="pubdate">2018-06-27 / 17:13:15</span></span>
</div>

<div>

This file was deleted.

Oops, something went wrong.

0 comments on commit 456927c

Please sign in to comment.