1
0
Fork 0

Update folder structure, build scripts

master
Ambrose Chua 2019-08-25 17:50:41 +08:00
parent d564123bfb
commit 9038131900
13 changed files with 49 additions and 8 deletions

4
.gitignore vendored
View File

@ -1,2 +1,6 @@
.DS_Store
*.zip
*.pak
out/

View File

@ -20,14 +20,14 @@ Follow system colorscheme.
# Dark
<img alt="Dark Screenshot" src="screenshots/dark-chrome-1.png" />
<img alt="Dark Screenshot" src="screenshots/dark-chrome-1.png" width="512" />
[Firefox](https://addons.mozilla.org/en-US/firefox/addon/dark-matched/)
[Chrome](https://chrome.google.com/webstore/detail/dark-matched/aapflpcfdelmkobdakjnieeaoiofcodk)
# Light
<img alt="Light Screenshot" src="screenshots/light-chrome-1.png" />
<img alt="Light Screenshot" src="screenshots/light-chrome-1.png" width="512" />
[Firefox](https://addons.mozilla.org/en-US/firefox/addon/dark-matched/)
[Chrome](https://chrome.google.com/webstore/detail/light-matched/bilibfhhkphlgndmckcabgpbanadpnbj)

4
clean Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
rm -r out
mkdir out

37
crop Executable file
View File

@ -0,0 +1,37 @@
#!/bin/bash
for f in screenshots/*-*-1.png; do
outf="${f//screenshots\//out/}"
outf="${outf//-1.png/-screenshot-1.png}"
gm convert $f -crop 1280x800+0+0 $outf
done
for f in screenshots/*-*-2.png; do
outf="${f//screenshots\//out/}"
outf="${outf//-2.png/-screenshot-2.png}"
gm convert $f -crop 1280x800+1280+0 $outf
done
for f in screenshots/*-*-3.png; do
outf="${f//screenshots\//out/}"
outf="${outf//-3.png/-screenshot-3.png}"
gm convert $f -resize 1280x800 $outf
done
for f in screenshots/*-*-3.png; do
outf="${f//screenshots\//out/}"
outf="${outf//-3.png/-tile-small.png}"
gm convert $f -crop 440x280+0+0 $outf
done
for f in screenshots/*-*-3.png; do
outf="${f//screenshots\//out/}"
outf="${outf//-3.png/-tile-large.png}"
gm convert $f -crop 920x680+0+0 $outf
done
for f in screenshots/*-*-3.png; do
outf="${f//screenshots\//out/}"
outf="${outf//-3.png/-marquee.png}"
gm convert $f -crop 1400x560+0+0 $outf
done

View File

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

8
zip
View File

@ -1,15 +1,11 @@
#!/bin/bash
echo "Cleaning up..."
echo rm *.zip
rm *.zip
for f in *; do
for f in *-*; do
if ! [ -d "$f" ]; then
continue
fi
cd "$f"
echo "Zipping $f..."
zip -r "../$f.zip" manifest.json icon.png
zip -r "../out/$f.zip" manifest.json icon.png
cd ..
done