Merge pull request #2035 from hunbernd/fix/newmsys2version

Updated msys2 version
This commit is contained in:
defnax 2020-08-04 17:18:38 +02:00 committed by GitHub
commit b130ab2b0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 6 deletions

View File

@ -25,7 +25,7 @@ if exist "%EnvMSYS2Path%\msys%MSYS2Base%\usr\bin\pacman.exe" (
) )
) )
set MSYS2Install=msys2-base-%MSYS2Architecture%-20180531.tar.xz set MSYS2Install=msys2-base-%MSYS2Architecture%-20200720.tar.xz
set MSYS2Url=http://sourceforge.net/projects/msys2/files/Base/%MSYS2Architecture%/%MSYS2Install%/download set MSYS2Url=http://sourceforge.net/projects/msys2/files/Base/%MSYS2Architecture%/%MSYS2Install%/download
%cecho% info "Remove previous MSYS2 version" %cecho% info "Remove previous MSYS2 version"

View File

@ -7,6 +7,10 @@ This guide contains information about how to setup your build environment in an
If you prefer to setup your environment manually, check this guide: If you prefer to setup your environment manually, check this guide:
[WindowsMSys2_InstallGuide.md](WindowsMSys2_InstallGuide.md) [WindowsMSys2_InstallGuide.md](WindowsMSys2_InstallGuide.md)
Setting up the build environment automatically on a 32 bit OS is not possible anymore.
You can download an older 32 bit [MSYS2 installer](https://sourceforge.net/projects/msys2/files/Base/i686/msys2-base-i686-20180531.tar.xz/download) and follow the manual setup instructions.
Building 32 bit RetroShare from the 64 bit build environment is still possible.
You have to clone this repository (with [git for windows](https://gitforwindows.org/)) to a local folder, then start it in a terminal. You have to clone this repository (with [git for windows](https://gitforwindows.org/)) to a local folder, then start it in a terminal.
@ -16,7 +20,7 @@ Run the following script:
<sourcefolder>\build_scripts\Windows-msys2\build.bat <sourcefolder>\build_scripts\Windows-msys2\build.bat
It will install all neccessary tools to build RetrosShare, and build it with the default configuration. It will install all necessary tools to build RetrosShare, and build it with the default configuration.
After the script is finished, you can find the resulting .7z package here: After the script is finished, you can find the resulting .7z package here:
@ -24,7 +28,7 @@ After the script is finished, you can find the resulting .7z package here:
## Advanced building ## Advanced building
You can specifiy extra build options if you use the scripts under: You can specify extra build options if you use the scripts under:
<sourcefolder>\build_scripts\Windows-msys2\build\ <sourcefolder>\build_scripts\Windows-msys2\build\
@ -63,7 +67,7 @@ build-installer.bat 64 release autologin
``` ```
## Troubleshooting ## Troubleshooting
* Run the command again, sometimes it works the second time, specially if it complains about *restbed* during bulding * Run the command again, sometimes it works the second time, specially if it complains about *restbed* during building
* Delete the build artifacts: *&lt;sourcefolder&gt;-msys2\deploy\builds* * Delete the build artifacts: *&lt;sourcefolder&gt;-msys2\deploy\builds*
* Update msys2 manually: * Update msys2 manually:
1. Open the terminal: *&lt;sourcefolder&gt;-msys2\msys2\msys64\msys2.exe* 1. Open the terminal: *&lt;sourcefolder&gt;-msys2\msys2\msys64\msys2.exe*
@ -73,11 +77,15 @@ build-installer.bat 64 release autologin
5. Jump to 1. until it doesn't find more updates 5. Jump to 1. until it doesn't find more updates
* Start with a clean path environment variable, run *&lt;sourcefolder&gt;\build_scripts\Windows-msys2\start-clean-env.bat*, you will get a terminal with cleaned path * Start with a clean path environment variable, run *&lt;sourcefolder&gt;\build_scripts\Windows-msys2\start-clean-env.bat*, you will get a terminal with cleaned path
### Errors during MSYS2 update
MSYS2 developers recently introduced some breaking changes.
If you get PGP related errors during updating the system from pacman, then follow [their guide](https://www.msys2.org/news/#2020-06-29-new-packagers) to resolve the problems.
## Updating webui ## Updating webui
The sripts don't update the webui source code automatically once it is schecked out. The scripts don't update the webui source code automatically once it is checked out.
You have to do it manually with your favourite git client. You have to do it manually with your favourite git client.
You can find the webui sorce code here: You can find the webui source code here:
<sourcefolder>-webui <sourcefolder>-webui