Skip to content

Commit ec7d3ee

Browse files
committed
- Package: add flatpak manifests
- Package: rename Install.nsi to Windows.nsi - Debian: modify control - Vncserver: fix build error - Rename org.Rabbit.RemoteControl.desktop to io.github.KangLin.RabbitRemoteControl.desktop
1 parent 80d4828 commit ec7d3ee

28 files changed

+546
-76
lines changed

.github/workflows/android.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ jobs:
207207
# working-directory: ${{env.SOURCE_DIR}}
208208
# run: |
209209
# if [ ! -d ${{env.INSTALL_DIR}}/lib/cmake/FreeRDP2 ]; then
210-
# git clone -b 3.9.0 --depth=1 https://github.com/FreeRDP/FreeRDP.git
210+
# git clone -b 3.14.0 --depth=1 https://github.com/FreeRDP/FreeRDP.git
211211
# cd FreeRDP
212212
# git submodule update --init --recursive
213213
# cmake -E make_directory build

.github/workflows/appimage.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
key: install_appimage
6464

6565
- name: build appimage
66-
continue-on-error: true
66+
#continue-on-error: true
6767
run: |
6868
sudo ./Script/build_linux.sh --appimage --install ${{env.INSTALL_DIR}}
6969
mv RabbitRemoteControl_`uname -m`.AppImage RabbitRemoteControl_${{env.RabbitRemoteControl_VERSION}}_Linux_`uname -m`.AppImage
@@ -74,6 +74,7 @@ jobs:
7474
#continue-on-error: true
7575
run: |
7676
sudo Xvfb :91.0 -ac -screen 0 1200x900x24 &
77+
sleep 1
7778
export DISPLAY=:91.0
7879
echo "Update update_linux.json ......"
7980
export QT_XCB_GL_INTEGRATION=none

.github/workflows/flatpak.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Author: Kang Lin<kl222@126.com>
2+
name: flatpak
3+
4+
on:
5+
push:
6+
pull_request:
7+
8+
jobs:
9+
build_flatpak:
10+
11+
# See: [About GitHub-hosted runners](https://docs.github.com/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners)
12+
# 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)
13+
# See: https://github.com/actions/runner-images/
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout Repository
18+
uses: actions/checkout@v3
19+
with:
20+
submodules: recursive
21+
22+
- name: Flatpak build
23+
run: |
24+
sudo apt-get update -y -q
25+
sudo apt-get install -y -q flatpak flatpak-builder
26+
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
27+
sudo flatpak install -y org.kde.Sdk//6.8 org.kde.Platform//6.8
28+
flatpak-builder --user --force-clean --install build Package/io.github.KangLin.RabbitRemoteControl.json
29+

.github/workflows/linux.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
key: install_linux
6464

6565
- name: build linux
66-
continue-on-error: true
66+
#continue-on-error: true
6767
run: |
6868
sudo ./Script/build_linux.sh --${{matrix.PACKAGE}} --install ${{env.INSTALL_DIR}}
6969
@@ -110,6 +110,7 @@ jobs:
110110
#continue-on-error: true
111111
run: |
112112
sudo Xvfb :91.0 -ac -screen 0 1200x900x24 &
113+
sleep 1
113114
export DISPLAY=:91.0
114115
echo "Update update_linux.json ......"
115116
export QT_XCB_GL_INTEGRATION=none

.github/workflows/mingw.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ jobs:
223223
copy /Y C:\msys64\mingw64\bin\*.dll install\bin
224224
copy /Y ${{env.INSTALL_DIR}}\bin\*.dll install\bin
225225
copy /Y ${{env.INSTALL_DIR}}\lib\*.dll install\bin
226-
makensis ${{env.BUILD_DIR}}/Install.nsi
226+
makensis ${{env.BUILD_DIR}}/Windows.nsi
227227
md5sum RabbitRemoteControl_setup_${{env.RabbitRemoteControl_VERSION}}.exe > RabbitRemoteControl_setup_${{env.RabbitRemoteControl_VERSION}}.exe.md5
228228
229229
# - name: Update artifact

.github/workflows/msvc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ jobs:
390390
7z a RabbitRemoteControl_windows_${{env.RabbitRemoteControl_VERSION}}.zip .\install\*
391391
C:\msys64\usr\bin\wget https://npcap.com/dist/npcap-1.80.exe
392392
copy npcap-1.80.exe install\bin
393-
makensis Install.nsi
393+
makensis Windows.nsi
394394
copy /Y RabbitRemoteControl_Setup_${{env.RabbitRemoteControl_VERSION}}.exe RabbitRemoteControl_${{env.RabbitRemoteControl_VERSION}}_${{matrix.qt_arch}}_qt${{matrix.qt_version}}_Setup.exe
395395
396396
- name: Update configure file

App/Client/CMakeLists.txt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ if(WIN32)
112112
COMPONENT Application)
113113
endif()
114114
if(UNIX AND NOT ANDROID)
115-
set(APP_ICON_NAME org.Rabbit.RemoteControl)
116-
configure_file(${CMAKE_SOURCE_DIR}/share/applications/org.Rabbit.RemoteControl.desktop.in
117-
${CMAKE_BINARY_DIR}/org.Rabbit.RemoteControl.desktop)
118-
INSTALL(FILES ${CMAKE_BINARY_DIR}/org.Rabbit.RemoteControl.desktop
115+
set(APP_ID io.github.KangLin.RabbitRemoteControl)
116+
configure_file(${CMAKE_SOURCE_DIR}/share/applications/${APP_ID}.desktop.in
117+
${CMAKE_BINARY_DIR}/${APP_ID}.desktop)
118+
INSTALL(FILES ${CMAKE_BINARY_DIR}/${APP_ID}.desktop
119119
DESTINATION share/applications
120120
COMPONENT Application)
121121
INSTALL(PROGRAMS ${CMAKE_SOURCE_DIR}/share/applications/RabbitRemoteControl.sh
@@ -124,7 +124,11 @@ if(UNIX AND NOT ANDROID)
124124
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/Resource/icons/rabbit-green/svg/app.svg
125125
DESTINATION share/pixmaps
126126
COMPONENT Application
127-
RENAME ${APP_ICON_NAME}.svg)
127+
RENAME ${APP_ID}.svg)
128+
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/Resource/icons/rabbit-green/svg/app.svg
129+
DESTINATION share/icons/hicolor/200x200/apps
130+
COMPONENT Application
131+
RENAME ${APP_ID}.svg)
128132
endif()
129133

130134
# Install QIcon theme

App/Client/android/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<manifest
33
xmlns:android="http://schemas.android.com/apk/res/android"
4-
package="org.KangLinStudio.RabbitRemoteControl"
4+
package="io.github.KangLin.RabbitRemoteControl"
55
android:versionName="0.0.32"
66
android:versionCode="0"
77
android:installLocation="auto">

App/ServiceConfigure/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ ADD_TARGET(NAME ${PROJECT_NAME}
4949

5050
if(UNIX AND NOT ANDROID)
5151
# Install .desktop file
52-
set(APP_ICON_NAME org.Rabbit.RemoteControl.Service.Configure)
53-
configure_file(${CMAKE_SOURCE_DIR}/share/applications/org.Rabbit.RemoteControl.Service.Configure.desktop.in
54-
${CMAKE_BINARY_DIR}/org.Rabbit.RemoteControl.Service.Configure.desktop)
55-
INSTALL(FILES ${CMAKE_BINARY_DIR}/org.Rabbit.RemoteControl.Service.Configure.desktop
52+
set(APP_ICON_NAME io.github.KangLin.RabbitRemoteControl.Service.Configure)
53+
configure_file(${CMAKE_SOURCE_DIR}/share/applications/io.github.KangLin.RabbitRemoteControl.Service.Configure.desktop.in
54+
${CMAKE_BINARY_DIR}/io.github.KangLin.RabbitRemoteControl.Service.Configure.desktop)
55+
INSTALL(FILES ${CMAKE_BINARY_DIR}/io.github.KangLin.RabbitRemoteControl.Service.Configure.desktop
5656
DESTINATION share/applications
5757
COMPONENT Runtime)
5858
# Install icon of .desktop

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ if(BUILD_EXAMPLE)
163163
endif()
164164

165165
iF(WIN32)
166-
# 替换 Install.nsi 中的 CMAKE_INSTALL_PREFIX 等
167-
configure_file(${CMAKE_SOURCE_DIR}/Install/Install.nsi
168-
${CMAKE_BINARY_DIR}/Install.nsi @ONLY)
166+
# 替换 Windows.nsi 中的 CMAKE_INSTALL_PREFIX 等
167+
configure_file(${CMAKE_SOURCE_DIR}/Package/Windows.nsi
168+
${CMAKE_BINARY_DIR}/Windows.nsi @ONLY)
169169
endif()
170170

171171
option(BUILD_DOCS "Generating API documentation" OFF)

0 commit comments

Comments
 (0)