-
Notifications
You must be signed in to change notification settings - Fork 0
/
msys2_deploy.sh
75 lines (60 loc) · 2.12 KB
/
msys2_deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#! /bin/bash
set -eo pipefail
rm -rf build
mkdir -p build
cp build-aux/py.spec build/py.spec
cp build-aux/inno.iss build/inno.iss
cd build
pacman -Sy --noconfirm --needed \
mingw-w64-x86_64-meson \
mingw-w64-x86_64-gtk3 \
mingw-w64-x86_64-python3-gobject \
mingw-w64-x86_64-gtk-update-icon-cache \
mingw-w64-x86_64-desktop-file-utils \
tar \
mingw-w64-x86_64-python-pip \
mingw-w64-x86_64-python-dateutil \
mingw-w64-x86_64-python-requests \
mingw-w64-x86_64-innoextract \
mingw-w64-x86_64-icoutils
wget -O inno.exe https://jrsoftware.org/download.php/is.exe
innoextract -m inno.exe
pip install pyinstaller CurrencyConverter
meson .. ../build
meson install
wget -O fluent-icon.tar.xz \
https://github.com/vinceliuice/Fluent-icon-theme/raw/3d0eadd0da82893c763284137179b2c31716863b/release/Fluent.tar.xz
set +e
/bin/tar -xf fluent-icon.tar.xz \
'Fluent/symbolic/actions' 'Fluent/symbolic/mimetypes' \
'Fluent/symbolic/status/process-working-symbolic.svg' \
'Fluent/scalable/apps/image-missing.svg'
'Fluent/icon-theme.cache' 'Fluent/index.theme'
set -e
mv 'Fluent' 'fluent-icon'
rm -rf /mingw64/share/icons/Fluent
mkdir -p /mingw64/share/icons/Fluent
cp -rf fluent-icon/* /mingw64/share/icons/Fluent
wget -O fluent-theme.tar.xz \
https://github.com/vinceliuice/Fluent-gtk-theme/raw/f929b7e2c8e4e18b3e23af90bae8a1a345beaafb/release/Fluent.tar.xz
set +e
/bin/tar -xf fluent-theme.tar.xz 'Fluent-light-compact'
set -e
mv 'Fluent-light-compact' 'fluent-theme'
rm -rf /mingw64/share/themes/Fluent
mkdir -p /mingw64/share/themes/Fluent
cp -rf fluent-theme/* /mingw64/share/themes/Fluent
sizes=(16 32 48 256)
files=()
for size in ${sizes[@]}; do
files+=(logo-${size}.png)
rsvg-convert -a -w ${size} -h ${size} \
../data/icons/hicolor/scalable/apps/org.example.App.svg \
-o logo-${size}.png
done
icotool -c -o logo.ico ${files[@]}
mkdir -p /mingw64/etc/gtk-3.0
echo -e "[Settings]\ngtk-theme-name=Fluent\ngtk-icon-theme-name=Fluent" > /mingw64/etc/gtk-3.0/settings.ini
glib-compile-schemas /mingw64/share/glib-2.0/schemas
pyinstaller py.spec --clean
./app/iscc inno.iss