Skip to content

Commit

Permalink
Add ARM64 slice to binary (#23)
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Sorhus <[email protected]>
  • Loading branch information
codetheweb and sindresorhus authored Nov 19, 2021
1 parent e114e2d commit 19b54f0
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 28 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@ on:
jobs:
test:
name: Node.js ${{ matrix.node-version }}
runs-on: macos-latest
runs-on: macos-11
strategy:
fail-fast: false
matrix:
node-version:
- 16
- 14
- 12
- 10
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand Down
46 changes: 23 additions & 23 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"object": {
"pins": [
{
"package": "Aperture",
"repositoryURL": "https://github.com/wulkano/Aperture",
"state": {
"branch": null,
"revision": "ca7190c98debc8e66c7e8cd056fbcf42ef2d56ae",
"version": "1.0.0"
}
},
{
"package": "swift-argument-parser",
"repositoryURL": "https://github.com/apple/swift-argument-parser",
"state": {
"branch": null,
"revision": "47bd06ebeff8146ecd0020809e186218b46f465f",
"version": "0.4.2"
}
}
]
},
"version": 1
"object": {
"pins": [
{
"package": "Aperture",
"repositoryURL": "https://github.com/wulkano/Aperture",
"state": {
"branch": null,
"revision": "ca7190c98debc8e66c7e8cd056fbcf42ef2d56ae",
"version": "1.0.0"
}
},
{
"package": "swift-argument-parser",
"repositoryURL": "https://github.com/apple/swift-argument-parser",
"state": {
"branch": null,
"revision": "47bd06ebeff8146ecd0020809e186218b46f465f",
"version": "0.4.2"
}
}
]
},
"version": 1
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"scripts": {
"test": "xo && ava && tsd",
"build": "swift build --configuration=release && mv .build/release/aperture .",
"build": "swift build --configuration=release --arch arm64 --arch x86_64 && mv .build/apple/Products/Release/aperture .",
"prepublish": "npm run build"
},
"files": [
Expand Down
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ test('returns available video codecs', t => {

test('records screen', async t => {
const recorder = aperture();
await recorder.startRecording();
await recorder.startRecording({videoCodec: 'h264'});
t.true(fs.existsSync(await recorder.isFileReady));
await delay(1000);
const videoPath = await recorder.stopRecording();
t.true(fs.existsSync(videoPath));
t.is(fileType(readChunkSync(videoPath, {length: 4100})).ext, 'mov');
t.is(fileType(readChunk.sync(videoPath, 0, 4100)).ext, 'mov');
fs.unlinkSync(videoPath);
});

0 comments on commit 19b54f0

Please sign in to comment.