# Compile combfullui

* These instructions **do not generate** the reproducible binary. **To generate a reproducible binary**, use the exact same Dockerfile in the **reproducible** codeberg repo.
* **Older versions of combfullui** <= 0.3.5 (including the "Natasha" versions on github and combapp 0.0.1 on f-droid) **are not hard fork compatible**, and their code exists on bitbucket/github **for entertainment purposes only**. **You should not rely on them for commerce -** **you will be scammed by a double spend**.
* You are recommended to use the latest bitcoin core and recommended to use the latest combdownloader-ng. However any hard fork compatible version of bitcoin will work, and combdownloader (without ng) will work too.

## Combfullui Minimum Golang requirements

```
fullui	for_app	git		release_in_repo			ui		min golang
0.3.5.1	0.0.2	bitbucket	combfullui-0.3.4-testnet	no		1.16
0.3.6	0.0.3	bitbucket	combfullui-0.3.5-liqtree	no		1.16
0.3.7	0.0.4	bitbucket	combfullui-0.3.6-newui		yes		1.17
0.3.8	0.0.5	codeberg	combfullui-0.3.7-pruning	yes		1.17
0.4.0	0.0.6	codeberg	combfullui-0.3.8-features	yes		1.18
0.4.1	0.0.7	codeberg	combfullui-0.4.0-bugfix		yes		1.21
0.4.2	0.0.8	codeberg	combfullui-0.4.1-pricechart 	yes		1.18
0.4.3	0.0.9	codeberg	combfullui-0.4.2-maintenance 	yes		1.20
```

## Build instructions (Linux) \[ui=no]

```
cd combfullui-0.3.4-testnet
go mod init localhost/combfullui
go mod tidy
go build
cd ..
```

## Build instructions (Linux) \[ui=yes]

```
cd combfullui-0.3.6-newui
go mod init localhost/combfullui
go mod tidy
cd ui
GOOS=js GOARCH=wasm go build -o combfullui.wasm
cd ..
go build
cd ..
```

## Build instructions (Windows) \[ui=no]

```
cd combfullui-0.3.4-testnet
go mod init localhost/combfullui
go mod tidy
go build
cd ..
```

## Build instructions (Windows) \[ui=yes]

```
cd combfullui-0.3.6-newui
go mod init localhost/combfulli
go mod tidy
cd ui
set GOOS=js
set GOARCH=wasm
go build -o combfullui.wasm
set GOOS=
set GOARCH=
cd ..
go build
cd ..
```

## Build instructions (Docker) \[ui=no]

```
FROM golang:1.16
RUN mkdir /app 
ADD . /app/
WORKDIR /app 
RUN rm go.mod go.sum
RUN go mod init localhost/combfullui
RUN go mod tidy
RUN go build
```

## Build instructions (Docker) \[ui=yes]

```
FROM golang:1.21
RUN mkdir /app 
ADD . /app/
WORKDIR /app 
RUN rm go.mod go.sum
RUN go mod init localhost/combfullui
RUN go mod tidy
RUN cat go.mod
WORKDIR /app/ui
RUN GOOS=js GOARCH=wasm go build -o combfullui.wasm
WORKDIR /app 
RUN go build

```

##
