Skip to content

Commit

Permalink
Add Apple Silicon support
Browse files Browse the repository at this point in the history
Closes #5
  • Loading branch information
chamburr committed Oct 12, 2021
1 parent fe1eb60 commit d3a1245
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ project.xcworkspace/
xcuserdata/

# `go build` output
HTMLConverter/htmlconverter.a
HTMLConverter/htmlconverter.h
HTMLConverter/htmlconverter*.a
HTMLConverter/htmlconverter*.h
2 changes: 1 addition & 1 deletion Glance.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "cd ./HTMLConverter/\ngo build --buildmode=c-archive -ldflags \"-s -w\" -o ./htmlconverter.a\n";
shellScript = "cd ./HTMLConverter/\nGOOS=darwin GOARCH=amd64 CGO_ENABLED=1 go build --buildmode=c-archive -ldflags \"-s -w\" -o ./htmlconverter-amd64.a\nGOOS=darwin GOARCH=arm64 CGO_ENABLED=1 go build --buildmode=c-archive -ldflags \"-s -w\" -o ./htmlconverter-arm64.a\nlipo -create -output htmlconverter.a htmlconverter-amd64.a htmlconverter-arm64.a\ncp htmlconverter-amd64.h htmlconverter.h\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down

0 comments on commit d3a1245

Please sign in to comment.