diff options
author | Alexander M Pickering <alex@cogarr.net> | 2024-10-15 13:42:02 -0500 |
---|---|---|
committer | Alexander M Pickering <alex@cogarr.net> | 2024-10-15 13:42:02 -0500 |
commit | ccd10c71b3dc09a36b69443760162a316789e21c (patch) | |
tree | 790893b89104886bca3ca7dfe651c71c8e34b629 /init | |
parent | 34d36e1e3dd6a36ff4d7eceba0d2fd3499da6f1a (diff) | |
download | image-wine-ccd10c71b3dc09a36b69443760162a316789e21c.tar.gz image-wine-ccd10c71b3dc09a36b69443760162a316789e21c.tar.bz2 image-wine-ccd10c71b3dc09a36b69443760162a316789e21c.zip |
Attempt to compress wine folder for smaller image size.
Diffstat (limited to 'init')
-rwxr-xr-x | init | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -3,4 +3,14 @@ | |||
3 | rc-service networking start | 3 | rc-service networking start |
4 | 4 | ||
5 | # Install | 5 | # Install |
6 | apk add wine zip xdotool xwd xvfb xvfb-run imagemagick | 6 | apk add wine zip xdotool xwd xvfb xvfb-run imagemagick upx |
7 | |||
8 | # Compress wine and libllvm | ||
9 | upx -9t -q --no-color --no-progress --ultra-brute --strip-relocs=0 --compress-exports=0 --compress-icons=0 --overlay=skip /usr/lib/wine/i386-windows/* | ||
10 | upx -9t -q --no-color --no-progress --ultra-brute --strip-relocs=0 --compress-exports=0 --compress-icons=0 --overlay=skip /usr/lib/wine/x86_64-windows/* | ||
11 | upx -9t -q --no-color --no-progress --ultra-brute --strip-relocs=0 --compress-exports=0 --compress-icons=0 --overlay=skip /usr/lib/libLLVM.so.* | ||
12 | |||
13 | # Delete cache | ||
14 | rm -rf /var/cache/apk/* | ||
15 | |||
16 | |||