Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
004ba5d
Rewrite using new Aperture and n-api
karaggeorge Nov 11, 2024
90d3b0f
Update macos image
karaggeorge Nov 11, 2024
125c0a8
Attempt to build both targets
karaggeorge Nov 16, 2024
bd2c74b
Fix workflows
karaggeorge Nov 16, 2024
01598e7
Use only native bindings
karaggeorge Nov 17, 2024
1e569b8
Fix import path
karaggeorge Nov 17, 2024
3f3d9df
Attempt to run tests on Intel mac
karaggeorge Nov 17, 2024
c154427
Fix build command
karaggeorge Nov 17, 2024
1762f32
Print os info in test
karaggeorge Nov 17, 2024
d853a48
Debug permissions
karaggeorge Nov 17, 2024
e41c3fa
Debug permissions
karaggeorge Nov 17, 2024
1a296ba
Find process
karaggeorge Nov 17, 2024
e6613a4
Find process
karaggeorge Nov 17, 2024
c0ce47e
Re-enable tests
karaggeorge Nov 17, 2024
3bb9970
Fix workflow
karaggeorge Nov 17, 2024
0154f65
Remove xo temporarily
karaggeorge Nov 17, 2024
0f231fb
Try to run tests on Intel
karaggeorge Nov 18, 2024
aa19366
Bring back cross-platform build
karaggeorge Nov 18, 2024
5a90466
Update api
karaggeorge Nov 21, 2024
50a8df8
Update readme
karaggeorge Nov 21, 2024
054a28e
Fix types and example
karaggeorge Nov 21, 2024
ff7cbef
Cleanup exports
karaggeorge Nov 22, 2024
335b643
Version bump
karaggeorge Nov 22, 2024
a6b14d7
Bump Aperture to 3.0.0
karaggeorge Nov 22, 2024
9799d31
Fix some errors and docs
karaggeorge Nov 22, 2024
f5c1cc7
Rename targetId -> targetID
karaggeorge Nov 22, 2024
3b8ee06
Remove unused dependencies
karaggeorge Nov 22, 2024
9b24619
PR feedback
karaggeorge Nov 16, 2025
aff8944
Upgrade artifact version
karaggeorge Nov 16, 2025
6668f8c
Upgrade deps
karaggeorge Nov 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 32 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,50 @@
name: CI
on:
- push
- pull_request
# - pull_request
jobs:
test:
name: Node.js ${{ matrix.node-version }}
runs-on: macos-14
runs-on: macos-15
strategy:
fail-fast: false
matrix:
node-version:
- 20
- 18
# - 18
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build
- run: npm test
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: binding-artifact-${{ matrix.node-version }}
path: build

test-intel:
needs: [test]
name: Node.js ${{ matrix.node-version }} (Intel)
runs-on: macos-13
strategy:
fail-fast: false
matrix:
node-version:
- 20
# - 18
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- name: Download build
uses: actions/download-artifact@v4
with:
name: binding-artifact-${{ matrix.node-version }}
path: build
- run: npm test
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ yarn.lock
xcuserdata
/Packages
/*.xcodeproj
/aperture
/build

recording.mp4


# SwiftLint Remote Config Cache
.swiftlint/RemoteConfigCache
6 changes: 6 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
parent_config: https://raw.githubusercontent.com/sindresorhus/swiftlint-config/main/.swiftlint.yml
deployment_target:
macOS_deployment_target: '13'
excluded:
- .build
- node_modules
12 changes: 6 additions & 6 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@
import PackageDescription

let package = Package(
name: "ApertureCLI",
name: "aperture",
platforms: [
.macOS(.v10_13)
.macOS(.v13)
],
products: [
.executable(
.library(
name: "aperture",
targets: [
"ApertureCLI"
]
type: .dynamic,
targets: ["ApertureNode"]
)
],
dependencies: [
.package(url: "https://github.com/wulkano/Aperture", from: "2.0.1"),
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.3.1")
.package(url: "https://github.com/wulkano/Aperture", from: "3.0.0"),
.package(path: "node_modules/node-swift")
],
targets: [
.executableTarget(
name: "ApertureCLI",
.target(
name: "ApertureNode",
dependencies: [
"Aperture",
.product(name: "ArgumentParser", package: "swift-argument-parser")
.product(name: "NodeAPI", package: "node-swift"),
.product(name: "NodeModuleSupport", package: "node-swift")
]
)
]
Expand Down
172 changes: 0 additions & 172 deletions Sources/ApertureCLI/ApertureCLI.swift

This file was deleted.

Loading
Loading