mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
Avoids any confusion / potential trademark friction with HashWallet
(Spanish hardware-wallet company). Hash Bags is a more distinctive
name, harder to collide with, and we can still rank for 'hash wallet'
search via App Store / Play Store subtitle ('Hash Bags - A Wallet
for your Coins').
What changed (all user-visible strings):
- Launcher labels: android/app.properties, scripts/android/app_env.sh,
scripts/ios/app_env.sh, linux window title (CMakeLists +
my_application.cc)
- In-app text: lib/generated/i18n.dart + ARB sources under res/values/
- Brand docs: README.md, CONTRIBUTING.md, PRIVACY.md,
assets/text/Terms_of_Use.txt, assets/text/Release_Notes.txt
- hash.boats website: index.html, og-image.svg + regen og-image.png,
site.webmanifest, styles.css comment, splash/confirm/pulse/mark/
lockup svg titles, report/index.html, server/server.js
- CI workflow display names ("Hash Bags Linux build", etc.)
What did NOT change (deliberate):
- Bundle ID / Package: com.suchsoftware.hashwallet (immutable app
identity on App Store + Play Store — changing == orphaning the app)
- Binary name: hash_wallet (Linux executable)
- Dart import paths: package:hash_wallet/...
- Git repo: hash-wallet (Such-Software/hash-wallet)
- URL scheme: hashwallet:// (internal deep links)
- support@such.software (no domain change yet)
- App Store / Play Store listing names (whatever was registered there
stays; we updated launcher label only)
- hash.boats domain (still the wallet site)
Also kept the '#ash Wallet' wordplay in the nav but updated to
'#ash Bags' so the # mark still serves as the H. Nav reads:
[# mark] #ash Bags
Website hero tagline now matches the App Store sub-title concept:
'A wallet for your coins. Open-source, non-custodial, multi-chain.
Privacy-leaning by default.'
108 files modified, ~674 string replacements.
99 lines
2.5 KiB
Bash
Executable File
99 lines
2.5 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# build_hash_release.sh - Script to build Hash Bags for Linux
|
|
# Usage: ./build_hash_release.sh --amd64 [--arm64] [--app=cakewallet|monero.com]
|
|
|
|
set -e
|
|
|
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
cd "$SCRIPT_DIR"
|
|
|
|
|
|
# Default values
|
|
BUILD_AMD64=false
|
|
BUILD_ARM64=false
|
|
APP_TYPE="cakewallet"
|
|
DOCKER_IMAGE="ghcr.io/cake-tech/cake_wallet:debian13-flutter3.32.0-ndkr28-go1.24.1-ruststablenightly"
|
|
|
|
# Parse arguments
|
|
for arg in "$@"
|
|
do
|
|
case $arg in
|
|
--amd64)
|
|
BUILD_AMD64=true
|
|
shift
|
|
;;
|
|
--arm64)
|
|
BUILD_ARM64=true
|
|
shift
|
|
;;
|
|
--app=*)
|
|
APP_TYPE="${arg#*=}"
|
|
shift
|
|
;;
|
|
*)
|
|
echo "Unknown argument: $arg"
|
|
echo "Usage: ./build_hash_release.sh --amd64 [--arm64] [--app=cakewallet|monero.com]"
|
|
exit 1
|
|
;;
|
|
esac
|
|
done
|
|
|
|
cd ../..
|
|
|
|
# Validate arguments
|
|
if [[ "$BUILD_AMD64" == "false" && "$BUILD_ARM64" == "false" ]]; then
|
|
echo "Error: At least one architecture (--amd64 or --arm64) must be specified."
|
|
echo "Usage: ./build_hash_release.sh --amd64 [--arm64] [--app=cakewallet|monero.com]"
|
|
exit 1
|
|
fi
|
|
|
|
if [[ "$APP_TYPE" != "cakewallet" && "$APP_TYPE" != "monero.com" ]]; then
|
|
echo "Error: App type must be either 'cakewallet' or 'monero.com'"
|
|
echo "Usage: ./build_hash_release.sh --amd64 [--arm64] [--app=cakewallet|monero.com]"
|
|
exit 1
|
|
fi
|
|
|
|
# Function to build for a specific architecture
|
|
build_for_arch() {
|
|
local arch=$1
|
|
local flutter_arch=$2
|
|
echo "Building $APP_TYPE for Linux ($arch)"
|
|
|
|
docker run --privileged -v$(pwd):$(pwd) -w $(pwd) -i --rm --platform linux/$arch $DOCKER_IMAGE bash -x << EOF
|
|
set -x -e
|
|
pushd scripts
|
|
./gen_android_manifest.sh
|
|
popd
|
|
pushd scripts/linux
|
|
source ./app_env.sh $APP_TYPE
|
|
./app_config.sh
|
|
./build_monero_all.sh
|
|
popd
|
|
flutter clean
|
|
./model_generator.sh
|
|
dart run tool/generate_localization.dart
|
|
flutter build linux
|
|
rm -rf build/linux/current
|
|
cp -r build/linux/$flutter_arch build/linux/current
|
|
rm -rf .flatpak-builder
|
|
flatpak-builder --force-clean flatpak-build com.suchsoftware.HashWallet.yml
|
|
flatpak build-export export flatpak-build
|
|
flatpak build-bundle export build/linux/current/hash_wallet.flatpak com.suchsoftware.HashWallet
|
|
cp build/linux/current/hash_wallet.flatpak build/linux/$flutter_arch/
|
|
EOF
|
|
}
|
|
|
|
# Build for specified architectures
|
|
echo "Building $APP_TYPE for Linux"
|
|
if [[ "$BUILD_AMD64" == "true" ]]; then
|
|
build_for_arch "amd64" "x64"
|
|
fi
|
|
|
|
if [[ "$BUILD_ARM64" == "true" ]]; then
|
|
build_for_arch "arm64" "arm64"
|
|
fi
|
|
|
|
echo "Build process completed."
|