-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add and update macos build scripts, gitignore macos project.pbxproj
- Loading branch information
1 parent
be285e7
commit ebbe645
Showing
20 changed files
with
207 additions
and
720 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
cd scripts/macos | ||
|
||
echo "============================ BUILDING DEPS ============================" | ||
source ./app_env.sh cakewallet | ||
../android/manifest.sh # to avoid "`connectivity_plus` requires your app to be migrated" error | ||
./app_config.sh | ||
./build_all.sh | ||
./setup.sh | ||
./gen.sh | ||
|
||
echo "=================== generate secrets, localization ====================" | ||
cd ../.. && flutter pub get | ||
flutter packages pub run tool/generate_new_secrets.dart | ||
flutter packages pub run tool/generate_localization.dart | ||
|
||
echo "================================ mobx =================================" | ||
cd cw_core && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd .. | ||
cd cw_monero && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd .. | ||
cd cw_bitcoin && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd .. | ||
# cd cw_haven && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd .. | ||
cd cw_ethereum && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd .. | ||
cd cw_nano && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd .. | ||
cd cw_bitcoin_cash && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd .. | ||
cd cw_polygon && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd .. | ||
flutter packages pub run build_runner build --delete-conflicting-outputs | ||
|
||
echo " | ||
============================ ALL DONE. NEXT STEPS: ==================== | ||
= = | ||
= UPDATE TEAM AND BUNDLE IDENTIFIER IN XCODE > SIGNING & CAPABILITIES = | ||
= = | ||
======================================================================= | ||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
cd scripts/macos | ||
source ./app_env.sh cakewallet | ||
../android/manifest.sh # to avoid "`connectivity_plus` requires your app to be migrated" error | ||
./app_config.sh | ||
cd ../.. && flutter pub get | ||
cd cw_core && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd .. | ||
cd cw_monero && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd .. | ||
cd cw_bitcoin && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd .. | ||
# cd cw_haven && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd .. | ||
cd cw_ethereum && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd .. | ||
cd cw_nano && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd .. | ||
cd cw_bitcoin_cash && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd .. | ||
cd cw_polygon && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd .. | ||
flutter packages pub run build_runner build --delete-conflicting-outputs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Building CakeWallet for MacOS | ||
|
||
## Requirements and Setup | ||
|
||
The following are the system requirements to build CakeWallet for your Mac. | ||
|
||
``` | ||
MacOS 12.6.3 Monterey. (Other versions untested) | ||
Flutter 3.10.6. (Other versions untested) | ||
``` | ||
|
||
## Build Steps | ||
|
||
These steps will help you configure and execute a build of CakeWallet from its source code. | ||
|
||
### 1. Installing Package Dependencies | ||
|
||
The following packages must be installed on your build system. | ||
Skip this step if they are already installed. | ||
|
||
`$ brew install python autoconf automake libtool doxygen graphviz` | ||
|
||
### 2. Acquiring the CakeWallet Source Code | ||
|
||
Create the directory that will be use to store the CakeWallet source and download the source code into that directory. | ||
|
||
`$ git clone https://github.com/cake-tech/cake_wallet.git --branch main` | ||
|
||
Proceed into the source code before proceeding with the next steps: | ||
|
||
`$ cd {cake_wallet_repo_directory}` | ||
|
||
### 3. Execute Build & Setup Commands for CakeWallet | ||
|
||
Execute the `build_macos.sh` script. | ||
|
||
`$ ./build_macos.sh` | ||
|
||
The `build_macos.sh` script will generate and update relevant project files, including cryptographic salts that the CakeWallet binary will be built with, which are used for secure encryption of your data. | ||
|
||
It will also build the Monero libraries and their dependencies. | ||
|
||
### 4. Run! | ||
|
||
Open the `macos/Runner.xcworkspace` file in Xcode and edit the Team and Bundle Identifier. | ||
Then you can run the app. | ||
|
||
`$ flutter run -d macos` | ||
|
||
### 5. Troubleshooting | ||
|
||
If you experience encryption or data corruption issues, possibly because of overridding previously used secrets with newly generated secrets, delete the app data dir and clear the app's NSDefaults storage. You might need to replace `com.fotolockr.cakewallet` with the bundle ID you set in step 4 above. | ||
|
||
`$ rm -rf $HOME/Library/Containers/com.fotolockr.cakewallet/` | ||
`$ defaults delete com.fotolockr.cakewallet` | ||
|
||
Copyright (c) 2023 Cake Technologies LLC. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.