forked from pterodactyl/panel
-
Notifications
You must be signed in to change notification settings - Fork 32
/
release.sh
executable file
·41 lines (28 loc) · 683 Bytes
/
release.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
start=`date +%s`
# Build the panel
yarn build:production
# Mkdir and cd to tmp
mkdir tmp
cd tmp/
# Clone the repo
git clone https://github.com/Nookure/NookTheme.git
cd NookTheme
# Remove the .git folder
rm -rf .git
# Copy the Compiled files
cp -r ../../public .
# Create the tar and zip files
tar -czvf ./NookTheme.tar.gz .
zip -r ./NookTheme.zip .
rm -rf ../../release/*
# Create releases folder if it doesn't exist
mkdir ../../release
# Move the files to releases
mv ./NookTheme.tar.gz ../../release/panel.tar.gz
mv ./NookTheme.zip ../../release/panel.zip
# Remove the tmp folder
cd ../../
rm -rf tmp/
end=`date +%s`
# Done
echo "Build in `expr $end - $start` seconds"