| 
									
										
										
										
											2017-11-11 09:38:41 -08:00
										 |  |  | #!/bin/bash
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-11-24 08:14:17 -08:00
										 |  |  | set -x | 
					
						
							|  |  |  | set -e | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-11-11 09:38:41 -08:00
										 |  |  | # this gets executed by Travis when building an installer for Windows | 
					
						
							|  |  |  | # it gets started from inside the subsurface directory | 
					
						
							| 
									
										
										
										
											2019-12-09 21:54:37 +01:00
										 |  |  | # with all the other projects downloaded and installed in parallel to | 
					
						
							| 
									
										
										
										
											2017-11-11 09:38:41 -08:00
										 |  |  | # subsurface; in order to be compatible with the assumed layout, we | 
					
						
							|  |  |  | # need to create the secondary build directory | 
					
						
							|  |  |  | cd ${TRAVIS_BUILD_DIR}/.. | 
					
						
							|  |  |  | mkdir win32 | 
					
						
							|  |  |  | ls -l | 
					
						
							|  |  |  | cd win32 | 
					
						
							| 
									
										
										
										
											2018-10-07 11:55:38 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-14 17:03:08 +08:00
										 |  |  | # make sure we use the pre-installed version of MXE | 
					
						
							|  |  |  | export MXEBUILDTYPE=i686-w64-mingw32.shared | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-10-07 11:55:38 -07:00
										 |  |  | # the MXE build used in this VM doesn't support FTDI | 
					
						
							|  |  |  | bash -ex ${TRAVIS_BUILD_DIR}/packaging/windows/mxe-based-build.sh -noftdi installer | 
					
						
							| 
									
										
										
										
											2018-02-15 21:45:58 +01:00
										 |  |  | bash -ex ${TRAVIS_BUILD_DIR}/packaging/windows/smtk2ssrf-mxe-build.sh -i |