-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_SPREDlauncher.sh
67 lines (65 loc) · 1.74 KB
/
build_SPREDlauncher.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
#Build player archive
#==================
#remove existing player archive
rm ./game.sdz
#make temporary directory
mkdir ./build_player_tmp
#import player src
cp -r ./player/* ./build_player_tmp
#import chili src
mkdir -p ./build_player_tmp/LuaUI/Widgets
cp -r ./usefullFiles/chili_src/* ./build_player_tmp/LuaUI/Widgets
#import others dependencies
cp -r ./usefullFiles/commonFiles/* ./build_player_tmp
#build player archive
cd build_player_tmp
zip -r ../game.sdz *
#remove tmp folder
cd ..
rm -rf ./build_player_tmp
#==================
#Build editor archive
#==================
#remove existing editor archive
rm ./editor.sdz
#make temporary directory
mkdir ./build_editor_tmp
#import editor src
cp -r ./editor/* ./build_editor_tmp
#import chili src
mkdir -p ./build_editor_tmp/LuaUI/Widgets
cp -r ./usefullFiles/chili_src/* ./build_editor_tmp/LuaUI/Widgets
#import others dependencies
cp -r ./usefullFiles/commonFiles/* ./build_editor_tmp
#import ModInfo file
cp ./usefullFiles/FilesForStandaloneEditor/ModInfo.lua ./build_editor_tmp
#import game archive
cp ./game.sdz ./build_editor_tmp
#build editor archive
cd ./build_editor_tmp
zip -r ../editor.sdz *
#remove tmp folder
cd ..
rm -rf ./build_editor_tmp
#==================
#Build launcher archive
#==================
#remove existing editor archive
rm ./SPRED_Launcher.sdz
#make temporary directory
mkdir ./build_launcher_tmp
#import launcher src
cp -r ./launcher/* ./build_launcher_tmp
#import chili src
mkdir -p ./build_launcher_tmp/LuaUI/Widgets
cp -r ./usefullFiles/chili_src/* ./build_launcher_tmp/LuaUI/Widgets
#import editor archive
mv ./editor.sdz ./build_launcher_tmp
#build archive
cd ./build_launcher_tmp
zip -r ../SPRED_Launcher.sdz *
#remove tmp folder
cd ..
rm -rf build_launcher_tmp
#==================