-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakerelease.sh
More file actions
executable file
·47 lines (33 loc) · 869 Bytes
/
makerelease.sh
File metadata and controls
executable file
·47 lines (33 loc) · 869 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
VERSION=1.0.0
TARGETS=( win-x64 linux-x64 linux-arm osx-x64 )
cd "$(dirname "$0")"
rm -rf publish
mkdir publish
cd publish
# -> Build standard version
targetname="malias-${VERSION}"
mkdir -p "$targetname"
BuildVersion=$VERSION \
dotnet publish \
-o $targetname \
-c Release \
../maliasmgr.csproj
rm ${targetname}/malias
find "$targetname" -name *.pdb -exec rm -f {} \;
zip "${targetname}.zip" -r "${targetname}"
# -> Build Portable versions
for target in "${TARGETS[@]}"
do
targetname="malias-${VERSION}-portable-${target}"
mkdir -p "$targetname"
BuildVersion=$VERSION \
dotnet publish \
--self-contained \
-o $targetname \
-r $target \
-c Release \
../maliasmgr.csproj
find "$targetname" -name *.pdb -exec rm -f {} \;
zip "${targetname}.zip" -r "${targetname}"
done