forked from Webreaper/Damselfly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakeall.sh
35 lines (26 loc) · 765 Bytes
/
makeall.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
# Valid platforms are 'mac', 'windows' and 'linux'
if [ -n "$1" ]; then
PLATFORM=$1
else
echo 'No platform specified. Defaulting to mac.'
PLATFORM='mac'
fi
echo "Building Damselfly for ${PLATFORM}..."
# bump version
docker run --rm -v "$PWD":/app treeder/bump $RELEASE
version=`cat VERSION`
echo "\nGenerating new version: $version"
rm Damselfly.Web/wwwroot/desktop/*.*
rm server/*.*
# Make the desktop Electron app (now done in the dockerfile)
sh scripts/makedesktop.sh $PLATFORM
# Create the non-docker versions
sh scripts/makeserver.sh $PLATFORM
mkdir publish
cd publish
rm *.*
unzip -o ../server/*.zip
cd ..
# Create the docker versions. Pass 'master' here to build a real version
sh scripts/makedocker.sh
echo "Damselfly build complete."