Skip to content

Commit 13ff75c

Browse files
committed
Merge branch 'dev-pgtk'
2 parents 768e66b + b860372 commit 13ff75c

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
push:
99
tags:
1010
- '*'
11+
branches:
12+
- 'dev-*'
1113
schedule:
1214
- cron: '0 0 * * *'
1315

@@ -68,7 +70,7 @@ jobs:
6870
strategy:
6971
matrix:
7072
source: ${{ fromJson(needs.setup-vars.outputs.sources) }}
71-
build_with_x11: [ "yes", "no" ]
73+
build_gui: [ "x11", "pgtk", "no" ]
7274

7375
steps:
7476
- name: Install fuse
@@ -96,14 +98,15 @@ jobs:
9698
docker image ls -a
9799
98100
- name: Run and package
99-
run: ./run-and-package.sh builder-image:latest ./emacs-src BUILD_WITH_X11=${{ matrix.build_with_x11 }}
101+
run: ./run-and-package.sh builder-image:latest ./emacs-src BUILD_GUI=${{ matrix.build_gui }}
100102

101103
- name: Upload binary to release
102104
uses: svenstaro/upload-release-action@v2
105+
if: ${{ !contains(github.ref, 'dev-') }}
103106
with:
104107
repo_token: ${{ secrets.GITHUB_TOKEN }}
105108
file: dist/Emacs.AppImage
106-
asset_name: Emacs-${{ matrix.source.name }}-${{ matrix.build_with_x11 == 'yes' && 'x11' || 'nox' }}.AppImage
109+
asset_name: Emacs-${{ matrix.source.name }}-${{ matrix.build_gui == 'no' && 'nox' || matrix.build_gui }}.AppImage
107110
tag: ${{ github.event_name == 'schedule' && format('daily-master-build-{0}', needs.setup-vars.outputs.datetimestr) || github.ref }}
108111
release_name: "${{ github.event_name == 'schedule' && 'Daily master build' || 'Release build' }} ${{ needs.setup-vars.outputs.datetimestr }}"
109112
prerelease: ${{ github.event_name == 'schedule' }}

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ Tested in:
3636
## Version string meanings
3737

3838
- `x11`: built with X11 GUI support
39+
- `pgtk`: built with PGTK GUI support, for wayland desktop
3940
- `nox`: built without GUI support

scripts/build_emacs_in_docker.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,22 @@ ARGS=""
1414
ARGS+=" --disable-locallisppath"
1515
ARGS+=" --with-native-compilation=aot --with-json --with-threads --with-sqlite3 --with-tree-sitter"
1616
ARGS+=" --with-dbus --with-xml2 --with-modules --with-libgmp --with-gpm --with-lcms2"
17-
if [ "$BUILD_WITH_X11" = "yes" ]; then
17+
18+
if [ "$BUILD_GUI" = "pgtk" ]; then
19+
ARGS+=" --with-pgtk --without-x --without-gconf --without-ns"
20+
elif [ "$BUILD_GUI" = "x11" ]; then
1821
ARGS+=" --with-x --without-pgtk --without-gconf --with-x-toolkit=gtk3"
19-
ARGS+=" --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-imagemagick --with-webp"
20-
ARGS+=" --with-xft --with-cairo --with-harfbuzz --with-libotf --without-m17n-flt"
22+
ARGS+=" --with-xft"
2123
else
2224
ARGS+=" --without-x --without-pgtk --without-ns"
2325
fi
2426

27+
if [ "$BUILD_GUI" != "no" ]; then
28+
ARGS+=" --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-imagemagick --with-webp"
29+
ARGS+=" --with-harfbuzz --with-cairo --with-libotf --without-m17n-flt"
30+
fi
31+
32+
2533
env \
2634
PATH=$DIST_APPDIR/bin:$PATH \
2735
LD_LIBRARY_PATH=$DIST_APPDIR/lib \

0 commit comments

Comments
 (0)