~prokop/rdck.dev

57bb06350b1117119c3ca9dba70ee48b337598a7 — Prokop Randacek 17 days ago 46b5334
deploy script
3 files changed, 20 insertions(+), 7 deletions(-)

M assets/fun/jpeg/gen
M content/maps.md
A deploy.sh
M assets/fun/jpeg/gen => assets/fun/jpeg/gen +3 -3
@@ 3,11 3,11 @@
echo "const sizes = [" > sizes.js

for q in $(seq 100); do
	echo $q
	mogrify -format jpg -quality $q orig.png
	mv orig.jpg $q.jpg
	printf "$q\r"
	convert orig.png -format jpg -quality $q $q.jpg
	du -h $q.jpg | awk '{print "\""$1"\","}' >> sizes.js
done
echo

du -h orig.png | awk '{print "\""$1"\""}' >> sizes.js


M content/maps.md => content/maps.md +4 -4
@@ 10,9 10,9 @@ order: 4
---

- Minecraft
  - [SMP](/m/m/smp)
  - [old SMP](/m/m/trida) - [World Download](/dl/trida_smp.tar.gz)
  - [SMP](/dl/m/smp)
  - [old SMP](/dl/m/trida) - [World Download](/dl/trida_smp.tar.gz)
- Factorio
  - [Space Exploration](/m/f/se)
  - [Protab](/m/f/protab) - [World Download](/dl/protab_save.tar.gz)
  - [Space Exploration](/dl/m/se)
  - [Protab](/dl/m/protab) - [World Download](/dl/protab_save.tar.gz)


A deploy.sh => deploy.sh +13 -0
@@ 0,0 1,13 @@
#!/usr/bin/sh
set -x -e

pushd assets/fun/jpeg/
./gen
popd

bundle exec jekyll build

rsync -avh _site/ prokop@rdck.dev:www --delete

ssh -t prokop@rdck.dev 'ln -sf ~/public ~/www/dl'