diff options
author | wurstsalat <mailtrash@posteo.de> | 2022-09-26 11:13:10 +0300 |
---|---|---|
committer | wurstsalat <mailtrash@posteo.de> | 2022-09-26 11:26:31 +0300 |
commit | b418a1a8d629b9e58882a1585be8d4e56ee957c7 (patch) | |
tree | 6f5ad01e6e6003d99765eac61400bd2cc4186aaa /win | |
parent | 2a22d65d1dec4db6967187a1a2d41888a683f744 (diff) |
ci: Windows: Remove unnecessary files from installer
This saves ~175 MB of disk space and reduces installer size by 42 MB
Fixes #11166
Diffstat (limited to 'win')
-rw-r--r-- | win/README.md | 9 | ||||
-rw-r--r-- | win/_base.sh | 13 |
2 files changed, 11 insertions, 11 deletions
diff --git a/win/README.md b/win/README.md index 66d7b527d..e67142c86 100644 --- a/win/README.md +++ b/win/README.md @@ -1,13 +1,12 @@ # Windows Installer -We use [msys2](https://www.msys2.org/) for creating the Windows installer -and development on Windows. +We use [msys2](https://www.msys2.org/) for creating the Windows installer and development on Windows. Please note that Windows 7 support has been dropped. ## Development -Download [msys2](https://www.msys2.org/) (msys2-x86_64-xxx.exe) and follow the install instructions on the [msys2](https://www.msys2.org/) startpage (**Important!**) +Download [msys2](https://www.msys2.org/) (`msys2-x86_64-xxx.exe`) and follow the install instructions on the [msys2](https://www.msys2.org/) startpage (**Important!**) * Fork the master branch on dev.gajim.org * Execute `C:\msys64\msys2_shell.cmd -mingw64` @@ -21,6 +20,7 @@ Download [msys2](https://www.msys2.org/) (msys2-x86_64-xxx.exe) and follow the i ### GtkInspector For Gtk Inspector to work, add the following registry key + ``` HKEY_CURRENT_USER\Software\GSettings\org\gtk\settings\debug DWORD enable-inspector-keybinding = 1 @@ -32,5 +32,4 @@ Afterwards press CTRL + SHIFT + I, to activate GtkInspector Follow the steps in the Development section, but instead of `./dev_env.sh` execute `./build.sh i686` or `./build.sh x86_64`. -Both the installer and the portable installer should appear in ``C:\msys64\home\USER\gajim\win\_build_root``. - +Both the installer and the portable installer should appear in `C:\msys64\home\USER\gajim\win\_build_root`. diff --git a/win/_base.sh b/win/_base.sh index ef7d7dc5c..efa1e7d0d 100644 --- a/win/_base.sh +++ b/win/_base.sh @@ -224,6 +224,7 @@ function cleanup_install { rm -Rf "${MINGW_ROOT}"/share/fontconfig rm -Rf "${MINGW_ROOT}"/share/gettext-* rm -Rf "${MINGW_ROOT}"/share/terminfo + rm -Rf "${MINGW_ROOT}"/share/bullet rm -Rf "${MINGW_ROOT}"/share/OGRE rm -Rf "${MINGW_ROOT}"/share/opencv4 @@ -231,6 +232,7 @@ function cleanup_install { -name "*.compiled" -exec rm -f {} \; rm -Rf "${MINGW_ROOT}"/lib/"${PYTHON_ID}".*/test + rm -Rf "${MINGW_ROOT}"/lib/"${PYTHON_ID}"/dist-packages/Ogre rm -Rf "${MINGW_ROOT}"/lib/cmake rm -Rf "${MINGW_ROOT}"/lib/gettext rm -Rf "${MINGW_ROOT}"/lib/gtk-3.0 @@ -257,12 +259,11 @@ function cleanup_install { rm -f "${MINGW_ROOT}"/lib/gstreamer-1.0/libgstschro.dll rm -f "${MINGW_ROOT}"/lib/gstreamer-1.0/libgstcacasink.dll + rm -f "${MINGW_ROOT}"/bin/libBulletCollision.dll + rm -f "${MINGW_ROOT}"/bin/libBulletDynamics.dll rm -f "${MINGW_ROOT}"/bin/libharfbuzz-icu-0.dll - rm -f "${MINGW_ROOT}"/bin/libopencv_wechat_qrcode455.dll - rm -f "${MINGW_ROOT}"/bin/OgreMain.dll - rm -f "${MINGW_ROOT}"/bin/OgreOverlay.dll - rm -f "${MINGW_ROOT}"/bin/OgreRTShaderSystem.dll - rm -f "${MINGW_ROOT}"/bin/OgreBites.dll + rm -f "${MINGW_ROOT}"/bin/libopencv_* + rm -f "${MINGW_ROOT}"/bin/Ogre* rm -f "${MINGW_ROOT}"/bin/xvidcore.dll rm -f "${MINGW_ROOT}"/lib/"${PYTHON_ID}".*/lib-dynload/_tkinter* @@ -320,5 +321,5 @@ function cleanup_install { function build_installer { (cd "$BUILD_ROOT" && makensis -NOCD -DVERSION="$QL_VERSION_DESC" -DARCH="${MINGW}" "${MISC}"/gajim.nsi) - (cd "$BUILD_ROOT" && makensis -NOCD -DVERSION="$QL_VERSION_DESC" -DARCH="${MINGW}" "${MISC}"/gajim-portable.nsi) + #(cd "$BUILD_ROOT" && makensis -NOCD -DVERSION="$QL_VERSION_DESC" -DARCH="${MINGW}" "${MISC}"/gajim-portable.nsi) } |