The following are the system requirements to build Cake Wallet for your Windows PC.
Windows 10 or later (64-bit), x86-64 based
Flutter 3.27.4Install Flutter, specifically version 3.27.4 by following the official docs.
In order for Flutter to function, you'll also need to enable Developer Mode:
Start Menu > search for "Run" > type ms-settings:developers, and turn on Developer Mode.
NOTE: as 3.27.4 is not the latest version, you'll need to download it from https://docs.flutter.dev/release/archive instead of the link in the docs above.
Install Git for Windows and Visual Studio 2022:
- Follow the Development Tools installation instructions
- NOTE: Be sure to install the
Desktop Development with C++workload in Visual Studio as outlined in the docs.
- NOTE: Be sure to install the
- Add
gitto your path by going to Start Menu > search "environment" > Environment Variables > double-click Path > AddC:\Program Files\Git\bin\on a new line.
Lastly, you'll need to install Nuget separately:
- Download the exe from https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
- Create a new directory,
C:\Program Files\Nuget\ - Move or copy the
nuget.exebinary you just downloaded into the newly created directory above. - Add
nugetto your path by going to Start Menu > search "environment" > Environment Variables > double-click Path > AddC:\Program Files\Nuget\on a new line.
For building Monero dependencies, it is required to install Windows WSL and required packages for WSL (Ubuntu).
- Open a Powershell window by going to the Start Menu and searching for "Powershell"
- Install WSL with the command
wsl --install - Install the necessary Ubuntu dependencies
wsl --install
wsl sudo apt update
wsl sudo apt install -y autoconf build-essential ccache cmake curl gcc gcc-mingw-w64-x86-64 git g++ g++-mingw-w64-x86-64 gperf lbzip2 libtool make pkg-config pigzInstall Rust and other Rust-related dependencies using rustup.rs by running the following command:
wsl curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shDownload the latest release tag of Cake Wallet and enter the source code directory:
git clone https://github.com/cake-tech/cake_wallet.git --branch main
cd cake_walletNOTE: Replace main with the latest release tag available at https://github.com/cake-tech/cake_wallet/releases/latest.
To use Monero in Cake Wallet, you must build the Monero_C wrapper which will be used by monero.dart package.
Run the following in a WSL terminal window (set the Git username and email as desired):
wsl
git config --global user.email "builds@cakewallet.com"
git config --global user.name "builds"
./build_all.shTo configure the application, run the following:
exit
.\cakewallet.batAfter 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.