forked from 7Cav/cScripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·38 lines (27 loc) · 1.19 KB
/
deploy.sh
File metadata and controls
executable file
·38 lines (27 loc) · 1.19 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
#!/bin/bash
set -e
VERSION_TAG=$*
mkdir -p release/
sed -i "s/#define VERSION.*/#define VERSION \"${VERSION_TAG}\"/" cScripts/script_component.hpp
sed -i "s/DevBuild/${VERSION_TAG}/" tools/config.json
cp cba_settings.sqf release/cba_settings.sqf
python3 tools/build.py --deploy
# Special Builds
python3 tools/build.py --build config_debug.json --deploy
python3 tools/build.py --build config_noLoadouts.json --deploy
python3 tools/build.py --build config_noRadio.json --deploy
sed -i "s/DEVBUILD/v${VERSION_TAG}/g" Compositions/*/header.sqe
# Make a patch release
#set +e # allow fail
#PREV_TAG=$(git describe --abbrev=0 --tags `git rev-list --tags --skip=1 --max-count=1`)
#echo "Creating patch build for ${PREV_TAG} to ${VERSION_TAG}"
#git diff --name-only ${PREV_TAG} ${VERSION_TAG} > pre_changed_file_list.txt
#sed '/tools/d;/Compositions/d;/resourses/d;/^\.\(.*\)/d' pre_changed_file_list.txt > changed_file_list.txt
#zip release/cScripts_PATCH_v${PREV_TAG}_to_v${VERSION_TAG}.zip -@ < changed_file_list.txt
#set -e
# Pack Compositions
cd Compositions
zip ../release/Compositions-${VERSION_TAG}.zip -r .
# Disabled
#chmod +x ./tools/build_settings_config.sh
#./tools/build_settings_config.sh $VERSION_TAG