Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build Notepad Next

on:
workflow_dispatch:
push:
branches:
- master
Expand Down Expand Up @@ -48,6 +49,14 @@ jobs:
if: runner.os == 'Linux'
run: |
echo "DISTRIBUTION=AppImage" >> "$GITHUB_ENV"

# Qt 6.10+ renamed wayland plugins
if [[ "${{ matrix.qt_version }}" == "6.10" ]]; then
echo "EXTRA_PLATFORM_PLUGINS=libqwayland.so" >> "$GITHUB_ENV"
else
echo "EXTRA_PLATFORM_PLUGINS=libqwayland-generic.so" >> "$GITHUB_ENV"
fi

sudo apt-get install libxkbcommon-dev libxkbcommon-x11-0 fuse libxcb-cursor-dev libcups2-dev

- name: Configure
Expand Down Expand Up @@ -102,7 +111,6 @@ jobs:
needs: [build]

if: github.repository == 'dail8859/NotepadNext' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ target_wrapper.*

# QtCtreator CMake
CMakeLists.txt.user*
CMakeCache.
cmake_install.cmake
Makefile
__cmake_systeminformation

*.pyc

Expand All @@ -61,3 +65,9 @@ CMakeLists.txt.user*
._*

.cpm-cache/

# ninja
.ninja_deps
.ninja_lock
.ninja_log
build.ninja
38 changes: 37 additions & 1 deletion doc/Building.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,44 @@ This section specifically describes how to build Notepad Next using Microsoft's
1. Qt Creator will build and run the project.

# Linux
Here's instructions for ubuntu/debian. Should be same across all distros as long as you get the packages.

TODO
```sh
export DISTRIBUTION=AppImage
export EXTRA_PLATFORM_PLUGINS="libqwayland-generic.so"

sudo apt update
sudo apt install -y \
cmake \
ninja-build \
file \
libxkbcommon-dev \
libxkbcommon-x11-0 \
fuse \
libxcb-cursor-dev \
libcups2-dev \
libglib2.0-0 \
libglib2.0-dev \
libproxy1v5 \
libproxy-dev \
qt6-base-dev \
qt6-base-dev-tools \
qt6-tools-dev \
qt6-tools-dev-tools \
qt6-wayland \
qt6-wayland-dev \
libqt6waylandclient6 \
qml6-module-qtwayland-compositor \
libqt6core5compat6 \
libqt6core5compat6-dev \
qt6-base-private-dev

cmake -S . -B build \
-G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DAPP_DISTRIBUTION=$DISTRIBUTION
cmake --build build --target appimage --parallel
```

# MacOS

Expand Down