mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-10 03:30:39 +03:00
16 lines
449 B
Bash
16 lines
449 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
if [[ "${#SE_BUILD_NUMBER_TOKEN}" -eq 64 ]]; then
|
||
|
VERSION=$(python3 "version.py")
|
||
|
BUILD_NUMBER=$(curl "https://softether.network/get-build-number?commit=${BUILD_SOURCEVERSION}&version=${VERSION}&token=${SE_BUILD_NUMBER_TOKEN}")
|
||
|
else
|
||
|
BUILD_NUMBER=0
|
||
|
fi
|
||
|
|
||
|
cd ${BUILD_BINARIESDIRECTORY}
|
||
|
|
||
|
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_NUMBER=${BUILD_NUMBER} ${BUILD_SOURCESDIRECTORY}
|
||
|
cmake --build .
|
||
|
|
||
|
cpack -C Release -G DEB
|