From 524b8ee4a84b293fa2f385c86488b72a83c20c3c Mon Sep 17 00:00:00 2001 From: Qianlitp Date: Thu, 7 Jul 2022 11:07:45 +0800 Subject: [PATCH] fix flag SetIgcognitoContext undefined. --- Makefile | 5 +++-- cmd/crawlergo/flag.go | 4 +--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index b009722..2e78abe 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/cmd/crawlergo/flag.go b/cmd/crawlergo/flag.go index a32ea3e..39afc61 100644 --- a/cmd/crawlergo/flag.go +++ b/cmd/crawlergo/flag.go @@ -2,9 +2,7 @@ package main import ( "fmt" - "github.com/Qianlitp/crawlergo/pkg/config" - "github.com/urfave/cli/v2" ) @@ -16,7 +14,7 @@ var cliFlags = []cli.Flag{ SetFilterMod(), SetOutputMode(), SetOutputJSON(), - SetIgcognitoContext(), + //SetIgcognitoContext(), SetMaxTabCount(), SetFuzzPath(), SetFuzzPathDict(),