Skip to content

Commit

Permalink
Use "strip" to reduce sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-hc authored Oct 4, 2024
1 parent 1020277 commit 2dca97c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gimp-dev-junest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ rm -R -f ./deps/.*
# ADDITIONAL REMOVALS
rm -R -f ./$APP.AppDir/.junest/usr/lib/libLLVM-* #INCLUDED IN THE COMPILATION PHASE, CAN SOMETIMES BE EXCLUDED FOR DAILY USE
rm -R -f ./$APP.AppDir/.junest/usr/lib/python*/__pycache__/* #IF PYTHON IS INSTALLED, REMOVING THIS DIRECTORY CAN SAVE SEVERAL MEGABYTES
strip --strip-debug ./$APP.AppDir/.junest/usr/lib/*
strip --strip-unneeded ./$APP.AppDir/.junest/usr/bin/*

# REMOVE THE INBUILT HOME
rm -R -f ./$APP.AppDir/.junest/home
Expand Down
2 changes: 2 additions & 0 deletions gimp-git-junest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,8 @@ function _enable_mountpoints_for_the_inbuilt_bubblewrap() {
_rsync_main_package
_rsync_dependences
_remove_more_bloatwares
strip --strip-debug ./$APP.AppDir/.junest/usr/lib/*
strip --strip-unneeded ./$APP.AppDir/.junest/usr/bin/*
_enable_mountpoints_for_the_inbuilt_bubblewrap

# CREATE THE APPIMAGE
Expand Down
2 changes: 2 additions & 0 deletions gimp-hybrid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,8 @@ rsync --ignore-existing -raz --progress ./gimp-python-patch/usr/* ./$APP.AppDir/
# ADDITIONAL REMOVALS
rm -R -f ./$APP.AppDir/.junest/usr/lib/libLLVM-* #INCLUDED IN THE COMPILATION PHASE, CAN SOMETIMES BE EXCLUDED FOR DAILY USE
rm -R -f ./$APP.AppDir/.junest/usr/lib/python*/__pycache__/* #IF PYTHON IS INSTALLED, REMOVING THIS DIRECTORY CAN SAVE SEVERAL MEGABYTES
strip --strip-debug ./$APP.AppDir/.junest/usr/lib/*
strip --strip-unneeded ./$APP.AppDir/.junest/usr/bin/*

# REMOVE THE INBUILT HOME
rm -R -f ./$APP.AppDir/.junest/home
Expand Down
2 changes: 2 additions & 0 deletions gimp-junest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,8 @@ rm -R -f ./deps/.*
# ADDITIONAL REMOVALS
rm -R -f ./$APP.AppDir/.junest/usr/lib/libLLVM-* #INCLUDED IN THE COMPILATION PHASE, CAN SOMETIMES BE EXCLUDED FOR DAILY USE
rm -R -f ./$APP.AppDir/.junest/usr/lib/python*/__pycache__/* #IF PYTHON IS INSTALLED, REMOVING THIS DIRECTORY CAN SAVE SEVERAL MEGABYTES
strip --strip-debug ./$APP.AppDir/.junest/usr/lib/*
strip --strip-unneeded ./$APP.AppDir/.junest/usr/bin/*

# REMOVE THE INBUILT HOME
rm -R -f ./$APP.AppDir/.junest/home
Expand Down

0 comments on commit 2dca97c

Please sign in to comment.