Skip to content

Commit

Permalink
docs: reproductible builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ethicnology committed Jan 14, 2025
1 parent 9bdb062 commit 8d3ab21
Showing 1 changed file with 5 additions and 40 deletions.
45 changes: 5 additions & 40 deletions repro/README.md
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
```

***

0 comments on commit 8d3ab21

Please sign in to comment.