refactor: rename binary and artifacts to negative-converter
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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 "========================================================"
|
||||
|
||||
Reference in New Issue
Block a user