@@ -16,28 +16,37 @@ jobs:
1616 build_docker :
1717 strategy :
1818 matrix :
19- variant :
20- - PACKAGE : deb
21- image : ubuntu
22- lable : " :24.04"
23- os : ubuntu-24.04
24- - PACKAGE : deb
25- image : ubuntu
26- lable : " :24.04"
27- os : ubuntu-24.04-arm
28- - PACKAGE : rpm
29- image : fedora
30- lable : " :41"
31- os : ubuntu-24.04
32- - PACKAGE : rpm
33- image : fedora
34- lable : " :41"
35- os : ubuntu-24.04-arm
19+ - PACKAGE : deb
20+ image : ubuntu
21+ lable : " :25.04"
22+ os : ubuntu-24.04
23+ - PACKAGE : deb
24+ image : ubuntu
25+ lable : " :25.04"
26+ os : ubuntu-24.04-arm
27+
28+ - PACKAGE : appimage
29+ image : ubuntu
30+ lable : " :25.04"
31+ os : ubuntu-24.04
32+ - PACKAGE : appimage
33+ image : ubuntu
34+ lable : " :25.04"
35+ os : ubuntu-24.04-arm
36+
37+ - PACKAGE : rpm
38+ image : fedora
39+ lable : " :41"
40+ os : ubuntu-24.04
41+ - PACKAGE : rpm
42+ image : fedora
43+ lable : " :41"
44+ os : ubuntu-24.04-arm
3645
3746 # See: [About GitHub-hosted runners](https://docs.github.com/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners)
3847 # See: [Choosing the runner for a job](https://docs.github.com/actions/writing-workflows/choosing-where-your-workflow-runs/choosing-the-runner-for-a-job)
3948 # See: https://github.com/actions/runner-images/
40- runs-on : ${{matrix.variant. os}}
49+ runs-on : ${{matrix.os}}
4150
4251 env :
4352 RabbitRemoteControl_VERSION : 0.0.36
@@ -55,11 +64,47 @@ jobs:
5564 fetch-depth : 0
5665 - name : run docker
5766 run : |
58- ./Script/build_linux.sh --docker --docker-image="${{matrix.variant.image}}${{matrix.variant.lable}}" --${{matrix.variant.PACKAGE}}
67+ ./Script/build_linux.sh --docker --docker-image="${{matrix.image}}${{matrix.lable}}" --${{matrix.PACKAGE}}
68+
69+ - name : AppIagme update configure file
70+ if : ${{ matrix.PACKAGE == 'appimage' }}
71+ # continue-on-error: true
72+ run : |
73+ sudo Xvfb :91.0 -ac -screen 0 1200x900x24 &
74+ sleep 1
75+ export DISPLAY=:91.0
76+ echo "Update update_linux.json ......"
77+ export QT_XCB_GL_INTEGRATION=none
78+ #export QT_DEBUG_PLUGINS=1
79+ ARCH=`uname -m`
80+ cp ${{github.workspace}}/build_linux/RabbitRemoteControl_${ARCH}.AppImage RabbitRemoteControl_${{env.RabbitRemoteControl_VERSION}}_Linux_${ARCH}.AppImage
81+ mkdir -p RabbitRemoteControl_${{env.RabbitRemoteControl_VERSION}}_Linux_${ARCH}_Setup
82+ pushd RabbitRemoteControl_${{env.RabbitRemoteControl_VERSION}}_Linux_${ARCH}_Setup
83+ cp ${{github.workspace}}/RabbitRemoteControl_${ARCH}.AppImage RabbitRemoteControl_${{env.RabbitRemoteControl_VERSION}}_Linux_${ARCH}.AppImage
84+ chmod a+x RabbitRemoteControl_${{env.RabbitRemoteControl_VERSION}}_Linux_${ARCH}.AppImage
85+ cp ${{github.workspace}}/build_appimage/AppDir/usr/share/applications/io.github.KangLin.RabbitRemoteControl.desktop io.github.KangLin.RabbitRemoteControl.desktop
86+ cp ${{github.workspace}}/build_appimage/AppDir/usr/share/icons/hicolor/scalable/apps/io.github.KangLin.RabbitRemoteControl.svg io.github.KangLin.RabbitRemoteControl.svg
87+ cp ${{github.workspace}}/Script/install.sh install.sh
88+ chmod a+x install.sh
89+ popd
90+ zip RabbitRemoteControl_${{env.RabbitRemoteControl_VERSION}}_Linux_${ARCH}_Setup.zip RabbitRemoteControl_${{env.RabbitRemoteControl_VERSION}}_Linux_${ARCH}_Setup/*
91+ md5sum RabbitRemoteControl_${{env.RabbitRemoteControl_VERSION}}_Linux_${ARCH}.AppImage > RabbitRemoteControl_${{env.RabbitRemoteControl_VERSION}}_Linux_${ARCH}.AppImage.md5sum
92+ MD5SUM=`cat RabbitRemoteControl_${{env.RabbitRemoteControl_VERSION}}_Linux_${ARCH}.AppImage.md5sum|awk '{print $1}'`
93+ echo "MD5SUM RabbitRemoteControl_${{env.RabbitRemoteControl_VERSION}}_Linux_${ARCH}.AppImage: ${MD5SUM}"
94+ echo "Generate update configure file ......"
95+ ./RabbitRemoteControl_${{env.RabbitRemoteControl_VERSION}}_Linux_${ARCH}.AppImage \
96+ -f "${{github.workspace}}/update_appimage_${{matrix.os}}_qt${{matrix.qt_version}}.json" \
97+ --foc 1 \
98+ --file-name RabbitRemoteControl_${{env.RabbitRemoteControl_VERSION}}_Linux_${ARCH}.AppImage \
99+ -u "https://github.com/KangLin/RabbitRemoteControl/releases/download/v${{env.RabbitRemoteControl_VERSION}}/RabbitRemoteControl_${{env.RabbitRemoteControl_VERSION}}_Linux_${ARCH}.AppImage;https://master.dl.sourceforge.net/project/rabbitremotecontrol/v${{env.RabbitRemoteControl_VERSION}}/RabbitRemoteControl_${{env.RabbitRemoteControl_VERSION}}_Linux_${ARCH}.AppImage?viasf=1" \
100+ --md5 "${MD5SUM}"
101+
59102 - name : Update artifact
60- if : ${{matrix.variant. PACKAGE == 'rpm '}}
103+ # if: ${{matrix.PACKAGE != 'deb '}}
61104 uses : actions/upload-artifact@v4
62105 with :
63- name : ${{ env.artifact_name }}_${{matrix.variant. PACKAGE}}_${{matrix.variant. image}}_${{matrix.variant .os}}
106+ name : ${{ env.artifact_name }}_${{matrix.PACKAGE}}_${{matrix.image}}_${{matrix.os}}
64107 path : |
65108 ${{github.workspace}}/build_linux/rabbitremotecontrol*.rpm
109+ ${{github.workspace}}/build_linux/rabbitremotecontrol_*.deb
110+ ${{github.workspace}}/RabbitRemoteControl_${{env.RabbitRemoteControl_VERSION}}_Linux_${ARCH}.AppImage
0 commit comments