mirror of
https://github.com/D-Modem/gui.git
synced 2026-11-28 14:19:58 -08:00
Windows: build the modem into the app (Windows 98 SE and Windows 7)
- 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
This commit is contained in:
15 files changed
+356
-53
No files matched your search
@@ -105,11 +105,41 @@ jobs:
|
||||
name: dmodem-windows-9x
|
||||
path: build/win9x/windows/dmodem.exe
|
||||
|
||||
# The app with the modem built in (external/D-Modem): Windows 98 SE,
|
||||
# ME, 2000 and later. The modem needs msvcrt and libc++, which the
|
||||
# Windows 95 build above (picolibc) does not have.
|
||||
windows-98:
|
||||
name: Windows 98 SE and later, the modem built in (clang-retro, win98)
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
- uses: clang-retro/dos-sdk/.github/actions/setup-toolchain@main
|
||||
id: clang-dos
|
||||
- name: Packages
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y --no-install-recommends ninja-build
|
||||
- name: Build
|
||||
run: |
|
||||
cmake -S . -B build/win98 -G Ninja -DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_TOOLCHAIN_FILE=cmake/clang-retro.cmake -DCLANG_RETRO_CONFIG=win98
|
||||
cmake --build build/win98
|
||||
- name: Imports (Windows 98 SE)
|
||||
run: python3 "$CLANG_DOS/share/clang-dos/check-imports.py" build/win98/windows/dmodem.exe
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: dmodem-windows-98
|
||||
path: build/win98/windows/dmodem.exe
|
||||
|
||||
windows:
|
||||
name: Windows 7 and later (clang-retro)
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
- uses: clang-retro/dos-sdk/.github/actions/setup-toolchain@main
|
||||
id: clang-dos
|
||||
- name: Packages
|
||||
|
||||
@@ -62,6 +62,7 @@ jobs:
|
||||
if [ -f "dl/$1/$2" ]; then cp "dl/$1/$2" "out/${3:-$2}"; else echo "- \`${3:-$2}\`" >> missing; fi
|
||||
}
|
||||
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
|
||||
@@ -75,8 +76,9 @@ jobs:
|
||||
echo
|
||||
echo "| File | What it is |"
|
||||
echo "| --- | --- |"
|
||||
echo "| \`dmodem-win9x.exe\` | The Windows app for Windows 95, 98, ME, NT 4.0 and later |"
|
||||
echo "| \`dmodem-win7.exe\` | The Windows app for Windows 7 and later |"
|
||||
echo "| \`dmodem-win9x.exe\` | The Windows app for Windows 95, 98, ME, NT 4.0 and later. It needs a modem that runs (dmodemd, or a COM port) |"
|
||||
echo "| \`dmodem-win98.exe\` | The Windows app with the modem built in, for Windows 98 SE, ME, 2000 and later |"
|
||||
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 |"
|
||||
|
||||
Reference in new issue
Block a user