From 8e24be5d15874829f68d5361407e416798e171c3 Mon Sep 17 00:00:00 2001 From: jwinterm Date: Thu, 14 May 2026 08:35:01 -0400 Subject: [PATCH] Rename top-level scripts and Linux packaging to Hash Wallet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - configure_cake_wallet.sh -> configure_hash_wallet.sh - cakewallet.bat -> hashwallet.bat (and Hash Wallet.zip output, Build\Hash Wallet) - com.cakewallet.CakeWallet.yml -> com.suchsoftware.HashWallet.yml (Flatpak app-id changed) - linux/com.cakewallet.CakeWallet.desktop -> linux/com.suchsoftware.HashWallet.desktop - scripts/{macos,windows,linux}/cakewallet.sh -> hashwallet.sh - scripts/linux/build_cake_release.sh -> build_hash_release.sh (output is hash_wallet.flatpak) - README + docs/builds/{WINDOWS,LINUX}.md cross-refs updated The Flutter binary name 'cake_wallet' is intentionally retained — renaming the Dart project name would force ~all 'package:cake_wallet/...' imports to be rewritten and break upstream cherry-picks. --- README.md | 2 +- ...Wallet.yml => com.suchsoftware.HashWallet.yml | 8 ++++---- ...re_cake_wallet.sh => configure_hash_wallet.sh | 0 docs/builds/LINUX.md | 4 ++-- docs/builds/WINDOWS.md | 4 ++-- cakewallet.bat => hashwallet.bat | 8 ++++---- ...sktop => com.suchsoftware.HashWallet.desktop} | 4 ++-- ...ild_cake_release.sh => build_hash_release.sh} | 16 ++++++++-------- scripts/linux/{cakewallet.sh => hashwallet.sh} | 0 scripts/macos/{cakewallet.sh => hashwallet.sh} | 0 scripts/windows/{cakewallet.sh => hashwallet.sh} | 2 +- 11 files changed, 24 insertions(+), 24 deletions(-) rename com.cakewallet.CakeWallet.yml => com.suchsoftware.HashWallet.yml (80%) rename configure_cake_wallet.sh => configure_hash_wallet.sh (100%) rename cakewallet.bat => hashwallet.bat (90%) rename linux/{com.cakewallet.CakeWallet.desktop => com.suchsoftware.HashWallet.desktop} (74%) rename scripts/linux/{build_cake_release.sh => build_hash_release.sh} (78%) rename scripts/linux/{cakewallet.sh => hashwallet.sh} (100%) rename scripts/macos/{cakewallet.sh => hashwallet.sh} (100%) rename scripts/windows/{cakewallet.sh => hashwallet.sh} (87%) diff --git a/README.md b/README.md index 2482bf485..a6e02634b 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ Required Flutter version is pinned in `Dockerfile` (currently 3.32.0). Before th Then run the platform-specific configure script, e.g.: ```bash -APP_LINUX_TYPE=cakewallet ./configure_cake_wallet.sh linux +APP_LINUX_TYPE=cakewallet ./configure_hash_wallet.sh linux ``` ## Contributing diff --git a/com.cakewallet.CakeWallet.yml b/com.suchsoftware.HashWallet.yml similarity index 80% rename from com.cakewallet.CakeWallet.yml rename to com.suchsoftware.HashWallet.yml index 6a19c3dda..64419cfdf 100644 --- a/com.cakewallet.CakeWallet.yml +++ b/com.suchsoftware.HashWallet.yml @@ -1,4 +1,4 @@ -app-id: com.cakewallet.CakeWallet +app-id: com.suchsoftware.HashWallet runtime: org.freedesktop.Platform runtime-version: '24.08' sdk: org.freedesktop.Sdk @@ -21,13 +21,13 @@ modules: - "mkdir -p /app/bin" - "ln -s /app/cake_wallet/cake_wallet /app/bin/cake_wallet" - "mkdir -p /app/share/icons/hicolor/scalable/apps" - - "cp cakewallet_icon_180.png /app/share/icons/hicolor/scalable/apps/com.cakewallet.CakeWallet.png" + - "cp cakewallet_icon_180.png /app/share/icons/hicolor/scalable/apps/com.suchsoftware.HashWallet.png" - "mkdir -p /app/share/applications" - - "cp com.cakewallet.CakeWallet.desktop /app/share/applications" + - "cp com.suchsoftware.HashWallet.desktop /app/share/applications" sources: - type: dir path: build/linux/x64/release - type: file path: assets/images/cakewallet_icon_180.png - type: file - path: linux/com.cakewallet.CakeWallet.desktop + path: linux/com.suchsoftware.HashWallet.desktop diff --git a/configure_cake_wallet.sh b/configure_hash_wallet.sh similarity index 100% rename from configure_cake_wallet.sh rename to configure_hash_wallet.sh diff --git a/docs/builds/LINUX.md b/docs/builds/LINUX.md index 27bce5f14..5f3367ffc 100644 --- a/docs/builds/LINUX.md +++ b/docs/builds/LINUX.md @@ -51,9 +51,9 @@ cp -r build/linux/x64 build/linux/current # use line below if you are building on arm64 # cp -r build/linux/arm64 build/linux/current # If you want to build flatpak you need --privileged flag -flatpak-builder --force-clean flatpak-build com.cakewallet.CakeWallet.yml +flatpak-builder --force-clean flatpak-build com.suchsoftware.HashWallet.yml flatpak build-export export flatpak-build -flatpak build-bundle export build/linux/current/cake_wallet.flatpak com.cakewallet.CakeWallet +flatpak build-bundle export build/linux/current/hash_wallet.flatpak com.suchsoftware.HashWallet EOF ``` diff --git a/docs/builds/WINDOWS.md b/docs/builds/WINDOWS.md index 4fec78dc0..d56f1cdee 100644 --- a/docs/builds/WINDOWS.md +++ b/docs/builds/WINDOWS.md @@ -86,7 +86,7 @@ To configure the application, run the following: ```powershell exit -.\cakewallet.bat +.\hashwallet.bat ``` -After running the script above, you should get `Cake Wallet.zip` in the project's root directory which will contain `CakeWallet.exe` and other needed files for running the application. Now you can extract files from `Cake Wallet.zip` archive and run the application. +After running the script above, you should get `Hash Wallet.zip` in the project's root directory which will contain `cake_wallet.exe` (Flutter binary name retained from upstream) and other needed files for running the application. Now you can extract files from `Hash Wallet.zip` archive and run the application. diff --git a/cakewallet.bat b/hashwallet.bat similarity index 90% rename from cakewallet.bat rename to hashwallet.bat index 7469fa614..0d88226b2 100644 --- a/cakewallet.bat +++ b/hashwallet.bat @@ -1,7 +1,7 @@ @echo off set cw_win_app_config=--monero --bitcoin --ethereum --polygon --nano --bitcoinCash --wownero --dogecoin --base --arbitrum --bsc set cw_root=%cd% -set cw_archive_name=Cake Wallet.zip +set cw_archive_name=Hash Wallet.zip set cw_archive_path=%cw_root%\%cw_archive_name% set secrets_file_path=lib\.secrets.g.dart set release_dir=build\windows\x64\runner\Release @@ -43,9 +43,9 @@ copy /Y "%tools_root%\vcruntime140.dll" "%release_dir%\" > nul copy /Y "%tools_root%\vcruntime140_1.dll" "%release_dir%\" > nul echo === Generate the application archive === -xcopy /s /e /v /Y "%release_dir%\*.*" "build\Cake Wallet\" > nul -tar acf "%cw_archive_name%" -C build\ "Cake Wallet" +xcopy /s /e /v /Y "%release_dir%\*.*" "build\Hash Wallet\" > nul +tar acf "%cw_archive_name%" -C build\ "Hash Wallet" echo === Open Explorer with the application archive === -echo Cake Wallet created archive at: %cw_archive_path% +echo Hash Wallet created archive at: %cw_archive_path% %SystemRoot%\explorer.exe /select, %cw_archive_path% diff --git a/linux/com.cakewallet.CakeWallet.desktop b/linux/com.suchsoftware.HashWallet.desktop similarity index 74% rename from linux/com.cakewallet.CakeWallet.desktop rename to linux/com.suchsoftware.HashWallet.desktop index eb76a2fb5..57d2f1658 100644 --- a/linux/com.cakewallet.CakeWallet.desktop +++ b/linux/com.suchsoftware.HashWallet.desktop @@ -1,9 +1,9 @@ [Desktop Entry] Version=1.0 Type=Application -Name=Cake Wallet +Name=Hash Wallet Comment=A noncustodial multi-currency wallet Categories=Office;Finance; Terminal=false -Icon=com.cakewallet.CakeWallet +Icon=com.suchsoftware.HashWallet Exec=cake_wallet diff --git a/scripts/linux/build_cake_release.sh b/scripts/linux/build_hash_release.sh similarity index 78% rename from scripts/linux/build_cake_release.sh rename to scripts/linux/build_hash_release.sh index efe2891cc..bcf9cef33 100755 --- a/scripts/linux/build_cake_release.sh +++ b/scripts/linux/build_hash_release.sh @@ -1,7 +1,7 @@ #!/bin/bash -# build_cake_release.sh - Script to build Cake Wallet for Linux -# Usage: ./build_cake_release.sh --amd64 [--arm64] [--app=cakewallet|monero.com] +# build_hash_release.sh - Script to build Hash Wallet for Linux +# Usage: ./build_hash_release.sh --amd64 [--arm64] [--app=cakewallet|monero.com] set -e @@ -34,7 +34,7 @@ do ;; *) echo "Unknown argument: $arg" - echo "Usage: ./build_cake_release.sh --amd64 [--arm64] [--app=cakewallet|monero.com]" + echo "Usage: ./build_hash_release.sh --amd64 [--arm64] [--app=cakewallet|monero.com]" exit 1 ;; esac @@ -45,13 +45,13 @@ 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_cake_release.sh --amd64 [--arm64] [--app=cakewallet|monero.com]" + 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_cake_release.sh --amd64 [--arm64] [--app=cakewallet|monero.com]" + echo "Usage: ./build_hash_release.sh --amd64 [--arm64] [--app=cakewallet|monero.com]" exit 1 fi @@ -78,10 +78,10 @@ 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.cakewallet.CakeWallet.yml +flatpak-builder --force-clean flatpak-build com.suchsoftware.HashWallet.yml flatpak build-export export flatpak-build -flatpak build-bundle export build/linux/current/cake_wallet.flatpak com.cakewallet.CakeWallet -cp build/linux/current/cake_wallet.flatpak build/linux/$flutter_arch/ +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 } diff --git a/scripts/linux/cakewallet.sh b/scripts/linux/hashwallet.sh similarity index 100% rename from scripts/linux/cakewallet.sh rename to scripts/linux/hashwallet.sh diff --git a/scripts/macos/cakewallet.sh b/scripts/macos/hashwallet.sh similarity index 100% rename from scripts/macos/cakewallet.sh rename to scripts/macos/hashwallet.sh diff --git a/scripts/windows/cakewallet.sh b/scripts/windows/hashwallet.sh similarity index 87% rename from scripts/windows/cakewallet.sh rename to scripts/windows/hashwallet.sh index 61e526a73..1019101da 100755 --- a/scripts/windows/cakewallet.sh +++ b/scripts/windows/hashwallet.sh @@ -4,4 +4,4 @@ # Assume that we are in scripts/windows dir CW_ROOT=`pwd`/../.. cd $CW_ROOT -cmd.exe /c cakewallet.bat $1 \ No newline at end of file +cmd.exe /c hashwallet.bat $1 \ No newline at end of file