Skip to content

Commit

Permalink
added cross-compilation for intel and arm64 mac
Browse files Browse the repository at this point in the history
  • Loading branch information
rkoval committed Feb 8, 2023
1 parent 4b30106 commit d55fcd8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
set -e
./generate.sh
go build
GOOS=darwin go build $@
11 changes: 9 additions & 2 deletions release_tools/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ test() {
}

install_package() {
./build.sh
GOARCH="amd64" ./build.sh -o "$RELEASE_DIR/alfred-aws-console-services-workflow-amd64"
GOARCH="arm64" ./build.sh -o "$RELEASE_DIR/alfred-aws-console-services-workflow-arm64"
lipo -create -output "$RELEASE_DIR/alfred-aws-console-services-workflow" \
"$RELEASE_DIR/alfred-aws-console-services-workflow-arm64" \
"$RELEASE_DIR/alfred-aws-console-services-workflow-amd64"

rm -f "$RELEASE_DIR/alfred-aws-console-services-workflow-arm64" \
"$RELEASE_DIR/alfred-aws-console-services-workflow-amd64"
}

sign_binary() {
Expand Down Expand Up @@ -75,7 +82,7 @@ sign_binary
package_release
notarize_package
add_version_to_package_name
bump_version_and_tag
create_dummy_awgo_updater_file
bump_version_and_tag
open_github
open_finder

0 comments on commit d55fcd8

Please sign in to comment.