Files
I2pbrowser/Makefile

80 lines
2.4 KiB
Makefile
Raw Normal View History

2020-04-02 17:52:46 -04:00
2020-04-03 19:55:17 -04:00
export GO111MODULE=on
GO111MODULE=on
2020-04-03 19:53:12 -04:00
2020-04-02 17:52:46 -04:00
VERSION=0.73
2020-04-03 13:43:33 -04:00
SNOW_VERSION=0.2.2
2020-04-03 18:56:34 -04:00
UMAT_VERSION=1.25.2
UBLO_VERSION=1.4.0
2020-04-07 22:21:26 -04:00
NOSS_VERSION=11.0.23
2020-05-11 20:06:57 -04:00
ZERO_VERSION=v1.16
LAUNCH_VERSION=$(VERSION).09
2020-04-02 17:52:46 -04:00
2020-05-17 17:45:50 -04:00
GO_COMPILER_OPTS = -a -tags netgo -ldflags '-w -extldflags "-static"'
2020-08-01 14:15:43 -04:00
build:
2020-05-17 17:45:50 -04:00
go build $(GO_COMPILER_OPTS)
2020-04-03 11:38:32 -04:00
2020-08-01 14:15:43 -04:00
assets: clean assets.go
2020-04-03 18:56:34 -04:00
2020-07-02 19:58:19 -04:00
gen:
go run $(GO_COMPILER_OPTS) -tags generate gen.go extensions.go
2020-04-02 17:52:46 -04:00
2020-04-03 11:38:32 -04:00
clean:
2020-04-07 20:45:19 -04:00
gofmt -w -s main.go pure.go variant.go gen.go
2020-07-02 19:58:19 -04:00
sum: exts
2020-04-03 15:38:36 -04:00
sha256sum ifox/i2ppb@eyedeekay.github.io.xpi
sha256sum 'ifox/{b11bea1f-a888-4332-8d8a-cec2be7d24b9}.xpi'
sha256sum ifox/uBlock0@raymondhill.net.xpi
sha256sum ifox/uMatrix@raymondhill.net.xpi
2020-07-02 19:58:19 -04:00
#sha256sum 'ifox/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi'
2020-04-03 13:43:33 -04:00
2020-04-07 20:16:41 -04:00
all: pure variant
2020-08-01 14:15:43 -04:00
pure: clean assets.go windows osx linux
windows:
2020-05-17 17:45:50 -04:00
GOOS=windows go build $(GO_COMPILER_OPTS) -o i2pfirefox.exe
2020-08-01 14:15:43 -04:00
osx:
2020-05-17 17:45:50 -04:00
#GOOS=darwin go build $(GO_COMPILER_OPTS) -o i2pfirefox-darwin
2020-08-01 14:15:43 -04:00
linux:
2020-05-17 17:45:50 -04:00
GOOS=linux go build $(GO_COMPILER_OPTS) -o i2pfirefox
2020-04-02 17:52:46 -04:00
2020-08-01 14:15:43 -04:00
variant: clean assets.go vwindows vosx vlinux
vwindows:
2020-05-17 17:45:50 -04:00
GOOS=windows go build $(GO_COMPILER_OPTS) -tags variant -o i2pfirefox-variant.exe
2020-08-01 14:15:43 -04:00
vosx:
2020-05-17 17:45:50 -04:00
#GOOS=darwin go build $(GO_COMPILER_OPTS) -tags variant -o i2pfirefox-variant-darwin
2020-08-01 14:15:43 -04:00
vlinux:
2020-05-17 17:45:50 -04:00
GOOS=linux go build $(GO_COMPILER_OPTS) -tags variant -o i2pfirefox-variant
2020-04-07 20:16:41 -04:00
2020-04-03 11:38:32 -04:00
release:
2020-04-03 20:58:14 -04:00
gothub release -p -u eyedeekay -r "i2pfirefox" -t $(LAUNCH_VERSION) -n "Launchers" -d "A self-configuring launcher for mixed I2P and clearnet Browsing with Firefox"
2020-04-03 13:43:33 -04:00
gothub upload -R -u eyedeekay -r "i2pfirefox" -t $(LAUNCH_VERSION) -n "i2pfirefox.exe" -f "i2pfirefox.exe"
gothub upload -R -u eyedeekay -r "i2pfirefox" -t $(LAUNCH_VERSION) -n "i2pfirefox-darwin" -f "i2pfirefox-darwin"
gothub upload -R -u eyedeekay -r "i2pfirefox" -t $(LAUNCH_VERSION) -n "i2pfirefox" -f "i2pfirefox"
2020-04-02 17:52:46 -04:00
2020-04-07 20:16:41 -04:00
release-variant:
gothub upload -R -u eyedeekay -r "i2pfirefox" -t $(LAUNCH_VERSION) -n "i2pfirefox-variant.exe" -f "i2pfirefox-variant.exe"
gothub upload -R -u eyedeekay -r "i2pfirefox" -t $(LAUNCH_VERSION) -n "i2pfirefox-variant-darwin" -f "i2pfirefox-variant-darwin"
gothub upload -R -u eyedeekay -r "i2pfirefox" -t $(LAUNCH_VERSION) -n "i2pfirefox-variant" -f "i2pfirefox-variant"
2020-05-11 20:06:57 -04:00
i2p-zero:
git clone https://github.com/i2p-zero/i2p-zero.git; \
cd i2p-zero && \
git fetch --all --tags && \
git checkout $(ZERO_VERSION)
zero-build: i2p-zero
cd i2p-zero && \
./bin/build-all-and-zip.sh
zero-copy:
2020-05-17 17:45:50 -04:00
cp -rv i2p-zero ifox