Build the modem into the Windows app on Linux and macOS

The Windows app on macOS (and on Linux) had no built-in modem: CMake
turned DMODEM_GUI_EMBED off for winport/, and CI did not check out the
D-Modem submodule. The app looked for dmodemd.

- CMake: DMODEM_GUI_EMBED is on by default for winport/. winport/
  links libdmodem_embed. The data file of the line uses DIR_SEP.
- CI: the winport jobs check out the submodule and check that the
  built-in modem is in the app. The smoke test starts the built-in
  modem (SIP, no account), and runs dmodemd with builtin=0.
- CI: the SwiftUI app builds for arm64 and x86_64 (it was arm64 alone),
  and the check looks at each architecture.
- Docs and the release notes say which builds have the modem.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTrw1ffsyY5bhTghu1
This commit is contained in:
Claude committed 2026-11-25 03:45:59 +00:00
1 parent 2a2f1fed62
commit 1ca2115f4d
11 files changed
+111 -36

No files matched your search

+23 -6
View File
@@ -172,12 +172,15 @@ jobs:
path: build/win7/windows/dmodem.exe
# The Windows app for Linux and macOS (winport/), over the portable
# Win32 layer of clang-retro MFC.
# Win32 layer of clang-retro MFC, with the modem built in
# (external/D-Modem)
winport-linux:
name: Windows app on Linux (clang-retro MFC's Win32 layer)
name: Windows app on Linux, the modem built in (clang-retro MFC's Win32 layer)
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/checkout@v4
with:
repository: clang-retro/mfc
@@ -186,13 +189,16 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
cmake ninja-build clang llvm libx11-dev xvfb xauth
cmake ninja-build clang llvm libx11-dev xvfb xauth \
libusb-1.0-0-dev libasound2-dev
- 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" \
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
cmake --build build --target dmodem-win32
- name: The built-in modem is in the app
run: nm build/winport/dmodem-win32 | grep -q dmodem_embed_start
- name: Smoke test (Xvfb)
run: xvfb-run -a winport/test/smoke.sh build/winport/dmodem-win32
- name: Package
@@ -203,10 +209,12 @@ jobs:
path: dmodem-win32-linux-x86_64.tar.gz
winport-macos:
name: Windows app on macOS (clang-retro MFC's Win32 layer)
name: Windows app on macOS, the modem built in (clang-retro MFC's Win32 layer)
runs-on: macos-15
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/checkout@v4
with:
repository: clang-retro/mfc
@@ -219,6 +227,8 @@ jobs:
-DDMODEM_GUI_WINPORT=ON -DCLANG_RETRO_MFC="$PWD/mfc" \
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
cmake --build build --target dmodem-win32 -j"$(sysctl -n hw.ncpu)"
- name: The built-in modem is in the app
run: nm build/winport/dmodem-win32 | grep -q dmodem_embed_start
- name: Package
run: tar -C build/winport -czf dmodem-win32-macos-arm64.tar.gz dmodem-win32
- uses: actions/upload-artifact@v4
@@ -245,17 +255,24 @@ jobs:
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
- 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"
nm "$app" | grep -q dmodem_embed_start
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
+3 -3
View File
@@ -80,9 +80,9 @@ jobs:
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), 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), x86_64 |"
echo "| \`dmodem-win32-macos-arm64.tar.gz\` | The Windows app on macOS, arm64 |"
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 |"
echo "| \`SHA256SUMS\` | The SHA-256 of each file |"
if [ -f missing ]; then
echo