Skip to content

Commit 72661f5

Browse files
authored
Flatpak support (#404)
* Initial flatpak * Check WAYLAND_DISPLAY also * GitHub action to build flatpak * Update GitHub action to upload without .zip * Trigger CI
1 parent 1ac43a1 commit 72661f5

12 files changed

Lines changed: 181 additions & 1 deletion

.github/workflows/build.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,29 @@ jobs:
109109
with:
110110
name: nedit-ng-macos-intel-qt${{matrix.QT_VERSION}}
111111
path: nedit-ng-macos-intel-qt${{matrix.QT_VERSION}}/
112+
113+
build_flatpak:
114+
runs-on: ubuntu-24.04
115+
container:
116+
image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.7
117+
options: --privileged
118+
steps:
119+
- name: Checkout
120+
uses: actions/checkout@v4
121+
with:
122+
submodules: true
123+
124+
- name: Build flatpak
125+
uses: flathub-infra/flatpak-github-actions/flatpak-builder@master
126+
with:
127+
bundle: io.github.eteran.nedit_ng.flatpak
128+
manifest-path: flatpak/io.github.eteran.nedit_ng.yml
129+
cache-key: flatpak-builder-${{ github.sha }}
130+
upload-artifact: false
131+
132+
- name: Upload flatpak bundle
133+
uses: actions/upload-artifact@v7
134+
with:
135+
name: io.github.eteran.nedit_ng
136+
path: io.github.eteran.nedit_ng.flatpak
137+
archive: false

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
*.code-workspace
2+
.flatpak-builder

flatpak/icons/128x128.png

2.83 KB
Loading

flatpak/icons/16x16.png

569 Bytes
Loading

flatpak/icons/256x256.png

3.62 KB
Loading

flatpak/icons/32x32.png

1.06 KB
Loading

flatpak/icons/48x48.png

1.59 KB
Loading

flatpak/icons/64x64.png

1.95 KB
Loading
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[Desktop Entry]
2+
Type=Application
3+
Name=NEdit-ng
4+
GenericName=Text Editor
5+
Comment=A Qt port of the Nirvana Editor (NEdit)
6+
Exec=nedit-ng %U
7+
Icon=io.github.eteran.nedit_ng
8+
Terminal=false
9+
Categories=Qt;Utility;TextEditor;Development;
10+
MimeType=text/plain;text/x-c;text/x-c++;text/x-python;text/x-shellscript;text/x-makefile;application/x-shellscript;
11+
StartupNotify=true
12+
StartupWMClass=nedit-ng
13+
Keywords=NEdit;Nirvana;Editor;Text;
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<component type="desktop-application">
3+
<id>io.github.eteran.nedit_ng</id>
4+
5+
<name>NEdit-ng</name>
6+
<summary>Qt port of the Nirvana Editor</summary>
7+
8+
<metadata_license>CC0-1.0</metadata_license>
9+
<project_license>GPL-2.0-or-later</project_license>
10+
11+
<developer id="io.github.eteran">
12+
<name>Evan Teran</name>
13+
</developer>
14+
15+
<description>
16+
<p>
17+
NEdit-ng is a Qt port of the Nirvana Editor (NEdit) version 5.6. It is
18+
intended to be a drop-in replacement for nedit, preserving the original
19+
look, feel, and macro language while modernizing the codebase on top of
20+
Qt.
21+
</p>
22+
<p>Features include:</p>
23+
<ul>
24+
<li>Syntax highlighting for many languages</li>
25+
<li>Tabbed multi-document editing</li>
26+
<li>Regular expression search and replace</li>
27+
<li>Macro language for extending and automating the editor</li>
28+
<li>Rectangular block selection and editing</li>
29+
<li>Shell command integration and configurable user menus</li>
30+
<li>Ctags-based tag lookup</li>
31+
</ul>
32+
</description>
33+
34+
<launchable type="desktop-id">io.github.eteran.nedit_ng.desktop</launchable>
35+
36+
<url type="homepage">https://github.com/eteran/nedit-ng</url>
37+
<url type="bugtracker">https://github.com/eteran/nedit-ng/issues</url>
38+
<url type="vcs-browser">https://github.com/eteran/nedit-ng</url>
39+
40+
<categories>
41+
<category>Utility</category>
42+
<category>TextEditor</category>
43+
<category>Development</category>
44+
</categories>
45+
46+
<keywords>
47+
<keyword>NEdit</keyword>
48+
<keyword>Nirvana</keyword>
49+
<keyword>editor</keyword>
50+
<keyword>text</keyword>
51+
</keywords>
52+
53+
<provides>
54+
<binary>nedit-ng</binary>
55+
<binary>nc-ng</binary>
56+
</provides>
57+
58+
<supports>
59+
<control>pointing</control>
60+
<control>keyboard</control>
61+
<control>touch</control>
62+
</supports>
63+
64+
<content_rating type="oars-1.1" />
65+
66+
<releases>
67+
<release version="2025.1" date="2025-01-01">
68+
<description>
69+
<p>Initial Flatpak packaging of NEdit-ng.</p>
70+
</description>
71+
</release>
72+
</releases>
73+
</component>

0 commit comments

Comments
 (0)