Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howtos:win32:msys2 [2022/07/23 08:20] – Update Windows MSYS2 howto enrico | howtos:win32:msys2 [2024/09/12 18:15] (current) – Provides the /usr/share/gettext/archive.dir.tar.xz that autopoint wants dnabre | ||
---|---|---|---|
Line 34: | Line 34: | ||
pacman -S mingw-w64-x86_64-binutils mingw-w64-x86_64-gcc mingw-w64-x86_64-gdb | pacman -S mingw-w64-x86_64-binutils mingw-w64-x86_64-gcc mingw-w64-x86_64-gdb | ||
# make and Autotools | # make and Autotools | ||
- | pacman -S make mingw-w64-x86_64-libtool mingw-w64-x86_64-pkgconf autoconf automake gettext | + | pacman -S make mingw-w64-x86_64-libtool mingw-w64-x86_64-pkgconf autoconf automake gettext |
# gtk family | # gtk family | ||
pacman -S mingw-w64-x86_64-gtk3 | pacman -S mingw-w64-x86_64-gtk3 | ||
Line 44: | Line 44: | ||
pacman -S rsync | pacman -S rsync | ||
# for GTK bundle creation and release creation | # for GTK bundle creation and release creation | ||
- | pacman -S curl tar dos2unix zip unzip mingw-w64-x86_64-osslsigncode mingw-w64-x86_64-nsis | + | pacman -S curl tar dos2unix zip unzip mingw-w64-x86_64-osslsigncode mingw-w64-x86_64-nsis |
Make sure you have not installed both `gcc` and `mingw-w64-x86_64-gcc`, | Make sure you have not installed both `gcc` and `mingw-w64-x86_64-gcc`, | ||
Line 113: | Line 113: | ||
cd | cd | ||
- | mkdir -p ~/ | + | mkdir -p ~/ |
- | cd ~/ | + | cd ~/ |
bash ~/ | bash ~/ | ||
Line 126: | Line 126: | ||
cd | cd | ||
- | mkdir -p ~/ | + | mkdir -p ~/ |
- | cd ~/ | + | cd ~/ |
bash ~/ | bash ~/ | ||
Line 142: | Line 142: | ||
Build instructions to build Geany in order to create a Windows installer (within MSYS2 shell): | Build instructions to build Geany in order to create a Windows installer (within MSYS2 shell): | ||
- | DESTINATON=/ | + | DESTINATON=$HOME/geany_build |
VERSION=" | VERSION=" | ||
cd ~/ | cd ~/ | ||
Line 149: | Line 149: | ||
mkdir _build | mkdir _build | ||
cd _build | cd _build | ||
- | ../ | + | ../ |
make -j 2 | make -j 2 | ||
make install | make install | ||
- | | + | |
+ | rsync -a --delete | ||
You can use any other location as installation target by adjusting `DESTINATON`. | You can use any other location as installation target by adjusting `DESTINATON`. | ||
- | Then we compile Geany and install it normally | + | Then we compile Geany and install it normally. |
- | another location. | + | |
- | The normal installation is used for Geany-Plugins so they can easily find the Geany installation | + | |
- | while the DESTDIR installation is used to move the installed files into the source directory | + | |
- | back for the installer creation. | + | |
- | + | ||
- | This process can probably be optimized and shortened but for now it works this way. | + | |
The following actually creates the installer. | The following actually creates the installer. | ||
- | For the following steps, a little Python is necessary to automate the further installer creation. | + | For the following steps, a little Python |
The script can be downloaded here: {{: | The script can be downloaded here: {{: | ||
Open the script in your editor of choice and change paths at the beginning of the script as needed. | Open the script in your editor of choice and change paths at the beginning of the script as needed. | ||
Line 174: | Line 169: | ||
Finally, run the script: | Finally, run the script: | ||
- | cd / | ||
python3 ~/ | python3 ~/ | ||
This will strip and sign all binaries (geany.exe and various .dll files) and | This will strip and sign all binaries (geany.exe and various .dll files) and | ||
also convert documentation text files to CRLF format. | also convert documentation text files to CRLF format. | ||
- | At the end, you should get two installer | + | At the end, you should get an installer |
==== Geany-Plugins ==== | ==== Geany-Plugins ==== | ||
Line 185: | Line 179: | ||
Build instructions to build Geany-Plugins in order to create a Windows installer (within MSYS2 shell): | Build instructions to build Geany-Plugins in order to create a Windows installer (within MSYS2 shell): | ||
- | DESTINATON=/ | + | DESTINATON=$HOME/geany_build |
- | VERSION=" | + | VERSION=" |
cd ~/ | cd ~/ | ||
make distclean | make distclean | ||
Line 192: | Line 186: | ||
mkdir _build | mkdir _build | ||
cd _build | cd _build | ||
- | ../ | + | ../ |
make -j 2 | make -j 2 | ||
- | make DESTDIR=${DESTINATON}/ | + | make DESTDIR=${DESTINATON}/ |
+ | rsync -a --delete ${DESTINATON}/ | ||
- | For the following steps, a little Python is necessary to automate the further installer creation. | + | For the following steps, a little Python |
The script can be downloaded here: {{: | The script can be downloaded here: {{: | ||
Open the script in your editor of choice and change paths at the beginning of the script as needed. | Open the script in your editor of choice and change paths at the beginning of the script as needed. | ||
Line 205: | Line 200: | ||
Finally, run the script: | Finally, run the script: | ||
- | cd / | ||
python3 ~/ | python3 ~/ | ||
This will strip and sign all binaries (various .dll files) and | This will strip and sign all binaries (various .dll files) and | ||
also convert documentation text files to CRLF format. | also convert documentation text files to CRLF format. | ||
- | At the end, you should get an installer executable in `/release`. | + | At the end, you should get an installer executable in `$DESTINATON`. |
- | {{tag> | + | {{tag> |