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 8636447 commit afb161f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 21 deletions.
4 changes: 0 additions & 4 deletions .github/funding.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/.build
/*.xcodeproj
/.swiftpm
/wallpaper
8 changes: 4 additions & 4 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
"repositoryURL": "https://github.com/stephencelis/SQLite.swift",
"state": {
"branch": null,
"revision": "9af51e2edf491c0ea632e369a6566e09b65aa333",
"version": "0.13.0"
"revision": "60a65015f6402b7c34b9a924f755ca0a73afeeaa",
"version": "0.13.1"
}
},
{
"package": "swift-argument-parser",
"repositoryURL": "https://github.com/apple/swift-argument-parser",
"state": {
"branch": null,
"revision": "d2930e8fcf9c33162b9fcc1d522bc975e2d4179b",
"version": "1.0.1"
"revision": "e1465042f195f374b94f915ba8ca49de24300a0d",
"version": "1.0.2"
}
}
]
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ let package = Package(
),
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.0.1"),
.package(url: "https://github.com/stephencelis/SQLite.swift", from: "0.13.0")
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.0.2"),
.package(url: "https://github.com/stephencelis/SQLite.swift", from: "0.13.1")
],
targets: [
.executableTarget(
Expand Down
22 changes: 11 additions & 11 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ It correctly handles getting the active wallpaper even when the wallpaper is set

###### [Homebrew](https://brew.sh)

```
$ brew install wallpaper
```sh
brew install wallpaper
```

###### Manually
Expand Down Expand Up @@ -86,20 +86,20 @@ OPTIONS:

##### Set

```
$ wallpaper set unicorn.jpg
```sh
wallpaper set unicorn.jpg
```

##### Set solid color

```
$ wallpaper set-solid-color 0000ff
```sh
wallpaper set-solid-color 0000ff
```

##### Get

```
$ wallpaper get
```sh
wallpaper get
/Users/sindresorhus/unicorn.jpg
```

Expand Down Expand Up @@ -135,14 +135,14 @@ See the [source](Sources/wallpaper/Wallpaper.swift) for more.

### Run

```
```sh
swift run wallpaper
```

### Build

```
swift build --configuration=release
```sh
swift build --configuration=release --arch arm64 --arch x86_64 && mv .build/apple/Products/Release/wallpaper .
```

## Related
Expand Down

0 comments on commit afb161f

Please sign in to comment.