forked from LeagueToolkit/cslol-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake-release.sh
More file actions
executable file
·28 lines (23 loc) · 870 Bytes
/
make-release.sh
File metadata and controls
executable file
·28 lines (23 loc) · 870 Bytes
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
#!/bin/bash
copy2folder() {
mkdir -p "$2/cslol-tools"
cp "./dist/"*.bat "$2/cslol-tools"
cp "./dist/FIX-ADMIN.reg" "$2"
cp "./dist/FIX-NON-ENGLISH.reg" "$2"
cp "./dist/SOURCE.URL" "$2"
cp "./LICENSE" "$2"
cp "$1/cslol-tools/"*.exe "$2/cslol-tools"
cp "$1/cslol-manager.exe" "$2"
echo "windeployqt is only necessary for non-static builds"
windeployqt --qmldir "src/qml" "$2/cslol-manager.exe"
curl -N -R -L -o "$2/cslol-tools/hashes.game.txt" "https://raw.githubusercontent.com/CommunityDragon/CDTB/master/cdragontoolbox/hashes.game.txt"
}
VERSION=$(git log --date=short --format="%ad-%h" -1)
echo "Version: $VERSION"
if [ "$#" -gt 0 ] && [ -d "$1" ]; then
copy2folder "$1" "cslol-manager"
echo "Version: $VERSION" > "cslol-manager/version.txt"
else
echo "Error: Provide at least one valid path."
exit
fi;