Skip to content

Commit

Permalink
Strip all binaries and libraries
Browse files Browse the repository at this point in the history
This reduces size decently
  • Loading branch information
Kron4ek committed Jun 7, 2020
1 parent a8c6216 commit fec52ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build_wine.sh
Expand Up @@ -254,6 +254,11 @@ cd "$MAINDIR/wine-$WINE_VERSION-x86" && rm -r include && rm -r share/application
cd "$MAINDIR/wine-$WINE_VERSION-amd64" && rm -r include && rm -r share/applications && rm -r share/man
cd "$MAINDIR/wine-$WINE_VERSION-amd64-nomultilib" && rm -r include && rm -r share/applications && rm -r share/man && cd bin && ln -sr wine64 wine

# Strip all binaries and libraries
find "$MAINDIR/wine-$WINE_VERSION-x86" -type f -exec strip --strip-unneeded {} \;
find "$MAINDIR/wine-$WINE_VERSION-amd64" -type f -exec strip --strip-unneeded {} \;
find "$MAINDIR/wine-$WINE_VERSION-amd64-nomultilib" -type f -exec strip --strip-unneeded {} \;

cd "$MAINDIR"

tar -cf wine-$WINE_VERSION-amd64.tar wine-$WINE_VERSION-amd64
Expand Down

0 comments on commit fec52ad

Please sign in to comment.