From b7e54081b8377711fdd9003efbbc5d1775f02dc6 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Sun, 18 Sep 2022 11:53:15 +0800 Subject: [PATCH] move lang.py and inlinee-sciter.py to res --- build.py | 2 +- res/gen_icon.sh | 7 +++++++ inline-sciter.py => res/inline-sciter.py | 0 lang.py => res/lang.py | 0 4 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 res/gen_icon.sh rename inline-sciter.py => res/inline-sciter.py (100%) rename lang.py => res/lang.py (100%) diff --git a/build.py b/build.py index eadd547e5..97942a319 100755 --- a/build.py +++ b/build.py @@ -201,7 +201,7 @@ def main(): '//#![windows_subsystem', '#![windows_subsystem')) if os.path.exists(exe_path): os.unlink(exe_path) - os.system('python3 inline-sciter.py') + os.system('python3 res/inline-sciter.py') if os.path.isfile('/usr/bin/pacman'): os.system('git checkout src/ui/common.tis') version = get_version() diff --git a/res/gen_icon.sh b/res/gen_icon.sh new file mode 100644 index 000000000..40b67aa53 --- /dev/null +++ b/res/gen_icon.sh @@ -0,0 +1,7 @@ +#!/bin/bash +for size in 16 32 64 128 256 512 1024; do + #inkscape -z -o $size.png -w $size -h $size icon.svg >/dev/null 2>/dev/null + convert icon.png -resize ${size}x${size} app_icon_$size.png +done +# from ImageMagick +#/bin/rm 16.png 32.png 48.png 128.png 256.png diff --git a/inline-sciter.py b/res/inline-sciter.py similarity index 100% rename from inline-sciter.py rename to res/inline-sciter.py diff --git a/lang.py b/res/lang.py similarity index 100% rename from lang.py rename to res/lang.py