Skip to content

Commit

Permalink
Merge pull request #140 from pathmapper/spreet
Browse files Browse the repository at this point in the history
Fix sprite json
  • Loading branch information
pathmapper authored May 30, 2024
2 parents 88a58b0 + 748d1c1 commit 77876c7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions build_sprites.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/bin/bash

mkdir -p ./temp
mkdir -p ./temp/svgs
cp -a ./svgs/svgs_not_in_iconset/. ./temp/svgs/
cp -a ./svgs/svgs_iconset/. ./temp/svgs/
wget -P ./temp https://github.com/flother/spreet/releases/download/v0.11.0/spreet-x86_64-unknown-linux-musl.tar.gz
tar -xzvf ./temp/spreet-x86_64-unknown-linux-musl.tar.gz -C ./temp
./temp/spreet --unique --minify-index-file --recursive ./svgs ./sprites/osm-liberty
./temp/spreet --unique --minify-index-file --recursive --retina ./svgs ./sprites/osm-liberty@2x
./temp/spreet --unique --minify-index-file --recursive ./temp/svgs/ ./sprites/osm-liberty
./temp/spreet --unique --minify-index-file --recursive --retina ./temp/svgs/ ./sprites/osm-liberty@2x
rm -r temp
Loading

0 comments on commit 77876c7

Please sign in to comment.