refactor: rename binary and artifacts to negative-converter
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# build-all.sh — Kompiliert alle Targets des photo-converter Projekts
|
||||
# build-all.sh — Kompiliert alle Targets des negative-converter Projekts
|
||||
#
|
||||
# Verwendung:
|
||||
# ./scripts/build-all.sh [--release|--debug] [--clean] [--no-gui] [--no-tests]
|
||||
@@ -60,7 +60,7 @@ BUILD_PATH="$PROJECT_DIR/$BUILD_DIR"
|
||||
cd "$PROJECT_DIR"
|
||||
|
||||
echo ""
|
||||
log_info "photo-converter Build"
|
||||
log_info "negative-converter Build"
|
||||
log_info " Typ: $BUILD_TYPE"
|
||||
log_info " Pfad: $BUILD_PATH"
|
||||
log_info " GUI: $BUILD_GUI"
|
||||
@@ -114,7 +114,7 @@ log_ok "Build erfolgreich"
|
||||
# ── Ergebnisse auflisten ──────────────────────────────────────────────────────
|
||||
echo ""
|
||||
log_info "Erzeugte Binaries:"
|
||||
find "$BUILD_PATH" -maxdepth 3 -type f \( -name "photo-converter" -o -name "test_*" \) \
|
||||
find "$BUILD_PATH" -maxdepth 3 -type f \( -name "negative-converter" -o -name "test_*" \) \
|
||||
| sort \
|
||||
| while read -r f; do
|
||||
size=$(du -sh "$f" 2>/dev/null | cut -f1)
|
||||
@@ -133,4 +133,4 @@ if [[ "$BUILD_TESTS" == "ON" ]]; then
|
||||
fi
|
||||
|
||||
echo ""
|
||||
log_ok "Fertig. Starten mit: $BUILD_PATH/photo-converter --batch --config config.ini"
|
||||
log_ok "Fertig. Starten mit: $BUILD_PATH/negative-converter --batch --config config.ini"
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
# ─────────────────────────────────────────────────────────────────────────────
|
||||
# build-windows.sh
|
||||
#
|
||||
# Cross-compiles photo-converter for Windows (x86_64) using MinGW-w64.
|
||||
# Produces a self-contained directory with photo-converter.exe and all
|
||||
# Cross-compiles negative-converter for Windows (x86_64) using MinGW-w64.
|
||||
# Produces a self-contained directory with negative-converter.exe and all
|
||||
# required DLLs ready for distribution.
|
||||
#
|
||||
# Prerequisites (Ubuntu/Debian):
|
||||
@@ -39,7 +39,7 @@ DIST_DIR="${PROJECT_ROOT}/dist-windows"
|
||||
TOOLCHAIN="${PROJECT_ROOT}/cmake/toolchain-mingw64.cmake"
|
||||
|
||||
echo "========================================================"
|
||||
echo " photo-converter Windows Cross-Compilation"
|
||||
echo " negative-converter Windows Cross-Compilation"
|
||||
echo "========================================================"
|
||||
echo " Project root : ${PROJECT_ROOT}"
|
||||
echo " Build dir : ${BUILD_DIR}"
|
||||
@@ -131,7 +131,7 @@ fi
|
||||
if [[ "${BUILD_TYPE}" == "Release" ]]; then
|
||||
echo ""
|
||||
echo "Stripping debug symbols from release binaries..."
|
||||
x86_64-w64-mingw32-strip --strip-all "${BIN_DIR}/photo-converter.exe" 2>/dev/null || true
|
||||
x86_64-w64-mingw32-strip --strip-all "${BIN_DIR}/negative-converter.exe" 2>/dev/null || true
|
||||
find "${BIN_DIR}" -name "*.dll" -exec x86_64-w64-mingw32-strip --strip-unneeded {} \; 2>/dev/null || true
|
||||
fi
|
||||
|
||||
@@ -139,7 +139,7 @@ fi
|
||||
cp -v "${PROJECT_ROOT}/config.ini" "${DIST_DIR}/config.ini.example"
|
||||
|
||||
# ── Create ZIP archive ────────────────────────────────────────────────────────
|
||||
ARCHIVE="${PROJECT_ROOT}/photo-converter-windows-x64-${BUILD_TYPE}.zip"
|
||||
ARCHIVE="${PROJECT_ROOT}/negative-converter-windows-x64-${BUILD_TYPE}.zip"
|
||||
if command -v zip &>/dev/null; then
|
||||
(cd "${PROJECT_ROOT}" && zip -r "${ARCHIVE}" "dist-windows/")
|
||||
echo ""
|
||||
@@ -152,5 +152,5 @@ echo ""
|
||||
echo "========================================================"
|
||||
echo " Build complete!"
|
||||
echo " Output: ${DIST_DIR}"
|
||||
echo " Run: wine ${BIN_DIR}/photo-converter.exe --help"
|
||||
echo " Run: wine ${BIN_DIR}/negative-converter.exe --help"
|
||||
echo "========================================================"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# docker-build.sh — Baut photo-converter in Docker
|
||||
# docker-build.sh — Baut negative-converter in Docker
|
||||
#
|
||||
# Verwendung:
|
||||
# ./scripts/docker-build.sh [linux|windows|all] [--no-cache] [--run]
|
||||
@@ -43,10 +43,10 @@ command -v docker &>/dev/null || log_error "Docker nicht gefunden. Installieren:
|
||||
mkdir -p output dist-windows
|
||||
|
||||
build_linux() {
|
||||
log_info "Baue Linux-Image (photo-converter:linux) ..."
|
||||
log_info "Baue Linux-Image (negative-converter:linux) ..."
|
||||
docker build $NO_CACHE \
|
||||
--target linux-builder \
|
||||
-t photo-converter:linux \
|
||||
-t negative-converter:linux \
|
||||
-f docker/Dockerfile \
|
||||
.
|
||||
log_ok "Linux-Image gebaut"
|
||||
@@ -57,27 +57,27 @@ build_linux() {
|
||||
-v "$PROJECT_ROOT/import:/project/import:ro" \
|
||||
-v "$PROJECT_ROOT/output:/project/output" \
|
||||
-v "$PROJECT_ROOT/config.ini:/project/config.ini:ro" \
|
||||
photo-converter:linux \
|
||||
negative-converter:linux \
|
||||
--batch --config config.ini
|
||||
log_ok "Konvertierung abgeschlossen. Ergebnisse in: output/"
|
||||
fi
|
||||
}
|
||||
|
||||
build_windows() {
|
||||
log_info "Baue Windows-Cross-Compilation-Image (photo-converter:windows-builder) ..."
|
||||
log_info "Baue Windows-Cross-Compilation-Image (negative-converter:windows-builder) ..."
|
||||
log_info "Hinweis: Erster Build lädt ~3 GB MXE-Pakete herunter (~20-30 Min)"
|
||||
docker build $NO_CACHE \
|
||||
--target windows-builder \
|
||||
-t photo-converter:windows-builder \
|
||||
-t negative-converter:windows-builder \
|
||||
-f docker/Dockerfile \
|
||||
.
|
||||
log_ok "Windows-Builder-Image gebaut"
|
||||
|
||||
log_info "Extrahiere photo-converter.exe ..."
|
||||
log_info "Extrahiere negative-converter.exe ..."
|
||||
mkdir -p dist-windows
|
||||
docker run --rm \
|
||||
-v "$PROJECT_ROOT/dist-windows:/project/dist-windows" \
|
||||
photo-converter:windows-builder \
|
||||
negative-converter:windows-builder \
|
||||
-c "cp -r /project/dist-windows/. /project/dist-windows/ && echo 'Fertig'"
|
||||
|
||||
log_ok "Windows-Build abgeschlossen: dist-windows/"
|
||||
|
||||
Reference in New Issue
Block a user