mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 03:59:23 +00:00
28 lines
822 B
Bash
Executable file
28 lines
822 B
Bash
Executable file
#!/bin/bash
|
|
|
|
CAKEWALLET="cakewallet"
|
|
CAKEWALLET_FLATPAK="cakewallet-flatpak"
|
|
DIR=`pwd`
|
|
|
|
if [ -z "$APP_LINUX_TYPE" ]; then
|
|
echo "Please set APP_LINUX_TYPE"
|
|
exit 1
|
|
fi
|
|
|
|
cd ../.. # go to root
|
|
CONFIG_ARGS=""
|
|
|
|
case $APP_LINUX_TYPE in
|
|
$CAKEWALLET)
|
|
CONFIG_ARGS="--monero --bitcoin --ethereum --polygon --nano --bitcoinCash --excludeFlutterSecureStorage";;
|
|
$CAKEWALLET_FLATPAK)
|
|
CONFIG_ARGS="--monero --bitcoin --ethereum --polygon --nano --bitcoinCash --excludeFlutterSecureStorage --flatpak";;
|
|
esac
|
|
|
|
cp -rf pubspec_description.yaml pubspec.yaml
|
|
flutter pub get
|
|
flutter pub run tool/generate_pubspec.dart
|
|
flutter pub get
|
|
flutter packages pub run tool/configure.dart $CONFIG_ARGS
|
|
sed -i '0,/version: 0.0.0/s//version: '"${APP_LINUX_VERSION}"'+'"${APP_LINUX_BUILD_NUMBER}"'/' pubspec.yaml
|
|
cd $DIR
|