Skip to content

Commit 88a58b0

Browse files
authored
Merge pull request #139 from pathmapper/spreet
Use spreet instead of spritezero
2 parents ec25822 + 767168e commit 88a58b0

File tree

8 files changed

+226
-7074
lines changed

8 files changed

+226
-7074
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ Save the downloaded SVGs from Maki Editor to the folder [svgs_iconset](https://g
8484
3. Mandatory if the updated `iconset.json` should become part of this repo: Format the JSON with `cat iconset.json | jq -MS '.'` for better legibility.
8585
4. There are also SVGs in the folder [svgs_not_in_iconset](https://github.com/maputnik/osm-liberty/tree/gh-pages/svgs/svgs_not_in_iconset).
8686
These are the SVGs for road shields, the dot used for city and town layers and the road area pattern which could not be modified using the Maki Editor. To modify these you could use e.g. [Inkscape](https://inkscape.org).
87-
5. Install the NPM dev dependencies: `npm install` to have [spritezero-cli](https://gitlab.com/beyondtracks/spritezero-cli) available (we're using a fork of https://github.com/mapbox/spritezero-cli ).
88-
6. Generate the low and high resolution sprites: `npm run build_sprites`
87+
5. Generate the low and high resolution sprites: `npm run build_sprites`
8988

9089
## Have a look at ...
9190

build_sprites.sh

100644100755
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22

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

0 commit comments

Comments
 (0)