-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Further reduced app size, zip is now 4.6MB
- Loading branch information
1 parent
79dc187
commit 9081b1d
Showing
5 changed files
with
107 additions
and
106 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1,83 @@ | ||
REM These are unneccesary files automatically included when installing the application (sorry, couldn't find a way to avoid including them) which you can remove safely. Running this script should reduce the size of the application significantly. | ||
REM DON'T RUN THIS IF THE APPLICATION WAS BUILT USING A VERSION OF PYGAME THAT IS NOT AT LEAST 2.0. | ||
|
||
@echo off | ||
|
||
del python3.dll 2>NUL | ||
del api-ms-win-crt-conio-l1-1-0.dll 2>NUL | ||
del api-ms-win-crt-convert-l1-1-0.dll 2>NUL | ||
del api-ms-win-crt-environment-l1-1-0.dll 2>NUL | ||
del api-ms-win-crt-filesystem-l1-1-0.dll 2>NUL | ||
del api-ms-win-crt-heap-l1-1-0.dll 2>NUL | ||
del api-ms-win-crt-locale-l1-1-0.dll 2>NUL | ||
del api-ms-win-crt-math-l1-1-0.dll 2>NUL | ||
del api-ms-win-crt-process-l1-1-0.dll 2>NUL | ||
del api-ms-win-crt-runtime-l1-1-0.dll 2>NUL | ||
del api-ms-win-crt-stdio-l1-1-0.dll 2>NUL | ||
del api-ms-win-crt-string-l1-1-0.dll 2>NUL | ||
del api-ms-win-crt-time-l1-1-0.dll 2>NUL | ||
del api-ms-win-crt-*.dll 2>NUL | ||
|
||
del lib\python37.dll 2>NUL | ||
del lib\python38.dll 2>NUL | ||
del lib\python3*.dll 2>NUL | ||
del lib\unicodedata.pyd 2>NUL | ||
del lib\vcruntime140.dll 2>NUL | ||
del lib\api-ms-win-crt-conio-l1-1-0.dll 2>NUL | ||
del lib\api-ms-win-crt-convert-l1-1-0.dll 2>NUL | ||
del lib\api-ms-win-crt-environment-l1-1-0.dll 2>NUL | ||
del lib\api-ms-win-crt-filesystem-l1-1-0.dll 2>NUL | ||
del lib\api-ms-win-crt-heap-l1-1-0.dll 2>NUL | ||
del lib\api-ms-win-crt-locale-l1-1-0.dll 2>NUL | ||
del lib\api-ms-win-crt-math-l1-1-0.dll 2>NUL | ||
del lib\api-ms-win-crt-process-l1-1-0.dll 2>NUL | ||
del lib\api-ms-win-crt-runtime-l1-1-0.dll 2>NUL | ||
del lib\api-ms-win-crt-stdio-l1-1-0.dll 2>NUL | ||
del lib\api-ms-win-crt-string-l1-1-0.dll 2>NUL | ||
del lib\api-ms-win-crt-time-l1-1-0.dll 2>NUL | ||
del lib\api-ms-win-crt-utility-l1-1-0.dll 2>NUL | ||
del lib\pywintypes37.dll 2>NUL | ||
del lib\pywintypes38.dll 2>NUL | ||
|
||
rd /s /q lib\xml 2>NUL | ||
del lib\api-ms-win-crt-*.dll 2>NUL | ||
del lib\pywintypes3*.dll 2>NUL | ||
del lib\_bz2.pyd 2>NUL | ||
del lib\_ctypes_test.pyd 2>NUL | ||
del lib\_hashlib.pyd 2>NUL | ||
del lib\_lzma.pyd 2>NUL | ||
del lib\_queue.pyd 2>NUL | ||
del lib\_socket.pyd 2>NUL | ||
del lib\_testbuffer.pyd 2>NUL | ||
del lib\_testcapi.pyd 2>NUL | ||
del lib\_win32sysloader.pyd 2>NUL | ||
del lib\select.pyd 2>NUL | ||
del lib\win32api.pyd 2>NUL | ||
del lib\win32file.pyd 2>NUL | ||
del lib\win32pipe.pyd 2>NUL | ||
|
||
rd /s /q lib\ctypes\test 2>NUL | ||
rd /s /q lib\ctypes\macholib 2>NUL | ||
del lib\ctypes\_aix.pyc 2>NUL | ||
del lib\ctypes\util.pyc 2>NUL | ||
del lib\ctypes\wintypes.pyc 2>NUL | ||
|
||
REM Remove every codec or file supplied in lib/encodings except the 5 that are actually used | ||
mkdir lib\tmp 2>NUL | ||
move lib\encodings\__init__.pyc lib\tmp 2>NUL | ||
move lib\encodings\aliases.pyc lib\tmp 2>NUL | ||
move lib\encodings\latin_1.pyc lib\tmp 2>NUL | ||
move lib\encodings\mbcs.pyc lib\tmp 2>NUL | ||
move lib\encodings\utf_8.pyc lib\tmp 2>NUL | ||
rd /s /q lib\encodings 2>NUL | ||
move lib/tmp lib\encodings 2>NUL | ||
|
||
del lib\importlib\metadata.pyc 2>NUL | ||
del lib\importlib\_bootstrap.pyc 2>NUL | ||
del lib\importlib\_bootstrap_external.pyc 2>NUL | ||
|
||
rd /s /q lib\pygame\__pyinstaller 2>NUL | ||
rd /s /q lib\pygame\_sdl2 2>NUL | ||
rd /s /q lib\pygame\docs 2>NUL | ||
rd /s /q lib\pygame\examples 2>NUL | ||
rd /s /q lib\pygame\tests 2>NUL | ||
rd /s /q lib\pygame\threads 2>NUL | ||
del lib\pygame\python37.dll 2>NUL | ||
del lib\pygame\python38.dll 2>NUL | ||
del lib\pygame\_sprite.cp37-win_amd64.pyd 2>NUL | ||
del lib\pygame\_sprite.cp38-win_amd64.pyd 2>NUL | ||
del lib\pygame\api-ms-win-crt-conio-l1-1-0.dll 2>NUL | ||
del lib\pygame\api-ms-win-crt-convert-l1-1-0.dll 2>NUL | ||
del lib\pygame\api-ms-win-crt-environment-l1-1-0.dll 2>NUL | ||
del lib\pygame\api-ms-win-crt-filesystem-l1-1-0.dll 2>NUL | ||
del lib\pygame\api-ms-win-crt-heap-l1-1-0.dll 2>NUL | ||
del lib\pygame\api-ms-win-crt-locale-l1-1-0.dll 2>NUL | ||
del lib\pygame\api-ms-win-crt-math-l1-1-0.dll 2>NUL | ||
del lib\pygame\api-ms-win-crt-process-l1-1-0.dll 2>NUL | ||
del lib\pygame\api-ms-win-crt-runtime-l1-1-0.dll 2>NUL | ||
del lib\pygame\api-ms-win-crt-stdio-l1-1-0.dll 2>NUL | ||
del lib\pygame\api-ms-win-crt-string-l1-1-0.dll 2>NUL | ||
del lib\pygame\api-ms-win-crt-time-l1-1-0.dll 2>NUL | ||
del lib\pygame\api-ms-win-crt-utility-l1-1-0.dll 2>NUL | ||
del lib\pygame\python3*.dll 2>NUL | ||
del lib\pygame\api-ms-win-crt-*.dll 2>NUL | ||
del lib\pygame\libwebp-7.dll 2>NUL | ||
del lib\pygame\libFLAC-8.dll 2>NUL | ||
del lib\pygame\libtiff-5.dll 2>NUL | ||
del lib\pygame\libmpg123-0.dll 2>NUL | ||
del lib\pygame\libmodplug-1.dll 2>NUL | ||
del lib\pygame\libvorbis-0.dll 2>NUL | ||
del lib\pygame\pygame.ico 2>NUL | ||
del lib\pygame\libopus-0.dll 2>NUL | ||
del lib\pygame\sdl2_mixer.dll 2>NUL | ||
del lib\pygame\freesansbold.ttf 2>NUL | ||
del lib\pygame\libvorbisfile-3.dll 2>NUL | ||
del lib\pygame\libogg-0.dll 2>NUL | ||
del lib\pygame\libopusfile-0.dll 2>NUL | ||
del lib\pygame\portmidi.dll 2>NUL | ||
del lib\pygame\pygame.ico 2>NUL | ||
del lib\pygame\pygame_icon.icns 2>NUL | ||
del lib\pygame\pygame_icon.svg 2>NUL | ||
del lib\pygame\pygame_icon.bmp 2>NUL | ||
del lib\pygame\pygame_icon.tiff 2>NUL | ||
del lib\pygame\freesansbold.ttf 2>NUL | ||
del lib\pygame\sprite.pyc 2>NUL | ||
del lib\pygame\_camera*.pyc 2>NUL | ||
del lib\pygame\_dummy*.pyc 2>NUL | ||
del lib\pygame\_numpy*.pyc 2>NUL | ||
del lib\pygame\_sprite.*.pyd 2>NUL | ||
del lib\pygame\_freetype.*.pyd 2>NUL | ||
del lib\pygame\*.pyi 2>NUL | ||
|
||
del cleanup.sh 2>NUL | ||
del cleanup.bat 2>NUL | ||
del cleanup.bat 2>NUL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,83 +1,81 @@ | ||
# These are unneccesary files automatically included when installing the application (sorry, couldn't find a way to avoid including them) which you can remove safely. Running this script should reduce the size of the application significantly. | ||
# DON'T RUN THIS IF THE APPLICATION WAS BUILT USING A VERSION OF PYGAME THAT IS NOT AT LEAST 2.0. | ||
|
||
rm python3.dll | ||
rm api-ms-win-crt-conio-l1-1-0.dll | ||
rm api-ms-win-crt-convert-l1-1-0.dll | ||
rm api-ms-win-crt-environment-l1-1-0.dll | ||
rm api-ms-win-crt-filesystem-l1-1-0.dll | ||
rm api-ms-win-crt-heap-l1-1-0.dll | ||
rm api-ms-win-crt-locale-l1-1-0.dll | ||
rm api-ms-win-crt-math-l1-1-0.dll | ||
rm api-ms-win-crt-process-l1-1-0.dll | ||
rm api-ms-win-crt-runtime-l1-1-0.dll | ||
rm api-ms-win-crt-stdio-l1-1-0.dll | ||
rm api-ms-win-crt-string-l1-1-0.dll | ||
rm api-ms-win-crt-time-l1-1-0.dll | ||
rm api-ms-win-crt-*.dll | ||
|
||
rm lib/python37.dll | ||
rm lib/python38.dll | ||
rm lib/python3*.dll | ||
rm lib/unicodedata.pyd | ||
rm lib/vcruntime140.dll | ||
rm lib/api-ms-win-crt-conio-l1-1-0.dll | ||
rm lib/api-ms-win-crt-convert-l1-1-0.dll | ||
rm lib/api-ms-win-crt-environment-l1-1-0.dll | ||
rm lib/api-ms-win-crt-filesystem-l1-1-0.dll | ||
rm lib/api-ms-win-crt-heap-l1-1-0.dll | ||
rm lib/api-ms-win-crt-locale-l1-1-0.dll | ||
rm lib/api-ms-win-crt-math-l1-1-0.dll | ||
rm lib/api-ms-win-crt-process-l1-1-0.dll | ||
rm lib/api-ms-win-crt-runtime-l1-1-0.dll | ||
rm lib/api-ms-win-crt-stdio-l1-1-0.dll | ||
rm lib/api-ms-win-crt-string-l1-1-0.dll | ||
rm lib/api-ms-win-crt-time-l1-1-0.dll | ||
rm lib/api-ms-win-crt-utility-l1-1-0.dll | ||
rm lib/pywintypes37.dll | ||
rm lib/pywintypes38.dll | ||
|
||
rm -r lib/xml | ||
rm lib/api-ms-win-crt-*.dll | ||
rm lib/pywintypes3*.dll | ||
rm lib/_bz2.pyd | ||
rm lib/_ctypes_test.pyd | ||
rm lib/_hashlib.pyd | ||
rm lib/_lzma.pyd | ||
rm lib/_queue.pyd | ||
rm lib/_socket.pyd | ||
rm lib/_testbuffer.pyd | ||
rm lib/_testcapi.pyd | ||
rm lib/_win32sysloader.pyd | ||
rm lib/select.pyd | ||
rm lib/win32api.pyd | ||
rm lib/win32file.pyd | ||
rm lib/win32pipe.pyd | ||
|
||
rm -r lib/ctypes/test | ||
rm -r lib/ctypes/macholib | ||
rm lib/ctypes/_aix.pyc | ||
rm lib/ctypes/util.pyc | ||
rm lib/ctypes/wintypes.pyc | ||
|
||
# Remove every codec or file supplied in lib/encodings except the 5 that are actually used | ||
mkdir lib/tmp | ||
mv lib/encodings/__init__.pyc lib/tmp | ||
mv lib/encodings/aliases.pyc lib/tmp | ||
mv lib/encodings/latin_1.pyc lib/tmp | ||
mv lib/encodings/mbcs.pyc lib/tmp | ||
mv lib/encodings/utf_8.pyc lib/tmp | ||
rm -r lib/encodings | ||
mv lib/tmp lib/encodings | ||
|
||
rm lib/importlib/metadata.pyc | ||
rm lib/importlib/_bootstrap.pyc | ||
rm lib/importlib/_bootstrap_external.pyc | ||
|
||
rm -r lib/pygame/__pyinstaller | ||
rm -r lib/pygame/_sdl2 | ||
rm -r lib/pygame/docs | ||
rm -r lib/pygame/examples | ||
rm -r lib/pygame/tests | ||
rm -r lib/pygame/threads | ||
rm lib/pygame/python37.dll | ||
rm lib/pygame/python38.dll | ||
rm lib/pygame/_sprite.cp37-win_amd64.pyd | ||
rm lib/pygame/_sprite.cp38-win_amd64.pyd | ||
rm lib/pygame/api-ms-win-crt-conio-l1-1-0.dll | ||
rm lib/pygame/api-ms-win-crt-convert-l1-1-0.dll | ||
rm lib/pygame/api-ms-win-crt-environment-l1-1-0.dll | ||
rm lib/pygame/api-ms-win-crt-filesystem-l1-1-0.dll | ||
rm lib/pygame/api-ms-win-crt-heap-l1-1-0.dll | ||
rm lib/pygame/api-ms-win-crt-locale-l1-1-0.dll | ||
rm lib/pygame/api-ms-win-crt-math-l1-1-0.dll | ||
rm lib/pygame/api-ms-win-crt-process-l1-1-0.dll | ||
rm lib/pygame/api-ms-win-crt-runtime-l1-1-0.dll | ||
rm lib/pygame/api-ms-win-crt-stdio-l1-1-0.dll | ||
rm lib/pygame/api-ms-win-crt-string-l1-1-0.dll | ||
rm lib/pygame/api-ms-win-crt-time-l1-1-0.dll | ||
rm lib/pygame/api-ms-win-crt-utility-l1-1-0.dll | ||
rm lib/pygame/python3*.dll | ||
rm lib/pygame/api-ms-win-crt-*.dll | ||
rm lib/pygame/libwebp-7.dll | ||
rm lib/pygame/libFLAC-8.dll | ||
rm lib/pygame/libtiff-5.dll | ||
rm lib/pygame/libmpg123-0.dll | ||
rm lib/pygame/libmodplug-1.dll | ||
rm lib/pygame/libvorbis-0.dll | ||
rm lib/pygame/pygame.ico | ||
rm lib/pygame/libopus-0.dll | ||
rm lib/pygame/sdl2_mixer.dll | ||
rm lib/pygame/freesansbold.ttf | ||
rm lib/pygame/libvorbisfile-3.dll | ||
rm lib/pygame/libogg-0.dll | ||
rm lib/pygame/libopusfile-0.dll | ||
rm lib/pygame/portmidi.dll | ||
rm lib/pygame/pygame.ico | ||
rm lib/pygame/pygame_icon.icns | ||
rm lib/pygame/pygame_icon.svg | ||
rm lib/pygame/pygame_icon.bmp | ||
rm lib/pygame/pygame_icon.tiff | ||
rm lib/pygame/freesansbold.ttf | ||
rm lib/pygame/sprite.pyc | ||
rm lib/pygame/_camera*.pyc | ||
rm lib/pygame/_dummy*.pyc | ||
rm lib/pygame/_numpy*.pyc | ||
rm lib/pygame/_sprite.*.pyd | ||
rm lib/pygame/_freetype.*.pyd | ||
rm lib/pygame/*.pyi | ||
|
||
rm cleanup.bat | ||
rm cleanup.sh | ||
rm cleanup.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters