Skip to content

Commit 5a97b35

Browse files
committed
Merge branch 'main' into helium
2 parents 131ed41 + 50f42d6 commit 5a97b35

File tree

205 files changed

+1573
-728
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

205 files changed

+1573
-728
lines changed

.devcontainer/devcontainer.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"image": "ghcr.io/lingmoos/lingmo-dev-container:latest",
3+
"remoteUser": "codespace",
4+
"containerUser": "codespace",
5+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
6+
"forwardPorts": [8080],
7+
"portsAttributes": {
8+
"8080": {
9+
"label": "desktop"
10+
}
11+
},
12+
"containerEnv": {
13+
"DISPLAY_WIDTH": "1024",
14+
"DISPLAY_HEIGHT": "768"
15+
},
16+
"postStartCommand": "sudo apt install -y clangd",
17+
// Configure tool-specific properties.
18+
"customizations": {
19+
// Configure properties specific to VS Code.
20+
"vscode": {
21+
// Set *default* container specific settings.json values on container create.
22+
"settings": {
23+
"jupyter.kernels.filter": [
24+
{
25+
"path": "/opt/conda/bin/python",
26+
"type": "pythonEnvironment"
27+
},
28+
{
29+
"path": "/usr/local/python/current/bin/python3",
30+
"type": "pythonEnvironment"
31+
},
32+
{
33+
"path": "/usr/local/python/current/bin/python",
34+
"type": "pythonEnvironment"
35+
},
36+
{
37+
"path": "/usr/bin/python3",
38+
"type": "pythonEnvironment"
39+
},
40+
{
41+
"path": "/bin/python3",
42+
"type": "pythonEnvironment"
43+
}
44+
],
45+
"lldb.executable": "/usr/bin/lldb"
46+
},
47+
// Add the IDs of extensions you want installed when the container is created.
48+
"extensions": [
49+
"GitHub.vscode-pull-request-github",
50+
"ms-vscode.cpptools-extension-pack",
51+
"llvm-vs-code-extensions.vscode-clangd",
52+
"aminer.codegeex"
53+
]
54+
}
55+
}
56+
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Push to CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
debian:
11+
name: Debian 13 Trixie
12+
runs-on: ubuntu-latest
13+
container: docker.io/library/debian:trixie
14+
steps:
15+
- name: Install Dependencies
16+
run: |
17+
apt-get update
18+
apt-get install -y sudo git
19+
20+
- name: Checkout Source
21+
uses: actions/checkout@v3
22+
23+
- name: Init Git Repo
24+
run: |
25+
git config --global --add safe.directory $(realpath .)
26+
27+
28+
- name: Build Debian Src Package
29+
uses: LingmoOS/action-package-deb@0.0.5
30+
with:
31+
add-suffix: true
32+
build-binary: false
33+
build-source: true
34+
output-dir: ./debian-deb-output
35+
source-dir: ./
36+
37+
- uses: actions/upload-artifact@v4
38+
with:
39+
name: Source DEB Artifacts
40+
path: debian-deb-output
41+
compression-level: 9 # maximum compression
42+
43+
- name: Upload to OBS
44+
if: ${{ !(github.event_name == 'pull_request') }}
45+
uses: LingmoOS/action-upload-to-obs@0.0.4
46+
with:
47+
remove-old-sources: true
48+
obs-package-name: 'lingmo-core'
49+
obs-project-name: 'home:elysia:LingmoOS:CI'
50+
obs-user-name: ${{ secrets.OBS_CI_USERNAME }}
51+
obs-password: ${{ secrets.OBS_CI_TOKEN }}
52+
obs-instance-url: 'https://api.opensuse.org'
53+
local-package-dir: './debian-deb-output'

.github/workflows/build.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,22 @@ on:
77
branches: [ main ]
88

99
jobs:
10-
ubuntu:
11-
name: Ubuntu
10+
debian:
11+
name: Debian Trixie
1212
runs-on: ubuntu-latest
13+
container: docker.io/library/debian:trixie
1314
steps:
1415
- name: Checkout Source
15-
uses: actions/checkout@v2
16+
uses: actions/checkout@v4
17+
1618
- name: Update repository
17-
run: sudo apt-get update -y
19+
run: apt-get update -y
20+
1821
- name: Install the basic dev packages
19-
run: sudo apt-get install -y equivs curl git devscripts lintian build-essential automake autotools-dev cmake g++
22+
run: apt-get install -y equivs curl git devscripts lintian build-essential automake autotools-dev cmake g++
23+
2024
- name: Install build dependencies
21-
run: sudo mk-build-deps -i -t "apt-get --yes" -r
25+
run: mk-build-deps -i -t "apt-get --yes" -r
26+
2227
- name: Build Package
23-
run: sudo dpkg-buildpackage -b -uc -us -j$(nproc)
28+
run: dpkg-buildpackage -b -uc -us -j$(nproc)

CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ set(CMAKE_AUTORCC ON)
1010
set(CMAKE_CXX_STANDARD 17)
1111
set(CMAKE_CXX_STANDARD_REQUIRED ON)
1212

13+
# add_compile_options(-Wall)
14+
# add_compile_definitions(QT_DISABLE_DEPRECATED_BEFORE=0x050F00)
15+
1316
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/)
1417

15-
set(QT Core Gui Widgets Quick QuickControls2 DBus Xml X11Extras LinguistTools)
16-
find_package(Qt5 REQUIRED ${QT})
18+
set(QT Core Gui Widgets Quick QuickControls2 DBus Xml LinguistTools)
19+
find_package(Qt6 REQUIRED ${QT})
20+
1721
# find_package(LingmoUI REQUIRED)
1822
find_package(PkgConfig REQUIRED)
1923

Desktop/Lingmo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Desktop Config
2-
Version=2.0.0
2+
Version=3.0.0

PKGBUILD

Lines changed: 0 additions & 20 deletions
This file was deleted.

chotkeys/CMakeLists.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
find_package(ECM REQUIRED NO_MODULE)
22
list(APPEND CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
33

4-
find_package(Qt5 COMPONENTS Core Widgets DBus X11Extras REQUIRED)
54
find_package(XCB MODULE REQUIRED COMPONENTS XCB KEYSYMS)
65
find_package(X11)
76

@@ -19,10 +18,10 @@ add_executable(lingmo-chotkeys
1918

2019
target_link_libraries(lingmo-chotkeys
2120
PRIVATE
22-
Qt5::Core
23-
Qt5::Widgets
24-
Qt5::DBus
25-
Qt5::X11Extras
21+
Qt6::Core
22+
Qt6::Widgets
23+
Qt6::DBus
24+
Qt6::GuiPrivate
2625
${XCB_LIBS}
2726
${X11_LIBRARIES}
2827
XCB::KEYSYMS

chotkeys/hotkeys.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include <QApplication>
44
#include <QKeySequence>
5-
#include <QX11Info>
5+
#include <QtGui/private/qtx11extras_p.h>
66
#include <QTimer>
77
#include <QDebug>
88

@@ -27,7 +27,7 @@ Hotkeys::~Hotkeys()
2727
qApp->removeNativeEventFilter(this);
2828
}
2929

30-
bool Hotkeys::nativeEventFilter(const QByteArray &eventType, void *message, long *result)
30+
bool Hotkeys::nativeEventFilter(const QByteArray &eventType, void *message, qintptr *result)
3131
{
3232
Q_UNUSED(result);
3333

chotkeys/hotkeys.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Hotkeys : public QObject, public QAbstractNativeEventFilter
1818
explicit Hotkeys(QObject *parent = nullptr);
1919
~Hotkeys();
2020

21-
bool nativeEventFilter(const QByteArray &eventType, void *message, long *result) override;
21+
bool nativeEventFilter(const QByteArray &eventType, void *message, qintptr *result) override;
2222

2323
void registerKey(QKeySequence keySequence);
2424
void registerKey(quint32 keycode);

clipboard/CMakeLists.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,17 @@ set(CMAKE_AUTOUIC ON)
88
set(CMAKE_AUTOMOC ON)
99
set(CMAKE_AUTORCC ON)
1010

11-
set(CMAKE_CXX_STANDARD 11)
11+
set(CMAKE_CXX_STANDARD 17)
1212
set(CMAKE_CXX_STANDARD_REQUIRED ON)
1313

14-
find_package(Qt5 COMPONENTS Core Gui Widgets REQUIRED)
15-
1614
add_executable(lingmo-clipboard
1715
main.cpp
1816
clipboard.cpp
1917
)
2018
target_link_libraries(lingmo-clipboard
21-
Qt5::Core
22-
Qt5::Gui
23-
Qt5::Widgets
19+
Qt6::Core
20+
Qt6::Gui
21+
Qt6::Widgets
2422
)
2523

2624
install(TARGETS lingmo-clipboard DESTINATION ${CMAKE_INSTALL_BINDIR})

0 commit comments

Comments
 (0)