-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrelease.sh
More file actions
executable file
·33 lines (27 loc) · 914 Bytes
/
release.sh
File metadata and controls
executable file
·33 lines (27 loc) · 914 Bytes
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
#!/bin/bash
# Skred Release Script - Linux & Windows Only
VERSION="1.2.0"
TARGETS=("x86_64-linux" "x86_64-windows")
echo "--- Cleaning old builds ---"
rm -rf zig-out
rm -rf .zig-cache
for TARGET in "${TARGETS[@]}"; do
echo "--- Building for $TARGET ---"
if [[ "$TARGET" == "x86_64-linux" ]]; then
# NATIVE BUILD: This is the ONLY way it finds your local libasound
echo "Running native Linux build (finding system ALSA)..."
zig build zip -Dversion=$VERSION
else
# WINDOWS CROSS BUILD: Zig handles this natively without extra SDKs
echo "Cross-compiling for $TARGET..."
zig build zip -Dtarget=$TARGET -Dversion=$VERSION
fi
if [ $? -eq 0 ]; then
echo "Successfully created zip for $TARGET"
else
echo "Failed to build for $TARGET"
exit 1
fi
done
echo "--- All releases completed ---"
ls -lh zig-out/*.zip