Skip to content

Commit

Permalink
Merge branch 'swift'
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Jan 20, 2025
2 parents 1df2be3 + 8b3c2d8 commit 54c0318
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.idea/
tinfoil-verifier.wasm
verifier
TinfoilVerifier.xcframework
TinfoilVerifier.xcframework/
vendor/
17 changes: 13 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
patch:
clean:
rm -rf TinfoilVerifier.xcframework wasm/tinfoil-verifier.wasm vendor

wasm-patch: # This is a hack. We should upstream this
go mod vendor
cp wasm/util_unix.go.patched vendor/github.com/in-toto/in-toto-golang/in_toto/util_unix.go

build:
docker build -t tinfoil-verifier-builder .
docker run --rm -v $(shell pwd):/src tinfoil-verifier-builder
wasm-build: wasm-patch
GOOS=js GOARCH=wasm go build \
-trimpath \
-ldflags=-buildid= \
-o wasm/tinfoil-verifier.wasm \
./wasm/...
#cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" .

ios-bind:
go get golang.org/x/mobile/cmd/gomobile
gomobile bind -target=ios -o TinfoilVerifier.xcframework github.com/tinfoilanalytics/verifier/pkg/client
go mod tidy

build: clean ios-bind wasm-build
File renamed without changes.

0 comments on commit 54c0318

Please sign in to comment.