Skip to content

Commit

Permalink
chore: revamp dx
Browse files Browse the repository at this point in the history
chore: revamp dx
  • Loading branch information
tony-go committed Jul 3, 2023
1 parent b127e46 commit 4b1e668
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 13 deletions.
Binary file modified .DS_Store
Binary file not shown.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
CMAKE = cmake
CMAKE_FLAGS = -DCMAKE_BUILD_TYPE=Debug

all: configure build

configure:
$(CMAKE) $(CMAKE_FLAGS) -B dist -G "Xcode"

build: configure
$(CMAKE) --build dist --config Debug

test: build
./test.sh
29 changes: 29 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# tray-agent

This a tray based app for macOS build with CMake outside of Xcode.

> Xcode is still used for building the project but without storyboard.
## Requirements

- CMake
- Xcode

## Build from sources

```
make
```

### Test app

```
make test
```


### Open app

```
./open.sh
```
13 changes: 0 additions & 13 deletions build.sh

This file was deleted.

1 change: 1 addition & 0 deletions open.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
open dist/Debug/TrayAgent.app
12 changes: 12 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
open dist/Debug/TrayAgent.app

if [ $? -eq 0 ]; then
echo "TrayAgent.app is running"
else
echo "TrayAgent.app is not running"
exit 1
fi

killall TrayAgent


0 comments on commit 4b1e668

Please sign in to comment.