Skip to content

Commit

Permalink
Add native support for Apple silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jan 10, 2022
1 parent 3625b53 commit 7ab6bfd
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 30 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ jobs:
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
7 changes: 0 additions & 7 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

This file was deleted.

Binary file not shown.

This file was deleted.

16 changes: 13 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
// swift-tools-version:5.1
// swift-tools-version:5.5
import PackageDescription

let package = Package(
name: "active-win",
name: "ActiveWin",
products: [
.executable(
name: "active-win",
targets: [
"ActiveWinCLI"
]
)
],
targets: [
.target(name: "active-win")
.executableTarget(
name: "ActiveWinCLI"
)
]
)
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"scripts": {
"test": "xo && npm run build && ava && tsd",
"test-ci": "xo && tsd",
"build": "swift build --configuration=release && mv .build/release/active-win main",
"build": "swift build --configuration=release --arch arm64 --arch x86_64 && mv .build/apple/Products/Release/active-win main",
"prepare": "npm run build"
},
"files": [
Expand Down Expand Up @@ -61,7 +61,7 @@
},
"optionalDependencies": {
"ffi-napi": "^4.0.3",
"ref-napi": "^3.0.2",
"ref-napi": "^3.0.3",
"ref-struct-di": "^1.1.1",
"ref-wchar-napi": "^1.0.3"
},
Expand Down
5 changes: 2 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Users on macOS 10.13 or earlier needs to download the [Swift runtime support lib

## Install

```
$ npm install active-win
```sh
npm install active-win
```

## Usage
Expand Down Expand Up @@ -42,7 +42,6 @@ const activeWindow = require('active-win');
})();
```


## API

### activeWindow(options?)
Expand Down

0 comments on commit 7ab6bfd

Please sign in to comment.