From 14664e3bc681cc8c29dd78488ecd9425ae98afa9 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Tue, 15 Jun 2021 15:51:02 +0200 Subject: [PATCH] use pipe with inkscape --- icons.sh | 10 +++++----- pack-chrome.sh | 4 ---- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/icons.sh b/icons.sh index 30bb910..ccae8f3 100755 --- a/icons.sh +++ b/icons.sh @@ -2,8 +2,8 @@ dir=$(dirname $(realpath $0)) svg_data=$(curl --silent https://git.purser.it/roypur/stream-api/raw/branch/master/frontend/favicon-basic.svg) -echo ${svg_data} | inkscape --export-area-page --export-width=16 --export-height=16 --export-filename="${dir}/chrome/icon-16.png" -echo ${svg_data} | inkscape --export-area-page --export-width=19 --export-height=19 --export-filename="${dir}/chrome/icon-19.png" -echo ${svg_data} | inkscape --export-area-page --export-width=38 --export-height=38 --export-filename="${dir}/chrome/icon-38.png" -echo ${svg_data} | inkscape --export-area-page --export-width=48 --export-height=48 --export-filename="${dir}/chrome/icon-48.png" -echo ${svg_data} | inkscape --export-area-page --export-width=128 --export-height=128 --export-filename="${dir}/chrome/icon-128.png" +echo ${svg_data} | inkscape --pipe --export-area-page --export-width=16 --export-height=16 --export-filename="${dir}/chrome/icon-16.png" +echo ${svg_data} | inkscape --pipe --export-area-page --export-width=19 --export-height=19 --export-filename="${dir}/chrome/icon-19.png" +echo ${svg_data} | inkscape --pipe --export-area-page --export-width=38 --export-height=38 --export-filename="${dir}/chrome/icon-38.png" +echo ${svg_data} | inkscape --pipe --export-area-page --export-width=48 --export-height=48 --export-filename="${dir}/chrome/icon-48.png" +echo ${svg_data} | inkscape --pipe --export-area-page --export-width=128 --export-height=128 --export-filename="${dir}/chrome/icon-128.png" diff --git a/pack-chrome.sh b/pack-chrome.sh index 12ce54f..c10024b 100755 --- a/pack-chrome.sh +++ b/pack-chrome.sh @@ -36,8 +36,4 @@ fi ${browser} --disable-gpu --no-sandbox --user-data-dir=${chrome_dir} --pack-extension="${dir}/chrome" --pack-extension-key="${temp_dir}/privkey.pem" -ls -l ${dir} - -ls -l ${dir}/chrome - rm -rf ${temp_dir}