Skip to content

Commit 0ec25c2

Browse files
committed
feat: implement AppImage auto-updater for Linux
1 parent a514416 commit 0ec25c2

8 files changed

Lines changed: 473 additions & 11 deletions

File tree

VERSION.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
# ------------------------------------
66
# Version information
77
# ------------------------------------
8-
set(MIRALL_VERSION_MAJOR 4)
9-
set(MIRALL_VERSION_MINOR 0)
10-
set(MIRALL_VERSION_PATCH 50)
8+
set(MIRALL_VERSION_MAJOR 3)
9+
set(MIRALL_VERSION_MINOR 14)
10+
set(MIRALL_VERSION_PATCH 0)
1111
set(MIRALL_VERSION_YEAR 2025)
1212
set(MIRALL_SOVERSION 0)
1313
set(MIRALL_PREVERSION_HUMAN "4.1.0 alpha") # For preversions where PATCH>=50. Use version + alpha, rc1, rc2, etc.

admin/linux/build-appimage.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ if [ -e "/opt/rh/gcc-toolset-11/enable" ]; then
2828
source /opt/rh/gcc-toolset-11/enable
2929
fi
3030

31+
rm -rf /app
3132
mkdir /app
3233

3334
# Build client
35+
rm -rf build-client
3436
mkdir build-client
3537
cd build-client
3638
cmake \

src/gui/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,13 @@ IF(BUILD_UPDATER)
285285
updater/updater.h
286286
updater/updater.cpp
287287
)
288+
# Linux AppImage updater
289+
if(UNIX AND NOT APPLE)
290+
list(APPEND updater_SRCS
291+
updater/appimageupdater.h
292+
updater/appimageupdater.cpp
293+
)
294+
endif()
288295
endif()
289296

290297
IF( APPLE )

0 commit comments

Comments
 (0)