mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-18 05:51:34 +02:00
Rename top-level scripts and Linux packaging to Hash Wallet
- 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.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
```
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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%
|
||||
@@ -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
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -4,4 +4,4 @@
|
||||
# Assume that we are in scripts/windows dir
|
||||
CW_ROOT=`pwd`/../..
|
||||
cd $CW_ROOT
|
||||
cmd.exe /c cakewallet.bat $1
|
||||
cmd.exe /c hashwallet.bat $1
|
||||
Reference in New Issue
Block a user