Skip to content

Commit 30486de

Browse files
committed
[feat] update fasttrack
1 parent a2cef09 commit 30486de

3 files changed

Lines changed: 61 additions & 110 deletions

File tree

.github/workflows/test.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Test Homebrew Formula
2+
3+
on:
4+
push:
5+
branches: master
6+
7+
jobs:
8+
test-formula:
9+
runs-on: macos-latest
10+
11+
steps:
12+
- name: Checkout repo
13+
uses: actions/checkout@v4
14+
15+
- name: Install dependencies
16+
run: |
17+
brew tap FastTrackOrg/fasttrack
18+
brew install fasttrack
19+
20+
- name: Check GUI app exists
21+
run: |
22+
if [ ! -d "$(brew --prefix)/opt/fasttrack/libexec/fasttrack.app" ]; then
23+
echo "fasttrack.app not found!" >&2
24+
exit 1
25+
fi
26+
27+
- name: Run CLI binary to verify install
28+
run: |
29+
fasttrack-cli --help
30+
31+
- name: Symlink
32+
run: |
33+
ln -s "$(brew --prefix)/opt/fasttrack/libexec/fasttrack.app" /Applications/FastTrack.app
34+
[ -L /Applications/FastTrack.app ] && echo "Symlink created"

fasttrack.rb

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,40 @@
11
class Fasttrack < Formula
22
desc "FastTrack is a cross-platform application designed to track multiple objects in video recording. "
33
homepage "https://fasttrack.sh"
4-
url "https://github.com/FastTrackOrg/FastTrack/archive/refs/tags/v6.3.4.tar.gz"
5-
sha256 "7ce8ca265178cb689d677b02c76ab77ba18e1a35ad59ca9d14cf11728f8ffad8"
4+
url "https://github.com/FastTrackOrg/FastTrack/archive/refs/tags/v6.4.0.tar.gz"
5+
sha256 "4f2de4d0ed185591722361dd21998cce489f5c97e7fe2a77c7d0e10d6193a8c3"
66
license "GPL-3.0"
7-
revision 1
7+
revision 3
88

9+
depends_on "cmake" => :build
910
depends_on "pkg-config" => :build
1011
depends_on "googletest" => :build
1112
depends_on "qt"
1213
depends_on "opencv"
1314

1415
def install
15-
system "qmake6", "FastTrack.pro",
16-
"CONFIG+=release"
17-
system "make"
18-
bin.install "src/build/FastTrack.app"
19-
bin.install "src/build_cli/FastTrack-cli.app/Contents/MacOS/FastTrack-cli"
16+
system "cmake", "-S", ".", "-B", "build"
17+
system "cmake", "--build", "build"
18+
19+
libexec.install "build/bin/fasttrack.app"
20+
(bin/"fasttrack").write <<~EOS
21+
#!/bin/bash
22+
open "#{libexec}/fasttrack.app"
23+
EOS
24+
25+
bin.install "build/bin/fasttrack-cli.app/Contents/MacOS/fasttrack-cli"
26+
end
27+
28+
def caveats
29+
<<~EOS
30+
To launch the FastTrack GUI:
31+
fasttrack
32+
33+
To use the command-line tool:
34+
fasttrack-cli
35+
36+
If you want to launch the FastTrack GUI like a regular app:
37+
ln -s "#{opt_libexec}/fasttrack.app" /Applications/FastTrack.app
38+
EOS
2039
end
2140
end

opencv.rb

Lines changed: 0 additions & 102 deletions
This file was deleted.

0 commit comments

Comments
 (0)