Move Ubuntu configure script to .gitlab-ci.yml
Sorry, Omni. I'll probably move everything back to shell scripts in the future.
This commit is contained in:
		
							parent
							
								
									830dba62a1
								
							
						
					
					
						commit
						3b718808b7
					
				@ -13,17 +13,45 @@ build linux x86_64:
 | 
			
		||||
    - docker
 | 
			
		||||
    - linux
 | 
			
		||||
  script:
 | 
			
		||||
    # Install dependencies
 | 
			
		||||
    - apt-get update
 | 
			
		||||
    - apt-get install --no-install-recommends -y qt5-default qtmultimedia5-dev clang make git sudo curl ca-certificates pkg-config upx unzip
 | 
			
		||||
    - >
 | 
			
		||||
      apt-get install --no-install-recommends -y qt5-default qtmultimedia5-dev
 | 
			
		||||
      clang make git sudo curl ca-certificates pkg-config upx unzip
 | 
			
		||||
 | 
			
		||||
    # Print versions
 | 
			
		||||
    - qmake --version
 | 
			
		||||
    - clang --version
 | 
			
		||||
 | 
			
		||||
    - cd scripts
 | 
			
		||||
    - ./configure_ubuntu.sh
 | 
			
		||||
    # Extract BASS
 | 
			
		||||
    - mkdir bass
 | 
			
		||||
    - cd bass
 | 
			
		||||
    - curl http://www.un4seen.com/files/bass24-linux.zip -o bass.zip
 | 
			
		||||
    - unzip bass.zip
 | 
			
		||||
    - cp x64/libbass.so ../lib
 | 
			
		||||
    - cd ..
 | 
			
		||||
 | 
			
		||||
    # Extract Discord RPC
 | 
			
		||||
    - mkdir discord-rpc
 | 
			
		||||
    - cd discord-rpc
 | 
			
		||||
    - curl -L https://github.com/discordapp/discord-rpc/releases/download/v3.4.0/discord-rpc-linux.zip -o discord_rpc_linux.zip
 | 
			
		||||
    - unzip discord_rpc_linux.zip
 | 
			
		||||
    - cp discord-rpc/linux-dynamic/lib/libdiscord-rpc.so ../lib
 | 
			
		||||
    - cd ..
 | 
			
		||||
 | 
			
		||||
    # Extract QtApng
 | 
			
		||||
    - mkdir qtapng
 | 
			
		||||
    - cd qtapng
 | 
			
		||||
    - curl -L https://github.com/Skycoder42/QtApng/releases/download/1.1.0-5/build_clang_64_5.12.0.tar.xz -o apng.tar.xz
 | 
			
		||||
    - tar -xvf apng.tar.xz
 | 
			
		||||
    - cp clang_64/plugins/imageformats/libqapng.so ../lib
 | 
			
		||||
    - cd ..
 | 
			
		||||
 | 
			
		||||
    # Build
 | 
			
		||||
    - qmake -spec linux-clang
 | 
			
		||||
    - make -j4
 | 
			
		||||
    
 | 
			
		||||
    # Post-processing
 | 
			
		||||
    - upx --lzma -9 --force bin/Attorney_Online
 | 
			
		||||
  artifacts:
 | 
			
		||||
    paths:
 | 
			
		||||
@ -61,7 +89,7 @@ build windows i686:
 | 
			
		||||
    cp -a ../base/themes/default base/themes/
 | 
			
		||||
    cp -a ../base/config.ini base/config.sample.ini
 | 
			
		||||
    cp -a ../base/serverlist.txt base/serverlist.sample.txt
 | 
			
		||||
  
 | 
			
		||||
 | 
			
		||||
# Miscellaneous files
 | 
			
		||||
.deploy_misc: &deploy_misc |
 | 
			
		||||
    cp -a ../README.md README.md.txt
 | 
			
		||||
@ -84,7 +112,7 @@ deploy linux:
 | 
			
		||||
    - cp -a ../lib/*.so .
 | 
			
		||||
    - cp -a ../bin/Attorney_Online .
 | 
			
		||||
    - echo "#!/bin/sh" >> ./run.sh
 | 
			
		||||
    - echo "LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ./Attorney_Online" >> ./run.sh
 | 
			
		||||
    - echo "LD_LIBRARY_PATH=.:\$LD_LIBRARY_PATH ./Attorney_Online" >> ./run.sh
 | 
			
		||||
    - chmod +x ./run.sh
 | 
			
		||||
 | 
			
		||||
    # Zipping
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user