Skip to content

Commit

Permalink
MacOS - sparkle linkframework
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane committed Dec 15, 2022
1 parent e3ec66a commit 6eea0ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/Darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ jobs:
- name: Install deps
run: |
brew install sdl2 && \
source vendor/ci/macport-ci install && \
sudo port install VLC && port contents VLC && \
sudo ln -s /Applications/MacPorts/VLC.app/Contents/MacOS/include/vlc /usr/local/include/ && \
sudo ln -s /Applications/MacPorts/VLC.app/Contents/MacOS/lib/* /usr/local/lib/
brew install --cask VLC
# source vendor/ci/macport-ci install && \
# sudo port install VLC && port contents VLC && \
# sudo ln -s /Applications/MacPorts/VLC.app/Contents/MacOS/include/vlc /usr/local/include/ && \
# sudo ln -s /Applications/MacPorts/VLC.app/Contents/MacOS/lib/* /usr/local/lib/
- name: Install zig
uses: goto-bus-stop/setup-zig@v2
Expand Down
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fn make_example(b: *std.build.Builder, mode: std.builtin.Mode, target: std.zig.C
}

if (target.isDarwin()) {
// example.addIncludePath("/Applications/VLC.app/Contents/MacOS/include");
example.linkFramework("Sparkle");
example.linkSystemLibrary("vlc");
} else if (target.isWindows()) {
example.linkSystemLibraryName("vlc");
Expand Down

0 comments on commit 6eea0ca

Please sign in to comment.