Skip to content

Commit

Permalink
fix flag SetIgcognitoContext undefined.
Browse files Browse the repository at this point in the history
  • Loading branch information
Qianlitp committed Jul 7, 2022
1 parent 5bd29ce commit 524b8ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ VERSION=$(shell git describe --tags --always)
.PHONY: build_all
# build
build_all:
rm -rf bin && mkdir bin bin/linux-amd64 bin/linux-arm64 bin/darwin-amd64 bin/darwin-arm64 \
rm -rf bin && mkdir bin bin/linux-amd64 bin/linux-arm64 bin/darwin-amd64 bin/darwin-arm64 bin/windows-amd64\
&& CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags "-X 'main.Version=$(VERSION)'" -o ./bin/darwin-arm64/ ./... \
&& CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-X 'main.Version=$(VERSION)'" -o ./bin/darwin-amd64/ ./... \
&& CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags "-X 'main.Version=$(VERSION)'" -o ./bin/linux-arm64/ ./... \
&& CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-X 'main.Version=$(VERSION)'" -o ./bin/linux-amd64/ ./...
&& CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-X 'main.Version=$(VERSION)'" -o ./bin/linux-amd64/ ./... \
&& CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-X 'main.Version=$(VERSION)'" -o ./bin/windows-amd64/ ./...

.PHONY: build
# build
Expand Down
4 changes: 1 addition & 3 deletions cmd/crawlergo/flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ package main

import (
"fmt"

"github.com/Qianlitp/crawlergo/pkg/config"

"github.com/urfave/cli/v2"
)

Expand All @@ -16,7 +14,7 @@ var cliFlags = []cli.Flag{
SetFilterMod(),
SetOutputMode(),
SetOutputJSON(),
SetIgcognitoContext(),
//SetIgcognitoContext(),
SetMaxTabCount(),
SetFuzzPath(),
SetFuzzPathDict(),
Expand Down

0 comments on commit 524b8ee

Please sign in to comment.