forked from RobertBeckebans/RBDOOM-3-BFG
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzip-RBDOOM-3-BFG-release.sh
More file actions
47 lines (33 loc) · 1.43 KB
/
Copy pathzip-RBDOOM-3-BFG-release.sh
File metadata and controls
47 lines (33 loc) · 1.43 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
#!/bin/bash
# Get current date in yyyymmdd format
date_string=$(date +"%Y%m%d")
# Get first 7 characters of the git hash
git_hash=$(git rev-parse --short=7 HEAD)
buildversion="1.6.0.22"
filename="RBDOOM-3-BFG-${buildversion}-lite-win64-${date_string}-git-${git_hash}.7z"
# Copy the base file to the new filename
cp "RBDOOM-3-BFG-1.6.0.x-lite-win64-yyyymmdd-git-xxxxxxx.7z" "$filename"
# Copy necessary files
cp build/Release/RBDoom3BFG.exe .
cp build/tools/compilers/release/rbdmap.exe .
# Add files to the archive
7z a "$filename" RBDoom3BFG.exe rbdmap.exe
7z a "$filename" README.md RELEASE-NOTES.md LICENSE.md LICENSE_EXCEPTIONS.md \
base/*.cfg base/materials/*.mtr \
base/textures/common base/textures/editor \
base/maps/zoomaps -x!generated -xr!autosave -xr!*.xcf -xr!*.blend
#7z a "$filename" base/maps/game/*_extra_ents.map
7z a "$filename" base/renderprogs2/
7z a "$filename" base/_tb/fgd/*.fgd
7z a "$filename" base/_tb/ -xr!*.png -xr!*.tga
7z a "$filename" base/_bl/*.json
7z a "$filename" base/_rbdoom_blood.pk4
7z a "$filename" base/_rbdoom_core.pk4
7z a "$filename" tools/trenchbroom -xr!TrenchBroom-nomanual* -xr!TrenchBroom.pdb
7z a "$filename" tools/optick-profiler
# Extend to full version
fullname="RBDOOM-3-BFG-${buildversion}-full-win64-${date_string}-git-${git_hash}.7z"
cp "$filename" "$fullname"
7z a "$fullname" base/_rbdoom_global_illumination_data.pk4
# Pause for user input
#read -p "Press any key to exit..."