mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 20:09:23 +00:00
81 lines
No EOL
2.5 KiB
Bash
Executable file
81 lines
No EOL
2.5 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
set -x -e
|
|
|
|
# Configure files for Stack Wallet.
|
|
|
|
export NEW_NAME="Stack Wallet"
|
|
export NEW_APP_ID="com.cypherstack.stackwallet"
|
|
export NEW_APP_ID_CAMEL="com.cypherstack.stackWallet"
|
|
export NEW_APP_ID_SNAKE="com.cypherstack.stack_wallet"
|
|
export NEW_BASIC_NAME="stack_wallet"
|
|
|
|
NEW_PUBSPEC_NAME="stackwallet"
|
|
PUBSPEC_FILE="${APP_PROJECT_ROOT_DIR}/pubspec.yaml"
|
|
|
|
# String replacements.
|
|
if [[ "$(uname)" == 'Darwin' ]]; then
|
|
# macos specific sed
|
|
sed -i '' "s/name: PLACEHOLDER/name: ${NEW_PUBSPEC_NAME}/g" "${PUBSPEC_FILE}"
|
|
sed -i '' "s/description: PLACEHOLDER/description: ${NEW_NAME}/g" "${PUBSPEC_FILE}"
|
|
else
|
|
sed -i "s/name: PLACEHOLDER/name: ${NEW_PUBSPEC_NAME}/g" "${PUBSPEC_FILE}"
|
|
sed -i "s/description: PLACEHOLDER/description: ${NEW_NAME}/g" "${PUBSPEC_FILE}"
|
|
fi
|
|
|
|
pushd "${APP_PROJECT_ROOT_DIR}"
|
|
BUILT_COMMIT_HASH=$(git log -1 --pretty=format:"%H")
|
|
popd
|
|
|
|
APP_CONFIG_DART_FILE="${APP_PROJECT_ROOT_DIR}/lib/app_config.g.dart"
|
|
rm -f "$APP_CONFIG_DART_FILE"
|
|
cat << EOF > "$APP_CONFIG_DART_FILE"
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'app_config.dart';
|
|
|
|
const _prefix = "Stack";
|
|
const _separator = " ";
|
|
const _suffix = "Wallet";
|
|
const _appDataDirName = "stackwallet";
|
|
const _commitHash = "$BUILT_COMMIT_HASH";
|
|
|
|
const Set<AppFeature> _features = {
|
|
AppFeature.themeSelection,
|
|
AppFeature.buy,
|
|
AppFeature.swap
|
|
};
|
|
|
|
const ({String light, String dark})? _appIconAsset = null;
|
|
|
|
final List<CryptoCurrency> _supportedCoins = List.unmodifiable([
|
|
Bitcoin(CryptoCurrencyNetwork.main),
|
|
Monero(CryptoCurrencyNetwork.main),
|
|
Banano(CryptoCurrencyNetwork.main),
|
|
Bitcoincash(CryptoCurrencyNetwork.main),
|
|
BitcoinFrost(CryptoCurrencyNetwork.main),
|
|
Dogecoin(CryptoCurrencyNetwork.main),
|
|
Ecash(CryptoCurrencyNetwork.main),
|
|
Epiccash(CryptoCurrencyNetwork.main),
|
|
Ethereum(CryptoCurrencyNetwork.main),
|
|
Firo(CryptoCurrencyNetwork.main),
|
|
Litecoin(CryptoCurrencyNetwork.main),
|
|
Nano(CryptoCurrencyNetwork.main),
|
|
Namecoin(CryptoCurrencyNetwork.main),
|
|
Particl(CryptoCurrencyNetwork.main),
|
|
Peercoin(CryptoCurrencyNetwork.main),
|
|
Solana(CryptoCurrencyNetwork.main),
|
|
Stellar(CryptoCurrencyNetwork.main),
|
|
Tezos(CryptoCurrencyNetwork.main),
|
|
Wownero(CryptoCurrencyNetwork.main),
|
|
Bitcoin(CryptoCurrencyNetwork.test),
|
|
BitcoinFrost(CryptoCurrencyNetwork.test),
|
|
Litecoin(CryptoCurrencyNetwork.test),
|
|
Bitcoincash(CryptoCurrencyNetwork.test),
|
|
Firo(CryptoCurrencyNetwork.test),
|
|
Dogecoin(CryptoCurrencyNetwork.test),
|
|
Stellar(CryptoCurrencyNetwork.test),
|
|
Peercoin(CryptoCurrencyNetwork.test),
|
|
]);
|
|
|
|
EOF |