mirror of
https://github.com/boringproxy/boringproxy.git
synced 2025-02-25 18:55:29 -06:00
Fix logo embedding
This commit is contained in:
parent
07dd46047d
commit
1c40e1083c
@ -4,7 +4,7 @@
|
||||
|
||||
FROM ubuntu:16.04
|
||||
|
||||
RUN apt-get update && apt-get install -y curl git
|
||||
RUN apt-get update && apt-get install -y curl git inkscape
|
||||
|
||||
RUN git clone https://github.com/boringproxy/boringproxy
|
||||
WORKDIR boringproxy
|
||||
|
@ -1,14 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
function buildArch {
|
||||
echo Building platform $1-$2
|
||||
GOOS=$1 GOARCH=$2 go build -o build/boringproxy-$1-$2$3
|
||||
}
|
||||
|
||||
buildArch linux amd64
|
||||
buildArch linux arm
|
||||
buildArch linux arm64
|
||||
|
||||
buildArch windows amd64 .exe
|
||||
|
||||
buildArch darwin amd64
|
@ -2,8 +2,23 @@
|
||||
|
||||
version=$(git describe --tags)
|
||||
|
||||
function buildArch {
|
||||
echo Building platform $1-$2
|
||||
GOOS=$1 GOARCH=$2 go build -o build/boringproxy-$1-$2$3
|
||||
}
|
||||
|
||||
./scripts/generate_logo.sh
|
||||
|
||||
rice embed-go
|
||||
|
||||
buildArch linux amd64
|
||||
buildArch linux arm
|
||||
buildArch linux arm64
|
||||
|
||||
buildArch windows amd64 .exe
|
||||
|
||||
buildArch darwin amd64
|
||||
|
||||
./scripts/build_all_platforms.sh
|
||||
|
||||
tar -czf ./boringproxy_${version}.tar.gz build/
|
||||
|
@ -1,2 +1,2 @@
|
||||
#!/bin/bash
|
||||
inkscape -w 192 -h 192 logo.svg --export-filename webui/logo.png
|
||||
inkscape -z -w 192 -h 192 logo.svg -e webui/logo.png
|
||||
|
Loading…
Reference in New Issue
Block a user