summaryrefslogtreecommitdiff
path: root/archived/projt-launcher/ci/update-pinned.sh
blob: 105238e2a4f992e67bc25b7718d084aa430eb5b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env bash
# ProjT Launcher - Update pinned dependency versions
# Updates ci/pinned.json with current recommended versions

set -euo pipefail

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PINNED_FILE="$SCRIPT_DIR/pinned.json"

echo "Updating ProjT Launcher pinned dependencies..."

# Get current date
CURRENT_DATE=$(date +%Y-%m-%d)

# Create updated pinned.json
cat > "$PINNED_FILE" << EOF
{
  "dependencies": {
    "cmake": {
      "version": "3.28.0",
      "description": "Build system"
    },
    "qt6": {
      "version": "6.7.0",
      "description": "Qt framework for UI"
    },
    "gcc": {
      "version": "13.2.0",
      "description": "GCC compiler"
    },
    "clang": {
      "version": "17.0.0",
      "description": "Clang compiler"
    },
    "ninja": {
      "version": "1.11.1",
      "description": "Fast build system"
    },
    "gtest": {
      "version": "1.14.0",
      "description": "Google Test framework"
    }
  },
  "platforms": {
    "linux": {
      "runner": "ubuntu-24.04",
      "compiler": "gcc"
    },
    "macos": {
      "runner": "macos-14",
      "compiler": "clang"
    },
    "windows": {
      "runner": "windows-2022",
      "compiler": "msvc"
    }
  },
  "version": 1,
  "updated": "$CURRENT_DATE"
}
EOF

echo "Updated $PINNED_FILE"
echo "Date: $CURRENT_DATE"