cake_wallet/scripts/linux/app_env.sh

38 lines
831 B
Bash
Raw Normal View History

2023-01-19 23:14:46 +00:00
#!/bin/sh
APP_LINUX_NAME=""
APP_LINUX_VERSION=""
APP_LINUX_BUILD_VERSION=""
CAKEWALLET="cakewallet"
CAKEWALLET_FLATPAK="cakewallet-flatpak"
2023-01-19 23:14:46 +00:00
TYPES=($CAKEWALLET $CAKEWALLET_FLATPAK)
APP_LINUX_TYPE=$1
2023-01-19 23:14:46 +00:00
if ! [[ " ${TYPES[*]} " =~ " ${APP_LINUX_TYPE} " ]]; then
echo ${TYPES[*]}
echo ${APP_LINUX_TYPE}
exit 1
2023-01-19 23:14:46 +00:00
fi
CAKEWALLET_NAME="Cake Wallet"
2024-01-28 03:06:08 +00:00
CAKEWALLET_VERSION="1.4.1"
CAKEWALLET_BUILD_NUMBER=14
2023-01-19 23:14:46 +00:00
case $APP_LINUX_TYPE in
$CAKEWALLET)
APP_LINUX_NAME=$CAKEWALLET_NAME
APP_LINUX_VERSION=$CAKEWALLET_VERSION
APP_LINUX_BUILD_NUMBER=$CAKEWALLET_BUILD_NUMBER;;
$CAKEWALLET_FLATPAK)
2023-01-19 23:14:46 +00:00
APP_LINUX_NAME=$CAKEWALLET_NAME
APP_LINUX_VERSION=$CAKEWALLET_VERSION
APP_LINUX_BUILD_NUMBER=$CAKEWALLET_BUILD_NUMBER;;
esac
export APP_LINUX_TYPE
export APP_LINUX_NAME
export APP_LINUX_VERSION
export APP_LINUX_BUILD_NUMBER