Skip to content

Commit

Permalink
fix: go mod issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sakul-budhathoki committed Feb 19, 2024
1 parent fe369a6 commit 794a0f7
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 2,788 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ node_modules: package.json yarn.lock
.PHONY: go-mod-tidy
go-mod-tidy:
go mod tidy
cd electron && go mod tidy
cd ./weshd && go mod tidy

.PHONY: generate
generate: generate.protobuf generate.graphql generate.contracts-clients generate.go-networks networks.json
Expand Down Expand Up @@ -326,7 +326,7 @@ build-electron-macos-amd64:
rm -fr ./electron/dist
rm -fr ./electron/build
cd ./electron && npm i
cd ./electron && GOOS=darwin GOARCH=amd64 $(GO) build -tags noNativeLogger -o ./build/mac ../weshd/go/electron/prod.go
cd ./weshd && GOOS=darwin GOARCH=amd64 $(GO) build -tags noNativeLogger -o ../electron/build/mac ./go/electron/prod.go
cd ./electron && node ./builder/mac.js amd64

# requires prepare-electron
Expand All @@ -335,7 +335,7 @@ build-electron-macos-arm64:
rm -fr ./electron/dist
rm -fr ./electron/build
cd ./electron && npm i
cd ./electron && GOOS=darwin GOARCH=arm64 $(GO) build -tags noNativeLogger -o ./build/mac ../weshd/go/electron/prod.go
cd ./weshd && GOOS=darwin GOARCH=arm64 $(GO) build -tags noNativeLogger -o ../electron/build/mac ./go/electron/prod.go
cd ./electron && node ./builder/mac.js arm64

# requires prepare-electron
Expand All @@ -344,7 +344,7 @@ build-electron-windows-amd64:
rm -fr ./electron/dist
rm -fr ./electron/build
cd ./electron && npm i
cd ./electron && GOOS=windows GOARCH=amd64 $(GO) build -tags noNativeLogger -o ./build/win.exe ../weshd/go/electron/prod.go
cd ./weshd && GOOS=windows GOARCH=amd64 $(GO) build -tags noNativeLogger -o ../electron/build/win.exe ./go/electron/prod.go
cd ./electron && node ./builder/win.js

# requires prepare-electron
Expand All @@ -353,7 +353,7 @@ build-electron-linux-amd64:
rm -fr ./electron/dist
rm -fr ./electron/build
cd ./electron && npm i
cd ./electron && GOOS=linux GOARCH=amd64 $(GO) build -tags noNativeLogger -o ./build/linux ../weshd/go/electron/prod.go
cd ./weshd && GOOS=linux GOARCH=amd64 $(GO) build -tags noNativeLogger -o ../electron/build/linux ./go/electron/prod.go
cd ./electron && node ./builder/linux.js

.PHONY: check-ios-weshframework
Expand Down
286 changes: 0 additions & 286 deletions electron/go.mod

This file was deleted.

Loading

0 comments on commit 794a0f7

Please sign in to comment.