mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 07:10:05 +00:00 
			
		
		
		
	Initial AppImage creation
This commit is contained in:
		
							parent
							
								
									b8e905d58b
								
							
						
					
					
						commit
						dd13110014
					
				
					 2 changed files with 46 additions and 3 deletions
				
			
		
							
								
								
									
										42
									
								
								.github/workflows/ci.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										42
									
								
								.github/workflows/ci.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -58,6 +58,7 @@ jobs: | |||
|     env: | ||||
|       CC: ${{ matrix.env_cc }} | ||||
|       CXX: ${{ matrix.env_cxx }} | ||||
|       SCWX_VERSION: v0.3.0 | ||||
|     runs-on: ${{ matrix.os }} | ||||
| 
 | ||||
|     steps: | ||||
|  | @ -151,9 +152,13 @@ jobs: | |||
|         cd lib/ | ||||
|         ln -s libssl.so.3 libssl.so | ||||
|         cd .. | ||||
|         mkdir -p plugins/sqldrivers/ | ||||
|         cd plugins/sqldrivers/ | ||||
|         cp "${RUNNER_WORKSPACE}/Qt/${{ matrix.qt_version }}/${{ matrix.qt_arch }}/plugins/sqldrivers/libqsqlite.so" . | ||||
|         mkdir -p plugins/ | ||||
|         cd plugins/ | ||||
|         mkdir -p platformthemes/ | ||||
|         mkdir -p sqldrivers/ | ||||
|         cp "${RUNNER_WORKSPACE}/Qt/${{ matrix.qt_version }}/${{ matrix.qt_arch }}/plugins/platformthemes/libqgtk3.so" platformthemes/ | ||||
|         cp "${RUNNER_WORKSPACE}/Qt/${{ matrix.qt_version }}/${{ matrix.qt_arch }}/plugins/sqldrivers/libqsqlite.so" sqldrivers/ | ||||
|         cd .. | ||||
|         popd | ||||
|         tar -czf supercell-wx-${{ matrix.artifact_suffix }}.tar.gz supercell-wx/ | ||||
| 
 | ||||
|  | @ -187,6 +192,37 @@ jobs: | |||
|           ${{ github.workspace }}/build/bin/*.debug | ||||
|           ${{ github.workspace }}/build/lib/*.debug | ||||
| 
 | ||||
|     - name: Build AppImage (Linux) | ||||
|       if: matrix.os == 'ubuntu-22.04' | ||||
|       env: | ||||
|         APPIMAGE_DIR: ${{ github.workspace }}/supercell-wx/ | ||||
|         LDAI_UPDATE_INFORMATION: gh-releases-zsync|dpaulat|supercell-wx|latest|*x86_64.AppImage.zsync | ||||
|         LDAI_OUTPUT: supercell-wx-${{ env.SCWX_VERSION }}-x86_64.AppImage | ||||
|         LINUXDEPLOY_OUTPUT_APP_NAME: supercell-wx | ||||
|         LINUXDEPLOY_OUTPUT_VERSION: ${{ env.SCWX_VERSION }} | ||||
|       shell: bash | ||||
|       run: | | ||||
|         wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage | ||||
|         chmod +x linuxdeploy-x86_64.AppImage | ||||
|         cp "${{ github.workspace }}/source/scwx-qt/res/icons/scwx-256.png" supercell-wx.png | ||||
|         cp "${{ github.workspace }}/source/scwx-qt/res/linux/supercell-wx.desktop" . | ||||
|         pushd "${{ env.APPIMAGE_DIR }}" | ||||
|         mkdir -p usr/ | ||||
|         mv bin/ usr/ | ||||
|         mv lib/ usr/ | ||||
|         mv plugins/ usr/ | ||||
|         popd | ||||
|         ./linuxdeploy-x86_64.AppImage --appdir ${{ env.APPIMAGE_DIR }} -i supercell-wx.png -d supercell-wx.desktop | ||||
|         ./linuxdeploy-x86_64.AppImage --appdir ${{ env.APPIMAGE_DIR }} --output appimage | ||||
|         rm -f linuxdeploy-x86_64.AppImage | ||||
| 
 | ||||
|     - name: Upload AppImage (Linux) | ||||
|       if: matrix.os == 'ubuntu-22.04' | ||||
|       uses: actions/upload-artifact@v4 | ||||
|       with: | ||||
|         name: supercell-wx-appimage-x64 | ||||
|         path: ${{ github.workspace }}/*-x86_64.AppImage* | ||||
| 
 | ||||
|     - name: Test Supercell Wx | ||||
|       working-directory: ${{ github.workspace }}/build | ||||
|       env: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat