Update CI pipeline for release
This commit is contained in:
		
							parent
							
								
									5010f57a33
								
							
						
					
					
						commit
						d89a4370a7
					
				@ -83,6 +83,9 @@ build windows i686:
 | 
				
			|||||||
    - git submodule init
 | 
					    - git submodule init
 | 
				
			||||||
    - git submodule update
 | 
					    - git submodule update
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # Print versions
 | 
				
			||||||
 | 
					    - /opt/mxe/usr/${TARGET_SPEC}/qt5/bin/qmake --version
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Extract BASS
 | 
					    # Extract BASS
 | 
				
			||||||
    - mkdir bass
 | 
					    - mkdir bass
 | 
				
			||||||
    - cd bass
 | 
					    - cd bass
 | 
				
			||||||
@ -94,6 +97,17 @@ build windows i686:
 | 
				
			|||||||
    - cp bassopus.dll ../lib
 | 
					    - cp bassopus.dll ../lib
 | 
				
			||||||
    - cd ..
 | 
					    - cd ..
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # Extract QtApng
 | 
				
			||||||
 | 
					    # - mkdir qtapng
 | 
				
			||||||
 | 
					    # - cd qtapng
 | 
				
			||||||
 | 
					    # - curl -L https://github.com/Skycoder42/QtApng/releases/download/1.1.2-2/qtapng_mingw73_32_5.13.0.zip -o apng.zip
 | 
				
			||||||
 | 
					    # - unzip apng.zip
 | 
				
			||||||
 | 
					    # - mkdir ../lib/imageformats
 | 
				
			||||||
 | 
					    # - cp mingw73_32/plugins/imageformats/qapng.dll ../lib/imageformats/
 | 
				
			||||||
 | 
					    # - cd ..
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    - ls lib
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Build
 | 
					    # Build
 | 
				
			||||||
    - /opt/mxe/usr/${TARGET_SPEC}/qt5/bin/qmake "DEFINES += DISCORD BASSAUDIO"
 | 
					    - /opt/mxe/usr/${TARGET_SPEC}/qt5/bin/qmake "DEFINES += DISCORD BASSAUDIO"
 | 
				
			||||||
    - make -j4
 | 
					    - make -j4
 | 
				
			||||||
@ -165,6 +179,8 @@ deploy windows i686:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    # Platform-specific
 | 
					    # Platform-specific
 | 
				
			||||||
    - cp -a ../lib/*.dll .
 | 
					    - cp -a ../lib/*.dll .
 | 
				
			||||||
 | 
					    - mkdir imageformats
 | 
				
			||||||
 | 
					    - 'cp -a ../lib/imageformats/*.dll imageformats/ || :'
 | 
				
			||||||
    - cp -a ../bin/Attorney_Online.exe .
 | 
					    - cp -a ../bin/Attorney_Online.exe .
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Zipping
 | 
					    # Zipping
 | 
				
			||||||
@ -197,11 +213,17 @@ publish linux x86_64:
 | 
				
			|||||||
    - deploy linux x86_64
 | 
					    - deploy linux x86_64
 | 
				
			||||||
  when: manual
 | 
					  when: manual
 | 
				
			||||||
  script:
 | 
					  script:
 | 
				
			||||||
 | 
					    - apt-get update
 | 
				
			||||||
 | 
					    - apt-get install --no-install-recommends -y git nodejs npm awscli
 | 
				
			||||||
 | 
					    - cd scripts
 | 
				
			||||||
 | 
					    - npm install
 | 
				
			||||||
 | 
					    - cd ..
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    - cd zip
 | 
					    - cd zip
 | 
				
			||||||
    - ../scripts/wasabi.sh
 | 
					    - ../scripts/wasabi_program.sh
 | 
				
			||||||
  variables:
 | 
					  variables:
 | 
				
			||||||
    MANIFEST: program_linux_x86_64.json
 | 
					    MANIFEST: program_linux_x86_64.json
 | 
				
			||||||
    ARTIFACT_SUFFIX: _linux_x64.tar.xz
 | 
					    ARTIFACT_SUFFIX: linux_x64.tar.xz
 | 
				
			||||||
 | 
					
 | 
				
			||||||
publish windows i686:
 | 
					publish windows i686:
 | 
				
			||||||
  image: ubuntu
 | 
					  image: ubuntu
 | 
				
			||||||
@ -210,8 +232,14 @@ publish windows i686:
 | 
				
			|||||||
    - deploy windows i686
 | 
					    - deploy windows i686
 | 
				
			||||||
  when: manual
 | 
					  when: manual
 | 
				
			||||||
  script:
 | 
					  script:
 | 
				
			||||||
 | 
					    - apt-get update
 | 
				
			||||||
 | 
					    - apt-get install --no-install-recommends -y git nodejs npm awscli
 | 
				
			||||||
 | 
					    - cd scripts
 | 
				
			||||||
 | 
					    - npm install
 | 
				
			||||||
 | 
					    - cd ..
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    - cd zip
 | 
					    - cd zip
 | 
				
			||||||
    - ../scripts/wasabi.sh
 | 
					    - ../scripts/wasabi_program.sh
 | 
				
			||||||
  variables:
 | 
					  variables:
 | 
				
			||||||
    MANIFEST: program_winnt_i386.json
 | 
					    MANIFEST: program_winnt_i386.json
 | 
				
			||||||
    ARTIFACT_SUFFIX: _windows_x86.zip
 | 
					    ARTIFACT_SUFFIX: windows_x86.zip
 | 
				
			||||||
 | 
				
			|||||||
@ -1,4 +1,4 @@
 | 
				
			|||||||
#!/bin/sh
 | 
					#!/bin/bash
 | 
				
			||||||
# Updates the specified program manifest to a new archive and version
 | 
					# Updates the specified program manifest to a new archive and version
 | 
				
			||||||
# and uploads the new archive and manifest to S3/Wasabi.
 | 
					# and uploads the new archive and manifest to S3/Wasabi.
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
 | 
				
			|||||||
@ -10,5 +10,12 @@ RUN /opt/mxe/usr/bin/${TARGET_SPEC}-cmake .. -DCMAKE_INSTALL_PREFIX=/opt/mxe/usr
 | 
				
			|||||||
RUN /opt/mxe/usr/bin/${TARGET_SPEC}-cmake --build . --config Release --target install
 | 
					RUN /opt/mxe/usr/bin/${TARGET_SPEC}-cmake --build . --config Release --target install
 | 
				
			||||||
WORKDIR ../..
 | 
					WORKDIR ../..
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# NOTE: Do not build QtApng statically! libpng contains a self-test entry point that
 | 
					# Build QtApng statically
 | 
				
			||||||
# takes precedence for some reason over the final build's entry point.
 | 
					RUN git clone https://github.com/Skycoder42/QtApng
 | 
				
			||||||
 | 
					WORKDIR QtApng
 | 
				
			||||||
 | 
					# libpng contains a self-test entry point that takes precedence for some reason
 | 
				
			||||||
 | 
					# over the final build's entry point.
 | 
				
			||||||
 | 
					RUN sed -i "s/^main(/libpng_main(/g" src/3rdparty/libpng/src/pngtest.c
 | 
				
			||||||
 | 
					RUN /opt/mxe/usr/${TARGET_SPEC}/qt5/bin/qmake
 | 
				
			||||||
 | 
					RUN make && make install
 | 
				
			||||||
 | 
					WORKDIR ..
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user