-
-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathenv.sh
More file actions
executable file
·26 lines (23 loc) · 670 Bytes
/
env.sh
File metadata and controls
executable file
·26 lines (23 loc) · 670 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
#!/bin/bash
WINDSEND_PROJECT_PATH=$(pwd)
export WINDSEND_PROJECT_PATH
function backToProjectRoot() {
cd "$WINDSEND_PROJECT_PATH" || exit
}
TheVariableIsTrue() {
local var="$1"
local lowercase_var
lowercase_var=$(echo "$var" | tr '[:upper:]' '[:lower:]')
if [ "$lowercase_var" = "true" ]; then
return 0
else
return 1
fi
}
export WINDSEND_FLUTTER_PATH="./flutter/wind_send"
export WINDSEND_GO_PROJECT_PATH="./go"
export WINDSEND_RUST_PROJECT_PATH="./windSend-rs"
export SERVER_PROGRAM_ICON_NAME="icon-192.png"
BUILD_TAG=$(git tag --sort=-creatordate | head -n 1 || echo 'unknown')
export BUILD_TAG
# export CI_RUNNING="true"