-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9bdb062
commit 8d3ab21
Showing
1 changed file
with
5 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,9 @@ | ||
# Reproducible Builds (Work in Progress) | ||
# Reproducible Builds | ||
|
||
## NOTE | ||
DOES NOT WORK ON MAC M1. | ||
Refer to the following issues: | ||
https://github.com/dart-lang/sdk/issues/48420 | ||
|
||
## Reference | ||
As we develop the repro build process, reference https://github.com/signalapp/Signal-Android/tree/main/reproducible-builds and update this document. | ||
|
||
## Dev | ||
|
||
To inspect the container, uncomment the `CMD` line in the Dockerfile and run the following: | ||
## Usage | ||
|
||
```bash | ||
docker build -t bullwallet . | ||
docker run -itd --name bbw bullwallet | ||
docker exec -it bbw bash | ||
# inspect the container | ||
docker build -t bull-mobile . | ||
docker run --name bull-container bull-mobile | ||
docker cp bull-container:/app/build/app/outputs/apk/release/app-release.apk ./ | ||
``` | ||
|
||
## TL;DR | ||
|
||
```bash | ||
git clone https://github.com/SatoshiPortal/bullbitcoin-mobile && cd bullbitcoin-mobile | ||
|
||
# Check out the release tag for the version you'd like to compare | ||
git checkout v[the version number] | ||
|
||
# Build the Docker image | ||
cd reproducible_builds | ||
docker build -t bullbitcoin-mobile . | ||
|
||
# Go back up to the root of the project | ||
cd .. | ||
|
||
# Build using the Docker environment | ||
docker run --rm -v $(pwd):/project -w /project bullbitcoin-mobile flutter build | ||
|
||
# Verify the APKs | ||
python3 apkdiff/apkdiff.py app/build/outputs/apks/project-release-unsigned.apk path/to/BullWalletFromPlay.apk | ||
``` | ||
|
||
*** |