-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathobjects.sh
More file actions
executable file
·54 lines (43 loc) · 1.01 KB
/
objects.sh
File metadata and controls
executable file
·54 lines (43 loc) · 1.01 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
# A simple script to download all the object files from the latest release (not nightly.)
version=0.22
rm -rf objects
mkdir -p objects/3ds
mkdir -p objects/wiiu
mkdir -p objects/wii
mkdir -p objects/switch
mkdir -p objects/vita
mkdir -p objects/gamecube
rm -rf ScratchEverywhere
git clone -b $version https://github.com/ScratchEverywhere/ScratchEverywhere
cd ScratchEverywhere
# Graphics
cp -r gfx/ ../gfx
# 3DS
echo 3DS...
make PLATFORM=3ds
cp build/3ds/*.o ../objects/3ds/
# Wii U
echo Wii U...
make PLATFORM=wiiu
cp build/wiiu/*.o ../objects/wiiu/
# Wii
echo Wii...
make PLATFORM=wii
cp build/wii/*.o ../objects/wii/
# Switch
echo Switch...
make PLATFORM=switch
cp build/switch/*.o ../objects/switch/
# Vita
echo Vita...
make PLATFORM=vita
find build/vita -name "*.o" -print0 | while IFS= read -r -d $'\0' file; do
echo "Copying $file..."
cp "$file" "../objects/vita/$(basename "$file")"
done
# GameCube
echo GameCube...
make PLATFORM=gamecube
cp build/gamecube/*.o ../objects/gamecube/
cd ..
rm -rf ScratchEverywhere