summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-10-15 13:42:02 -0500
committerAlexander M Pickering <alex@cogarr.net>2024-10-15 13:42:02 -0500
commitccd10c71b3dc09a36b69443760162a316789e21c (patch)
tree790893b89104886bca3ca7dfe651c71c8e34b629 /init
parent34d36e1e3dd6a36ff4d7eceba0d2fd3499da6f1a (diff)
downloadimage-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-xinit12
1 files changed, 11 insertions, 1 deletions
diff --git a/init b/init
index e0b69a5..f82ed58 100755
--- a/init
+++ b/init
@@ -3,4 +3,14 @@
3rc-service networking start 3rc-service networking start
4 4
5# Install 5# Install
6apk add wine zip xdotool xwd xvfb xvfb-run imagemagick 6apk add wine zip xdotool xwd xvfb xvfb-run imagemagick upx
7
8# Compress wine and libllvm
9upx -9t -q --no-color --no-progress --ultra-brute --strip-relocs=0 --compress-exports=0 --compress-icons=0 --overlay=skip /usr/lib/wine/i386-windows/*
10upx -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/*
11upx -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
14rm -rf /var/cache/apk/*
15
16