- cmake/macos9.cmake and cmake/Platform/MacOS9.cmake: a toolchain over
clang-retro/llvm and the C and C++ libraries of clang-retro/mac-sdk.
tools/macapp.py links the program into a MacBinary application.
- winport/CMakeLists.txt: the Toolbox backend of clang-retro MFC
(TARGET=powerpc-apple-macos9), and winport/macos9/getentropy.c,
which the C library of mac-sdk calls but does not have.
- windows/src/remote.cpp: COORD, which the Win32 layer does not have.
- CI job winport-macos9: builds mac-sdk's libraries (cached) and the
app on Linux. The nightly has dmodem-win32-macos9.bin.
- D-Modem with the changes for the classic Mac OS (D-Modem#215).
- docs: building, download, embedded modem, design, README.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVR36R8PgTTMQiuWkQ
cmake/macosx-legacy.cmake builds the app on Linux over the Mac OS X
10.0-10.5 port of clang-retro MFC, with clang of clang-retro/llvm, the
macosx10.4 sysroot of dos-sdk and its cctools. cmake/macosx-legacy/
fixes headers of the 10.4 SDK. winport/CMakeLists.txt builds libwinport
for the target, and BundledLibssh.cmake gives the toolchain's settings
to the libssh and mbedTLS builds. The new CI job joins the PowerPC and
i386 programs into one fat program, and the nightly release adds
dmodem-win32-macosx10.4.tar.gz. D-Modem: its changes for 10.4 to 10.6.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVR36R8PgTTMQiuWkQ
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>
winport/CMakeLists.txt takes the architecture of libwinport from
CMAKE_OSX_ARCHITECTURES (one architecture). CI builds the app on macOS
for arm64 and x86_64, and the nightly release adds
dmodem-win32-macos-x86_64.tar.gz.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVR36R8PgTTMQiuWkQ
The publish step deleted the release first and then made a new one.
When the token could not make the release (HTTP 403), the release was
gone. The script now moves the tag, edits the release and uploads the
files with --clobber. It makes a release only when there is none.
If DMODEM_BUMP_TOKEN fails, a second step tries with the GITHUB_TOKEN.
The workflow also runs each time a run of Build on main completes, so
the release follows main.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTrw1ffsyY5bhTghu1
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
The GITHUB_TOKEN of the workflow deleted the nightly release, then got
HTTP 403 (Resource not accessible by integration) when it made the
release again (run 45212602781). The Publish step now uses the
DMODEM_BUMP_TOKEN organization secret if it is available.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSE9B8aAKiw3a5VpMx
d-modem-bump.yml starts on D-Modem's d-modem-main event, each day, or manually. It opens a pull request that moves external/D-Modem, waits for Build and merges. It needs the DMODEM_BUMP_TOKEN secret.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRT9xSDzhZPJHVyrj6o
main changed winport/include/windows.h and winport/src/stubs.cpp
(SetCommBreak and ClearCommBreak stand-ins). This branch removes those
files, because clang-retro MFC's layer now has the functions. The
winport build and its smoke test pass with the current layer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTRNP9YEnRxydbrw9G
clang-retro's win32-picolibc now has libc++, and D-Modem builds with it
(D-Modem/D-Modem#167). The Windows 95 build of the app now has the
built-in modem too. Its imports agree with Windows 95 and NT 4.0, and it
needs no msvcrt.dll or iphlpapi.dll.
- CMakeLists.txt: DMODEM_GUI_EMBED is on for all the Windows builds.
- external/D-Modem: the branch of D-Modem/D-Modem#167.
- CI: the windows-9x job checks out the submodule, and checks that the
app has the modem and imports no msvcrt.dll or iphlpapi.dll.
- Docs: embedded-modem.md, building.md, design.md, README and the
nightly release notes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTRNP9YEnRxydbrw9G
- CMake builds libdmodem_embed on macOS too. cmake/MacosEmbed.cmake links
a small program with it and keeps the link command (a linker launcher).
From it, CMake writes build/macos-embed.xcconfig: the header path, all
the static libraries and the Swift condition DMODEM_GUI_EMBED.
- macos/project.yml includes that file.
- Modem.swift starts the built-in modem for the SIP and USB lines, in a
thread of the app. Its DTE socket goes to the same session code as
the pty. LineSettingsView has a Built-in modem switch (on by default).
- CI: the macOS job checks out the submodule, and checks that the app
has the library.
- Docs: macOS in docs/embedded-modem.md, building.md, design.md and the
README.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTRNP9YEnRxydbrw9G
- windows/: the target is now dmodem-app (output dmodem.exe), because
D-Modem has a target dmodem. The app links dmodem_embed when it exists.
- The app starts the built-in modem for the dmodemd line when builtin=1
(default). The DTE socket goes to WSAAsyncSelect as a TCP socket does.
- CMakeLists.txt: get _WIN32_WINNT from the clang-retro config and include
dmodem_retro.h for C++ files only.
- ssh: build gai_strerror.c for the win98 and winme configs, because
the gai_strerrorA of ws2_32 imports FormatMessageW.
- CI: a new windows-98 job; the win7 job gets the submodule. The nightly
release takes dmodem-win98.exe.
- Docs: Windows in docs/embedded-modem.md, README.md, docs/building.md
and docs/design.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTRNP9YEnRxydbrw9G
D-Modem is now a git submodule (external/D-Modem). With
DMODEM_GUI_EMBED (on when the submodule is there, on Linux), the app
runs the modem in a thread for the SIP, USB and ALSA lines. Its DTE is
a socket, so there is no pty, no /dev/ttyDM0 and no root. The modem's
log goes to the Log page. Line settings > Advanced > Built-in modem
(on by default) turns it off, and the app starts dmodemd as before.
libssh's sha1() and sha256() are renamed, because libre has functions
of the same names. The bundled Mbed TLS is now 3.6.7, the same release
as D-Modem's.
Docs: docs/embedded-modem.md (STE), with links from the README,
building.md and design.md. CI: the Linux job checks out the submodule
and installs libasound2-dev and libusb-1.0-0-dev.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTRNP9YEnRxydbrw9G
nightly.yml takes the artifacts of the newest complete run of build.yml
on main and replaces the "nightly" pre-release with them. It stops
when main has no new commits. build.yml now packs each artifact as a
.tar.gz or .zip (an artifact does not keep the executable bit), and the
Linux (GTK 4) job uploads its app too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRR6tKgobV4RbMTv4eL
The Win32 layer now has sound (waveOut, waveIn, ACM), COM ports, pipes
and CreateProcess with standard handles, the environment and user
calls, the commctrl helper macros, winsock.h, WinMain's declaration,
hit tests through HTTRANSPARENT, Wingdings, and SHGetFolderPath. So
winport/include and winport/src/stubs.cpp go, and so do the group box
and Wingdings workarounds in the app.
On Linux and macOS the app now starts dmodemd (next to it, or on the
PATH) by default, and keeps its settings in the layer's CSIDL_APPDATA.
The main window gives the focus back to the control that had it when a
dialog box closes (on Windows too: after the SSH login, keys now go to
the terminal). The smoke test also starts a test dmodemd through a pipe.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRhKGCaYUyYtH7Boap
First pass: TCP and SSH. With -DDMODEM_GUI_WINPORT=ON and CLANG_RETRO_MFC
set to a clang-retro MFC checkout, winport/ builds libwinport.a with the
MFC Makefile, converts app.rc with res2cpp.py, and links the same Win32
sources (now listed once, in windows/sources.cmake) as dmodem-win32.
The layer does not have serial ports, pipes or audio yet: winport/include
and winport/src/stubs.cpp supply stand-ins that fail, to remove when the
layer gets these functions. DMODEM_WINPORT blocks in the app: the settings
in ~/.config/D-Modem, TCP as the default line, ~/.ssh and '/' for SSH,
Unicode marks in the path view (no Wingdings), and group boxes put under
the other controls (the layer's hit test stops at HTTRANSPARENT).
CI builds it on Linux and macOS, and on Linux starts it in Xvfb against
a test modem on the TCP port (winport/test/smoke.sh).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRhKGCaYUyYtH7Boap
The win32-picolibc build (Windows 95, 98, ME, NT 4.0 and later) now has
libssh and mbedTLS, as the other builds do. DMODEM_GUI_SSH is ON for
every build.
- mbedTLS: CryptGenRandom of CryptoAPI, found at run time, in place of
BCryptGenRandom (Vista) before Vista; picolibc's gmtime_r and the
Windows zeroize in place of gmtime_s and memset_s.
- libssh: SHGetSpecialFolderPathA (IE4 shell), if_nametoindex (Vista) and
WSAStringToAddressA (Winsock 2) found at run time before Vista, with
USERPROFILE and inet_addr in their place; picolibc build flags and a
<direct.h>.
- gai_strerrorA with FormatMessageA (mingw-w64's calls FormatMessageW).
- agent.c: strcasecmp for _stricmp on picolibc.
The app still imports only DLLs that every Windows 95 has; the 9x and
NT 4.0 import checks pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRhKGCaYUyYtH7Boap
Replace Open Watcom (windows/build-watcom.sh) and MSVC in CI with
clang-retro: cmake/clang-retro.cmake, a CMake toolchain file that takes
the clang-dos toolchain package (CLANG_DOS) and a --config target
(CLANG_RETRO_CONFIG).
- Windows 95 and later: win32-picolibc (static C library, no msvcrt.dll),
no SSH. CI checks its imports for 9x and NT 4.0.
- Windows 7 and later: win7, with libssh and mbedTLS built for it.
- CI runs the tests of both builds in Wine.
- picolibc names for _snprintf, _stricmp and _strnicmp; a main for
picolibc's start-up code; DMODEM_GUI_SSH to turn the SSH build off.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRhKGCaYUyYtH7Boap
The Windows app runs libdmodemssh on a thread that posts its events to
the main window, with a login dialog that fits its questions; the
Windows 95 build keeps Windows' ssh.exe in a pseudo console. The macOS
app's SSHConnection polls it on a thread for the main queue, with
SwiftUI alerts for a new host, a password or the server's questions;
PtySpawn goes. libssh and mbedTLS are built universal for macOS by the
repository's CMake. Linux CI logs in to a real sshd; docs follow.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSV65geuGd6zMt2V6r
The library now reads WAV of 8 to 32-bit PCM, floats, A-law, mu-law,
IMA and Microsoft ADPCM, AIFF and AIFF-C, and Sun/NeXT .au, at any rate
and channel count (dmc_audio_decode; dmc_wav_decode stays as its old
name). Each app hands the rest to the system's decoders:
- Linux: libsndfile when built with it (MP3, FLAC, Ogg Vorbis, Opus)
- Windows: the ACM codecs (MP3 and compressed WAVs), Windows 95 and up
- macOS: AVAudioFile (MP3, AAC/M4A, FLAC, ALAC, CAF)
The decoders were checked against ffmpeg's for each format, and fuzzed
under ASan and UBSan; the Windows path was run under Wine.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTvbHMpudRfQWK4c4H
Each contribution comes with the suite's contributor agreement (the one
bbs, menu and brand already use): the contributor keeps the copyright
and licenses it to the D-Modem Authors under the repository's licence
and any other terms, commercial ones included. Each commit's
Signed-off-by line says they agree. The new workflow checks for that
line on every commit of a pull request, except pull requests from the
owner, the organization's members and bots.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSQaj3bYPQDZU4qf9U
- .github/workflows/build.yml: Linux (with the tests, and again with
ASan and UBSan), Windows 95 and later with Open Watcom, Windows with
MSVC, and macOS with XcodeGen and xcodebuild.
- libdmodemctl: a line over 4 KiB keeps its end, not its start. AT!CF
sends its screens with no line ends and its OK after the last one, so
the OK was lost and the app stayed in the configurator after Alt-X.
- Windows: the pages without WS_CLIPCHILDREN, so that the page paints
inside its group boxes.
- Screenshots of the Windows app, run under Wine against dmodemd.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVTPinTtLUajudobBC