From 379522ef8e6008b097be6b3f9cad24523742c1fa Mon Sep 17 00:00:00 2001 From: danipatko Date: Sun, 8 Feb 2026 01:41:34 +0100 Subject: [PATCH] balls --- .gitattributes | 3 + .gitconfig | 1 + .gitea/workflows/deploy-server.yaml | 89 +++++++++++++++++++ .../_RSS_Settings_25-07-25-MUST-INSTALL.rar | 3 + cars/RSS/rss_gtm_adonis_v8_evo.7z | 3 + cars/RSS/rss_gtm_aero_v10_evo2.7z | 3 + cars/RSS/rss_gtm_furiano_96_v6.7z | 3 + cars/RSS/rss_gtm_hyperion_v8.7z | 3 + cars/RSS/rss_gtm_lanzo_v10_evo2.7z | 3 + cars/RSS/rss_gtm_lux_v8.7z | 3 + cars/RSS/rss_gtm_macca_72_evo_v8.7z | 3 + cars/RSS/rss_gtm_mercer_v8.7z | 3 + cars/RSS/rss_gtm_protech_p92_f6.7z | 3 + convert.ts | 0 14 files changed, 123 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitconfig create mode 100644 .gitea/workflows/deploy-server.yaml create mode 100644 cars/RSS/_RSS_Settings_25-07-25-MUST-INSTALL.rar create mode 100644 cars/RSS/rss_gtm_adonis_v8_evo.7z create mode 100644 cars/RSS/rss_gtm_aero_v10_evo2.7z create mode 100644 cars/RSS/rss_gtm_furiano_96_v6.7z create mode 100644 cars/RSS/rss_gtm_hyperion_v8.7z create mode 100644 cars/RSS/rss_gtm_lanzo_v10_evo2.7z create mode 100644 cars/RSS/rss_gtm_lux_v8.7z create mode 100644 cars/RSS/rss_gtm_macca_72_evo_v8.7z create mode 100644 cars/RSS/rss_gtm_mercer_v8.7z create mode 100644 cars/RSS/rss_gtm_protech_p92_f6.7z create mode 100644 convert.ts diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..80bbad7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +*.zip filter=lfs diff=lfs merge=lfs -text +*.7z filter=lfs diff=lfs merge=lfs -text +*.rar filter=lfs diff=lfs merge=lfs -text \ No newline at end of file diff --git a/.gitconfig b/.gitconfig new file mode 100644 index 0000000..f44aa45 --- /dev/null +++ b/.gitconfig @@ -0,0 +1 @@ +lfs.https://git.dapa.hu/dapa/assetto.git/info/lfs.locksverify true diff --git a/.gitea/workflows/deploy-server.yaml b/.gitea/workflows/deploy-server.yaml new file mode 100644 index 0000000..35654b0 --- /dev/null +++ b/.gitea/workflows/deploy-server.yaml @@ -0,0 +1,89 @@ +name: Extract Archives +run-name: Extract Archives + +on: + workflow_dispatch: + push: + branches: + - main + paths: + - "cars/**" # Only run if archives in cars/ change +env: + GIT_DEFAULT_HASH: sha256 + +jobs: + prepare-server-content: + runs-on: ubuntu-latest + steps: + - name: Checkout Main Branch (LFS) + uses: actions/checkout@v4 + with: + ref: main + lfs: true + fetch-depth: 1 + + - name: Install 7-Zip + run: | + sudo apt-get update + sudo apt-get install -y p7zip-full + + - name: Process Archives + run: | + # 1. Define Paths + SOURCE_ROOT="./cars" + # This is where the server expects the files + DEST_ROOT="./server-data/content/cars" + mkdir -p "$DEST_ROOT" + + echo "๐Ÿ” Searching for archives in $SOURCE_ROOT..." + + # 2. Find all archives recursively (zip, 7z, rar) + find "$SOURCE_ROOT" -type f \( -name "*.zip" -o -name "*.7z" -o -name "*.rar" \) | while read archive; do + + # Get the filename without extension (e.g., "cars/groupA/my_car.zip" -> "my_car") + filename=$(basename -- "$archive") + car_name="${filename%.*}" + + echo "--------------------------------------" + echo "Processing: $car_name" + + # # Create a temp directory for extraction + # temp_dir=$(mktemp -d) + + # # 3. Extract contents + # # -y: assume yes on all queries + # # -o: output directory (no space after -o) + # 7z x "$archive" -o"$temp_dir" -y > /dev/null + + # # 4. FILTERING LOGIC (The "Server" optimization) + # echo "Cleaning up unnecessary server files..." + + # # Remove heavy textures and previews (recursive) + # find "$temp_dir" -type f \( -name "*.png" -o -name "*.jpg" -o -name "*.jpeg" -o -name "*.dds" -o -name "*.kn5" -o -name "*.bmp" \) -delete + + # # Remove the 'physics/csp' folder if standard physics are preferred (Optional - comment out if needed) + # # rm -rf "$temp_dir/physics/csp" + + # # 5. Move to final Server Directory + # target_dir="$DEST_ROOT/$car_name" + + # # Clean old version if exists + # if [ -d "$target_dir" ]; then + # rm -rf "$target_dir" + # fi + # mkdir -p "$target_dir" + + # # Move files + # cp -r "$temp_dir"/* "$target_dir"/ + + # # Cleanup temp + # rm -rf "$temp_dir" + + echo "โœ… Installed to: $target_dir" + done + + - name: Verify Installation + run: | + echo "๐Ÿ“Final Server Directory Structure:" + # Show directory tree 3 levels deep to verify structure without spamming files + find ./server-data -maxdepth 3 -not -path '*/.*' diff --git a/cars/RSS/_RSS_Settings_25-07-25-MUST-INSTALL.rar b/cars/RSS/_RSS_Settings_25-07-25-MUST-INSTALL.rar new file mode 100644 index 0000000..103e5d8 --- /dev/null +++ b/cars/RSS/_RSS_Settings_25-07-25-MUST-INSTALL.rar @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1fd5737b6eb0549fa67265e7c88c39e83f5e3ab6bf60cebea5522cf9df389ac1 +size 116069 diff --git a/cars/RSS/rss_gtm_adonis_v8_evo.7z b/cars/RSS/rss_gtm_adonis_v8_evo.7z new file mode 100644 index 0000000..378ebe8 --- /dev/null +++ b/cars/RSS/rss_gtm_adonis_v8_evo.7z @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b48e745ba12a4c1d5efd4f6f729fc3ff1ce8b6b3a78c1d20cd64072db44e9f1 +size 264952349 diff --git a/cars/RSS/rss_gtm_aero_v10_evo2.7z b/cars/RSS/rss_gtm_aero_v10_evo2.7z new file mode 100644 index 0000000..c28f976 --- /dev/null +++ b/cars/RSS/rss_gtm_aero_v10_evo2.7z @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:862957f22aa161cfafee747622b333eb22fbb45bcdd70128a958ef9950b53c1f +size 237290754 diff --git a/cars/RSS/rss_gtm_furiano_96_v6.7z b/cars/RSS/rss_gtm_furiano_96_v6.7z new file mode 100644 index 0000000..9c9b650 --- /dev/null +++ b/cars/RSS/rss_gtm_furiano_96_v6.7z @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b78c742cb5c1803f00e4c9b6796d913d89d1f0224cf3fc5e33b53445a0b525a5 +size 529086766 diff --git a/cars/RSS/rss_gtm_hyperion_v8.7z b/cars/RSS/rss_gtm_hyperion_v8.7z new file mode 100644 index 0000000..93fe38a --- /dev/null +++ b/cars/RSS/rss_gtm_hyperion_v8.7z @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:268cb22fc15cffde472292a687f0577565d344ea9deb6cb8472011292fe46a66 +size 274506606 diff --git a/cars/RSS/rss_gtm_lanzo_v10_evo2.7z b/cars/RSS/rss_gtm_lanzo_v10_evo2.7z new file mode 100644 index 0000000..7244ae9 --- /dev/null +++ b/cars/RSS/rss_gtm_lanzo_v10_evo2.7z @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a3af68f04d45f68dbe9546e1ab5aac7fa1348ad54be7a5aed8192a482417cd7d +size 153064612 diff --git a/cars/RSS/rss_gtm_lux_v8.7z b/cars/RSS/rss_gtm_lux_v8.7z new file mode 100644 index 0000000..e4fca62 --- /dev/null +++ b/cars/RSS/rss_gtm_lux_v8.7z @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1e6711248e97444532384688c50368e4b8b2478e9b6d149779d681a0b76a625d +size 391795557 diff --git a/cars/RSS/rss_gtm_macca_72_evo_v8.7z b/cars/RSS/rss_gtm_macca_72_evo_v8.7z new file mode 100644 index 0000000..73780cc --- /dev/null +++ b/cars/RSS/rss_gtm_macca_72_evo_v8.7z @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:36b24f3cc5ae0a2aeda3486c95311400b7fafe62347610e4818ef4f6b5b07dd4 +size 221254192 diff --git a/cars/RSS/rss_gtm_mercer_v8.7z b/cars/RSS/rss_gtm_mercer_v8.7z new file mode 100644 index 0000000..6e6e311 --- /dev/null +++ b/cars/RSS/rss_gtm_mercer_v8.7z @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1df34b612e196cdd60bbf901c8551b093e45c82dd42807642b37eaa2a44f9ebf +size 264454098 diff --git a/cars/RSS/rss_gtm_protech_p92_f6.7z b/cars/RSS/rss_gtm_protech_p92_f6.7z new file mode 100644 index 0000000..34dafa8 --- /dev/null +++ b/cars/RSS/rss_gtm_protech_p92_f6.7z @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:22421a39ea48f3efde16b10be20dc1cfc1e6330393fb60d1266cdab9dad4b7fe +size 794824080 diff --git a/convert.ts b/convert.ts new file mode 100644 index 0000000..e69de29