Make the Win32 app the only desktop GUI

Remove the SwiftUI app for macOS (macos/, cmake/MacosEmbed.cmake,
cmake/macos-embed/) and the GTK 4 app for Linux (linux/). The Win32
app (windows/) is now the canonical GUI on Windows, and on Linux and
macOS over the portable Win32 layer of clang-retro MFC (winport/).

- CMake: remove DMODEM_GUI_LINUX and the Xcode support. With no
  DMODEM_GUI_WINPORT, Linux and macOS build only the libraries and
  their tests. The built-in modem is on by default for Windows and
  winport.
- winport: install the app, its desktop entry, AppStream data, icon
  and the MT9234MU firmware on Linux (firmware/ moves to the top).
- CI: the "core" job keeps the library, sanitizer and sshd tests on
  Linux. The macOS library tests move to the winport-macos job. The
  linux and macos jobs and their nightly files are removed.
- Docs, site and comments: describe one Win32 app.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUx6MjNXmAFKULZu3U
Signed-off-by: Neo-Desktop <321592+Neo-Desktop@users.noreply.github.com>
This commit is contained in:
Neo-DesktopandClaude Opus 5.5 committed 2026-11-28 12:48:14 +00:00
1 parent 29c579eff8
commit d924bf8860
71 files changed
+271 -10621

No files matched your search

+13 -62
View File
@@ -1,5 +1,6 @@
# Builds and tests the three apps and the library they share, and the
# Windows app for Linux and macOS (winport/)
# Builds and tests the app (windows/) and the library that it uses
# (core/, ssh/): on Windows 95 to Windows 11, and on Linux and macOS over
# clang-retro MFC's portable Win32 layer (winport/)
name: Build
# The nightly release (nightly.yml) takes its files from this
@@ -15,19 +16,18 @@ permissions:
contents: read
jobs:
linux:
name: Linux (GTK 4)
# libdmodemctl (core/) and libdmodemssh (ssh/), with no app: the
# tests, the tests with the sanitizers, and SSH against a real sshd
core:
name: Library and SSH tests (Linux)
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Packages
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
cmake ninja-build pkg-config libgtk-4-dev libadwaita-1-dev \
libpulse-dev libsndfile1-dev libasound2-dev libusb-1.0-0-dev
cmake ninja-build pkg-config
- name: Build
run: |
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo
@@ -62,14 +62,6 @@ jobs:
DMODEM_SSH_TEST=127.0.0.1:2222:dmtest:Sesame-42 DMODEM_SSH_TEST_KEY="$RUNNER_TEMP/key" \
DMODEM_SSH_TEST_PPK="$RUNNER_TEMP/key.ppk" DMODEM_SSH_TEST_AGENT="$RUNNER_TEMP/agent.sock" \
build/ssh/dmodemssh_test
- name: Package
run: |
DESTDIR="$PWD/pkg" cmake --install build --prefix /usr
tar -C pkg -czf dmodem-gui-linux-x86_64.tar.gz usr
- uses: actions/upload-artifact@v4
with:
name: dmodem-linux
path: dmodem-gui-linux-x86_64.tar.gz
# Both Windows builds use clang-retro (https://clang-retro.github.io/),
# its toolchain package from its setup-toolchain action, on Linux
@@ -195,7 +187,7 @@ jobs:
- name: Build
run: |
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DDMODEM_GUI_LINUX=OFF -DDMODEM_GUI_WINPORT=ON -DCLANG_RETRO_MFC="$PWD/mfc" \
-DDMODEM_GUI_WINPORT=ON -DCLANG_RETRO_MFC="$PWD/mfc" \
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
cmake --build build --target dmodem-win32
- name: The built-in modem is in the app
@@ -247,54 +239,13 @@ jobs:
test "$(lipo -archs build/winport/dmodem-win32)" = "${{ matrix.arch }}"
- name: The built-in modem is in the app
run: nm build/winport/dmodem-win32 | grep -q dmodem_embed_start
- name: Library tests
run: |
cmake --build build --target dmodemctl_test xfer_test -j"$(sysctl -n hw.ncpu)"
ctest --test-dir build --output-on-failure -R '^(dmodemctl|xfer)$'
- name: Package
run: tar -C build/winport -czf dmodem-win32-macos-${{ matrix.arch }}.tar.gz dmodem-win32
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact }}
path: dmodem-win32-macos-${{ matrix.arch }}.tar.gz
# The built-in modem (external/D-Modem) is built by CMake, which
# writes build/macos-embed.xcconfig for the Xcode project
macos:
name: macOS (SwiftUI)
runs-on: macos-15
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Library tests
run: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET=13.0
cmake --build build
ctest --test-dir build --output-on-failure
- name: Project
run: |
brew install xcodegen
cd macos && xcodegen
# (arm64 and x86_64: with no destination, xcodebuild builds for
# the runner's Mac alone)
- name: Build
run: |
cd macos
xcodebuild -project DModem.xcodeproj -scheme DModem \
-configuration Release -derivedDataPath ../build/xcode \
-destination 'generic/platform=macOS' \
ARCHS='arm64 x86_64' ONLY_ACTIVE_ARCH=NO \
CODE_SIGN_IDENTITY=- build
- name: The built-in modem is in the app, for each architecture
run: |
app=build/xcode/Build/Products/Release/D-Modem.app/Contents/MacOS/D-Modem
lipo -archs "$app"
for arch in arm64 x86_64; do
lipo "$app" -verify_arch "$arch"
nm -arch "$arch" "$app" | grep -q dmodem_embed_start
done
# (ditto keeps the bundle's symbolic links and executable bits)
- name: Package
run: ditto -c -k --keepParent build/xcode/Build/Products/Release/D-Modem.app D-Modem-macos.zip
- uses: actions/upload-artifact@v4
with:
name: dmodem-macos
path: D-Modem-macos.zip
+2 -2
View File
@@ -1,9 +1,9 @@
# D-Modem bump: moves the external/D-Modem submodule (the built-in
# modem) to the latest main of D-Modem. It opens a pull request for the
# change, or updates the open one. Build (build.yml) builds and tests
# the apps in that pull request. The workflow merges the pull request
# the app in that pull request. The workflow merges the pull request
# when all of its checks pass. Build then runs on main, and the next
# nightly release (nightly.yml) has the new apps.
# nightly release (nightly.yml) has the new app.
#
# It starts:
# - from D-Modem, when its main changes (a repository_dispatch event of
+8 -10
View File
@@ -1,13 +1,15 @@
# Nightly: the "nightly" pre-release of the apps, from the artifacts of
# Nightly: the "nightly" pre-release of the app, from the artifacts of
# the newest complete run of build.yml on main. It does not build the
# apps again. It runs each time a run of build.yml on main completes,
# app again. It runs each time a run of build.yml on main completes,
# and once a day. Each run updates the release in place and moves its
# tag: a run that fails does not delete the release. When main has no
# new commits, the run stops and the release does not change. A manual
# run (Actions > Nightly > Run workflow) can publish again with "force".
#
# The files are not signed: Windows SmartScreen and macOS Gatekeeper
# show a warning for them.
# show a warning for them. The release has only the files of this
# build: nightly-publish.sh removes the files that the build did not
# make (for example the old Linux GTK app and the old macOS SwiftUI app).
name: Nightly
on:
@@ -70,8 +72,6 @@ jobs:
take dmodem-windows-9x dmodem.exe dmodem-win9x.exe
take dmodem-windows-98 dmodem.exe dmodem-win98.exe
take dmodem-windows dmodem.exe dmodem-win7.exe
take dmodem-linux dmodem-gui-linux-x86_64.tar.gz
take dmodem-macos D-Modem-macos.zip
take dmodem-win32-linux dmodem-win32-linux-x86_64.tar.gz
take dmodem-win32-macos dmodem-win32-macos-arm64.tar.gz
take dmodem-win32-macos-x86_64 dmodem-win32-macos-x86_64.tar.gz
@@ -86,11 +86,9 @@ jobs:
echo "| \`dmodem-win9x.exe\` | The Windows app with the modem built in, for Windows 95, 98, ME, NT 4.0 and later (no C runtime DLL; Windows 95 needs Winsock 2) |"
echo "| \`dmodem-win98.exe\` | The Windows app with the modem built in, for Windows 98 SE, ME, 2000 and later (on msvcrt.dll) |"
echo "| \`dmodem-win7.exe\` | The Windows app for Windows 7 and later, with the modem built in |"
echo "| \`dmodem-gui-linux-x86_64.tar.gz\` | The Linux app (GTK 4), x86_64. It needs GTK 4, libadwaita, PulseAudio and libsndfile. Its files are in \`usr/\`: extract it into \`/\`, for example with \`sudo tar -xzf dmodem-gui-linux-x86_64.tar.gz -C /\` |"
echo "| \`D-Modem-macos.zip\` | The macOS app (SwiftUI) with the modem built in, arm64 and x86_64, macOS 13 and later. Not notarized: right-click the app and select Open |"
echo "| \`dmodem-win32-linux-x86_64.tar.gz\` | The Windows app on Linux (X11) with the modem built in, x86_64 |"
echo "| \`dmodem-win32-macos-arm64.tar.gz\` | The Windows app on macOS with the modem built in, arm64 (Apple silicon) |"
echo "| \`dmodem-win32-macos-x86_64.tar.gz\` | The Windows app on macOS with the modem built in, x86_64 (Intel Mac) |"
echo "| \`dmodem-win32-linux-x86_64.tar.gz\` | The app on Linux (X11) with the modem built in, x86_64 |"
echo "| \`dmodem-win32-macos-arm64.tar.gz\` | The app on macOS with the modem built in, arm64 (Apple silicon) |"
echo "| \`dmodem-win32-macos-x86_64.tar.gz\` | The app on macOS with the modem built in, x86_64 (Intel Mac) |"
echo "| \`SHA256SUMS\` | The SHA-256 of each file |"
if [ -f missing ]; then
echo