-
Notifications
You must be signed in to change notification settings - Fork 14
/
analyze.sh
executable file
·50 lines (36 loc) · 1.07 KB
/
analyze.sh
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
#!/usr/bin/env bash
# Usage: ./analyze.sh
#
# Analyzes all builds present in `vendor/depots` listing Unity Engine version and plugin hashes.
# Any unzipped Linux versions in `research/PlayFabParty` and `research/Steamworks.NET` are also analyzed.
#
shopt -s nullglob
for build in ./vendor/depots/892971/*; do
echo "Valheim Build $(basename "$build")"
echo " Unity Engine: $(strings "$build"/valheim_Data/level0 | head -n 1)"
echo " Plugins:"
for plugin in "$build"/valheim_Data/Plugins/*.so; do
echo " $(basename "$plugin"): $(md5 -q "$plugin")"
done
echo
done
if [ -d ./research/PlayFabParty ]; then
echo '---'
echo
for version in ./research/PlayFabParty/*; do
basename "$version"
lib="$version/linux/x64/Release/libparty.so"
echo " $(basename "$lib"): $(md5 -q "$lib")"
echo
done
fi
if [ -d ./research/Steamworks.NET ]; then
echo '---'
echo
for version in ./research/Steamworks.NET/*; do
basename "$version"
lib="$version/OSX-Linux-x64/libsteam_api.so"
echo " $(basename "$lib"): $(md5 -q "$lib")"
echo
done
fi