File: deploy.bat

package info (click to toggle)
python-sigima 1.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 24,956 kB
  • sloc: python: 33,326; makefile: 3
file content (23 lines) | stat: -rw-r--r-- 611 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@echo off

set INKSCAPE_PATH="C:\Program Files\Inkscape\bin\inkscape.exe"

@REM Deploying images and icons
copy Sigima.svg ..\sigima\data\logo
copy Sigima-Title.svg ..\doc\_static
%INKSCAPE_PATH% "Sigima-Frontpage.svg" -o "..\doc\_static\Sigima-Frontpage.png" -w 1300
%INKSCAPE_PATH% "Sigima-Banner.svg" -o "..\doc\images\Sigima-Banner.png" -w 364

@REM Generating icon
call :generate_icon "Sigima"

goto:eof

:generate_icon
set ICON_NAME=%1
for %%s in (16 24 32 48 128 256) do (
  %INKSCAPE_PATH% "%ICON_NAME%.svg" -o "tmp-%%s.png" -w %%s -h %%s
)
magick "tmp-*.png" "%ICON_NAME%.ico"
del "tmp-*.png"
goto:eof