mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-18 18:12:12 -05:00
c99e564f1e
Added a manpages sub-project to generate man pages for wsjtx from AsciiDoc source. Add items required by Debian packaging and Free Desktop Standards. Add better command line processing to wsjtx including version and help options. Add a new command line option 'test-mode' that invokes the Qt test mode where all writable file locations are moved to a common directory. This is to allow application testing from a repeatable start point rather than have the test application sharing files with normal operations. See QStandardPaths::setTestModeEnabled() for details of the test location. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4046 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
59 lines
3.0 KiB
Bash
Executable File
59 lines
3.0 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
#
|
|
# Windows
|
|
#
|
|
inkscape -z -e /tmp/image-0.png wsjtx_globe_128x128.svg
|
|
inkscape -z -e /tmp/image-1.png wsjtx_globe_1024x1024.svg
|
|
convert '/tmp/image-%d.png[0-1]' -background transparent \
|
|
\( -clone 0 -resize 16 -colors 256 -compress none \) \
|
|
\( -clone 0 -resize 20 -colors 256 -compress none \) \
|
|
\( -clone 0 -resize 24 -colors 256 -compress none \) \
|
|
\( -clone 0 -resize 32 -colors 256 -compress none \) \
|
|
\( -clone 0 -resize 40 -colors 256 -compress none \) \
|
|
\( -clone 1 -resize 48 -colors 256 -compress none \) \
|
|
\( -clone 1 -resize 96 -colors 256 -compress none \) \
|
|
\( -clone 1 -resize 128 -colors 256 -compress none \) \
|
|
\( -clone 0 -resize 16 -compress none \) \
|
|
\( -clone 0 -resize 20 -compress none \) \
|
|
\( -clone 0 -resize 24 -compress none \) \
|
|
\( -clone 0 -resize 32 -compress none \) \
|
|
\( -clone 0 -resize 40 -compress none \) \
|
|
\( -clone 1 -resize 48 -compress none \) \
|
|
\( -clone 1 -resize 64 -compress none \) \
|
|
\( -clone 1 -resize 96 -compress none \) \
|
|
\( -clone 1 -resize 128 -compress none \) \
|
|
\( -clone 1 -resize 256 -compress Zip \) \
|
|
-delete 1 -delete 0 \
|
|
-alpha remove ../icons/windows-icons/wsjtx.ico
|
|
rm /tmp/image-0.png /tmp/image-1.png
|
|
identify -format '%f %p/%n %m %C/%Q %r %G %A %z\n' ../icons/windows-icons/wsjtx.ico
|
|
#
|
|
inkscape -z -e /dev/stdout -w 150 -h 57 -b white installer_logo.svg | tail -n +4 | \
|
|
convert png:- -resize 150x57 +matte BMP3:../icons/windows-icons/installer_logo.bmp
|
|
identify -format '%f %p/%n %m %C/%Q %r %G %A %z\n' ../icons/windows-icons/installer_logo.bmp
|
|
|
|
#
|
|
# Mac
|
|
#
|
|
inkscape -z -e ../icons/Darwin/wsjtx.iconset/icon_16x16.png -w 16 -h 16 wsjtx_globe_128x128.svg
|
|
inkscape -z -e ../icons/Darwin/wsjtx.iconset/icon_16x16@2x.png -w 32 -h 32 wsjtx_globe_128x128.svg
|
|
inkscape -z -e ../icons/Darwin/wsjtx.iconset/icon_32x32.png -w 32 -h 32 wsjtx_globe_128x128.svg
|
|
inkscape -z -e ../icons/Darwin/wsjtx.iconset/icon_32x32@2x.png -w 64 -h 64 wsjtx_globe_128x128.svg
|
|
inkscape -z -e ../icons/Darwin/wsjtx.iconset/icon_128x128.png -w 128 -h 128 wsjtx_globe_1024x1024.svg
|
|
inkscape -z -e ../icons/Darwin/wsjtx.iconset/icon_128x128@2x.png -w 256 -h 256 wsjtx_globe_1024x1024.svg
|
|
inkscape -z -e ../icons/Darwin/wsjtx.iconset/icon_256x256.png -w 256 -h 256 wsjtx_globe_1024x1024.svg
|
|
inkscape -z -e ../icons/Darwin/wsjtx.iconset/icon_256x256@2x.png -w 512 -h 512 wsjtx_globe_1024x1024.svg
|
|
inkscape -z -e ../icons/Darwin/wsjtx.iconset/icon_512x512.png -w 512 -h 512 wsjtx_globe_1024x1024.svg
|
|
inkscape -z -e ../icons/Darwin/wsjtx.iconset/icon_512x512@2x.png -w 1024 -h 1024 wsjtx_globe_1024x1024.svg
|
|
identify -format '%f %p/%n %m %C/%Q %r %G %A %z\n' ../icons/Darwin/wsjtx.iconset/*
|
|
#
|
|
inkscape -z -e "../icons/Darwin/DragNDrop Background.png" -w 640 -h 480 -b white "DragNDrop Background.svg"
|
|
identify -format '%f %p/%n %m %C/%Q %r %G %A %z\n' "../icons/Darwin/DragNDrop Background.png"
|
|
|
|
#
|
|
# KDE & Gnome
|
|
#
|
|
inkscape -z -e ../icons/Unix/wsjtx_icon.png -w 128 -h 128 wsjtx_globe_1024x1024.svg
|
|
identify -format '%f %p/%n %m %C/%Q %r %G %A %z\n' ../icons/Unix/wsjtx_icon.png
|