-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_SPREDeditor_only.sh
46 lines (45 loc) · 1.23 KB
/
build_SPREDeditor_only.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
#!/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 ./SPRED_test_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 ../SPRED_test_editor.sdz *
#remove tmp folder
cd ..
rm -rf ./build_editor_tmp
#==================