add utilities
Some checks failed
Extract Archives / prepare-server-content (push) Failing after 4m38s
Some checks failed
Extract Archives / prepare-server-content (push) Failing after 4m38s
This commit is contained in:
30
process.sh
30
process.sh
@@ -4,10 +4,8 @@ set -euox pipefail
|
|||||||
|
|
||||||
# Define Paths
|
# Define Paths
|
||||||
SOURCE_ROOT="./cars"
|
SOURCE_ROOT="./cars"
|
||||||
DEST_ROOT="./server-data/content/cars"
|
TARGET_ROOT="/content/cars"
|
||||||
mkdir -p "$DEST_ROOT"
|
mkdir -p "$TARGET_ROOT"
|
||||||
|
|
||||||
echo "Searching for archives in $SOURCE_ROOT..."
|
|
||||||
|
|
||||||
tree "$SOURCE_ROOT" # DEBUG
|
tree "$SOURCE_ROOT" # DEBUG
|
||||||
|
|
||||||
@@ -27,21 +25,21 @@ find "$SOURCE_ROOT" -type f \( -name "*.zip" -o -name "*.7z" -o -name "*.rar" \)
|
|||||||
# Extract contents
|
# Extract contents
|
||||||
7z x "$archive" -o"$temp_dir" -y > /dev/null
|
7z x "$archive" -o"$temp_dir" -y > /dev/null
|
||||||
|
|
||||||
echo "Extracted to: $temp_dir"
|
|
||||||
tree "$temp_dir" # DEBUG
|
|
||||||
|
|
||||||
# FILTERING LOGIC
|
# FILTERING LOGIC
|
||||||
find "$temp_dir/$car_name" -type f -not -name "skins/*/livery.png" \
|
find "$temp_dir/$car_name" -not -path "./skins/*/livery.png" \
|
||||||
-not -name "skins/*/preview.jpeg" \
|
-not -path "./skins/*/preview.jpg" \
|
||||||
-not -name "skins/*/ui_skin.json" \
|
-not -path "./skins/*/preview.jpeg" \
|
||||||
-not -name "ui/badge.png" \
|
-not -path "./skins/*/ui_skin.json" \
|
||||||
-not -name "ui/ui_car.json" \
|
-not -path "./ui/badge.png" \
|
||||||
-not -name "data.acd" \
|
-not -path "./ui/ui_car.json" \
|
||||||
-not -name "physics/standard/data.acd" \
|
-not -path "./data.acd" \
|
||||||
-not -name "physics/csp/data.acd" \
|
-not -path "./physics/standard/data.acd" \
|
||||||
-delete
|
-not -path "./physics/csp/data.acd" \
|
||||||
|
-delete;
|
||||||
|
|
||||||
echo "After filtering:"
|
echo "After filtering:"
|
||||||
tree "$temp_dir/$car_name"
|
tree "$temp_dir/$car_name"
|
||||||
|
|
||||||
|
cp -r "$temp_dir/$car_name" "$TARGET_ROOT"
|
||||||
|
|
||||||
done
|
done
|
||||||
BIN
utils/AC_Vision_Reality_1.1.zip
LFS
Normal file
BIN
utils/AC_Vision_Reality_1.1.zip
LFS
Normal file
Binary file not shown.
BIN
utils/CMRT_Complete_hud_v2.1.2.zip
LFS
Normal file
BIN
utils/CMRT_Complete_hud_v2.1.2.zip
LFS
Normal file
Binary file not shown.
BIN
utils/Pure 0.271 Lowres.zip
LFS
Normal file
BIN
utils/Pure 0.271 Lowres.zip
LFS
Normal file
Binary file not shown.
BIN
utils/lights-patch-v0.2.12-preview1-full.zip
LFS
Normal file
BIN
utils/lights-patch-v0.2.12-preview1-full.zip
LFS
Normal file
Binary file not shown.
Reference in New Issue
Block a user