Compare commits

..

No commits in common. "144f7bb6444da41ca608305f75a4c896066eca2f" and "da2ec0b2a2f21dfee0e717253dbad186517471d2" have entirely different histories.

2 changed files with 8 additions and 9 deletions

1
.gitignore vendored
View File

@ -4,7 +4,6 @@
.vscode/ .vscode/
.DS_Store .DS_Store
build/ build/
BUILD/
dist-dos/ dist-dos/
*.obj *.obj
*.OBJ *.OBJ

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

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