Skip to content

Commit

Permalink
Set file icon on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
electroly committed May 27, 2024
1 parent 9b34dd3 commit 549c585
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/tmbasic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ jobs:
# https://github.com/actions/runner-images/issues/8613
brew install awscli
brew install fileicon
export FILENAME=$(awk -F= '{ if ($1 == "build-environment-${{ matrix.platform }}") print $2 }' build/tags.ini)
export S3_URL="s3://tmbasic/mac-build-envs/$FILENAME"
aws s3 cp "$S3_URL" build-environment.tar.gz
Expand Down
4 changes: 3 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ Linux and Windows builds must be produced on a Linux build machine. Ubuntu Linux
1. Type `exit` to leave the build environment.

## Build for macOS
1. Install Xcode (version 12 or higher) and AWSCLI v2.
1. Install Xcode (version 12 or higher).

1. Install Hombrew and use it to `brew install awscli fileicon`.

1. `aws configure` -- enter your AWS credentials. You need this to access the requester-pays S3 bucket `tmbasic` which contains premade build environments.

Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,9 @@ bin/tmbasic$(EXE_EXTENSION): $(TMBASIC_OBJ_FILES) \
ifeq ($(STRIP_TMBASIC),1)
$(STRIP) bin/tmbasic$(EXE_EXTENSION)
endif
ifeq ($(TARGET_OS),mac)
fileicon set bin/tmbasic doc/art/favicon/favicon.icns
endif

ifeq ($(TARGET_OS),win)
obj/tmbasic/AppWin.res.o: src/tmbasic/AppWin.rc doc/art/favicon/favicon.ico
Expand Down
Binary file added doc/art/favicon/favicon.icns
Binary file not shown.

0 comments on commit 549c585

Please sign in to comment.