Add a dos installer, and improve the makefile on dos #1

Merged
gmgauthier merged 7 commits from dos_installer into master 2026-02-04 19:31:22 +00:00
Showing only changes of commit 144f7bb644 - Show all commits

16
make-dos-zip.sh Normal file → Executable file
View File

@ -20,7 +20,7 @@ set -euo pipefail
VERSION="${1:-$(date +%Y%m%d)}"
ZIP_NAME="cnotes-v${VERSION}-dos.zip"
BUILD_DIR="build"
BUILD_DIR="BUILD"
DIST_DIR="dist-dos"
# Colors
@ -32,12 +32,12 @@ echo -e "${GREEN}Packaging DOS release: ${ZIP_NAME}${NC}"
# 1. Check required files exist in build/
REQUIRED_FILES=(
"cnadd.exe"
"cndump.exe"
"cncount.exe"
"cndel.exe"
"cnfind.exe"
"cnhelp.exe"
"CNADD.EXE"
"CNDUMP.EXE"
"CNCOUNT.EXE"
"CNDEL.EXE"
"CNFIND.EXE"
"CNHELP.EXE"
"INSTALL.BAT"
"READ-DOS.TXT"
)
@ -63,7 +63,7 @@ mkdir -p "${DIST_DIR}"
# 3. Copy files to staging
echo "Staging files..."
cp "${BUILD_DIR}"/*.exe "${DIST_DIR}"/
cp "${BUILD_DIR}"/*.EXE "${DIST_DIR}"/
cp "${BUILD_DIR}/INSTALL.BAT" "${DIST_DIR}"/
cp "$$ {BUILD_DIR}/READ-DOS.TXT" " $${DIST_DIR}"/ 2>/dev/null || {
echo -e "$$ {RED}Warning: READ-DOS.TXT not found in build/ (optional but recommended) $${NC}"