-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
71 lines (69 loc) · 2.33 KB
/
Copy pathbuild.sh
File metadata and controls
71 lines (69 loc) · 2.33 KB
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
65
66
67
68
69
70
71
#!/bin/bash
echo "3DS Random Game Launcher Build Script"
echo "====================================="
case "$1" in
"debug")
echo "Building DEBUG version..."
make DEBUG=1
if [ $? -eq 0 ]; then
echo ""
echo "DEBUG build completed successfully!"
echo "Debug features enabled:"
echo "- Verbose debug output"
echo "- Additional title information"
echo "- No optimization for easier debugging"
echo ""
echo "Output files are in the dist/ directory (semver from VERSION file)."
else
echo ""
echo "DEBUG build failed!"
echo "Please check the error messages above."
fi
;;
"release")
echo "Building RELEASE version..."
make
if [ $? -eq 0 ]; then
echo ""
echo "RELEASE build completed successfully!"
echo "Optimized for performance and smaller size."
echo ""
echo "Output files are in the dist/ directory (semver from VERSION file)."
else
echo ""
echo "RELEASE build failed!"
echo "Please check the error messages above."
fi
;;
"clean")
echo "Cleaning build files..."
make clean
echo "Clean completed."
;;
"list")
echo "Listing available builds..."
if [ -d "dist" ]; then
echo ""
echo "Available builds in dist/:"
ls -la dist/*.3dsx 2>/dev/null || echo "No builds found in dist/ directory."
else
echo "No dist/ directory found."
fi
;;
"banners")
bash meta/banner-src/build.sh
;;
*)
echo "Usage: ./build.sh [debug|release|banners|clean|list]"
echo ""
echo "debug - Build with debug features enabled"
echo "release - Build optimized release version"
echo "banners - Regenerate meta/banner*.png from meta/banner-src/ (needs: pip install pillow)"
echo "clean - Clean build files and dist directory"
echo "list - List available builds in dist/ directory"
echo ""
echo "If no parameter is provided, this help is shown."
echo ""
echo "Builds use the version in VERSION and are saved to dist/ directory."
;;
esac