build: move deploy scripts under build_scripts/<platform>/

Following the removal of the orchestrator Makefile, the canonical build is now
plain CMake on the top-level CMakeLists.txt (e.g. cmake -B Build-cmake -S .
-DRS_PLUGINS=ON && cmake --build Build-cmake; on Windows add -G "MSYS Makefiles"
-DRS_LIBRETROSHARE_STATIC=OFF -DRS_LIBRETROSHARE_SHARED=ON).

Move the packaging scripts into their matching build_scripts/ sub-directories and
make them independent of the Makefile and of the invocation directory:
- deploy-macos.sh   -> build_scripts/OSX/deploy-macos.sh
- deploy-windows.sh -> build_scripts/Windows-msys2/deploy-windows.sh
Each script now cd's to the repository root from its own location and reads the
build directory from BUILD_DIR (default Build-cmake) instead of assuming it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
jolavillette 2026-06-06 12:34:07 +02:00
parent 30f38cf1b5
commit 28ff5a6d33
2 changed files with 12 additions and 6 deletions

View File

@ -14,7 +14,12 @@
# ==============================================================================
set -e
BUILD_DIR="Build-cmake"
# Always operate from the repository root, regardless of where this script lives
# (it resides under build_scripts/OSX/). All paths below are relative to the root.
cd "$(dirname "$0")/../.." || exit 1
# Build directory (override with: BUILD_DIR=mydir ./build_scripts/OSX/deploy-macos.sh)
BUILD_DIR="${BUILD_DIR:-Build-cmake}"
APP_NAME="RetroShare"
# 1. Vérifications initiales du dossier de build

View File

@ -15,12 +15,13 @@
# ==============================================================================
set -e
# Toujours travailler depuis la racine du dépôt (emplacement du script),
# sinon les chemins relatifs (retroshare-gui/src, libbitdht, ...) sont muets
# et produisent un paquet incomplet sans la moindre erreur.
cd "$(dirname "$0")" || exit 1
# Toujours travailler depuis la racine du dépôt (ce script vit sous
# build_scripts/Windows-msys2/), sinon les chemins relatifs (retroshare-gui/src,
# libbitdht, ...) sont muets et produisent un paquet incomplet sans erreur.
cd "$(dirname "$0")/../.." || exit 1
BUILD_DIR="Build-cmake"
# Build directory (override with: BUILD_DIR=mydir ./build_scripts/Windows-msys2/deploy-windows.sh)
BUILD_DIR="${BUILD_DIR:-Build-cmake}"
# Préfixe de l'environnement MSYS2 utilisé pour la compilation
# (mingw64 / ucrt64 / clang64). Indispensable pour retrouver le runtime