Skip to content

Commit

Permalink
Add SPM package
Browse files Browse the repository at this point in the history
  • Loading branch information
Itaybre committed Jul 14, 2020
1 parent df7e8a4 commit 0c686fb
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"object": {
"pins": [
{
"package": "swift-argument-parser",
"repositoryURL": "https://github.com/apple/swift-argument-parser",
"state": {
"branch": null,
"revision": "eb51f949cdd0c9d88abba9ce79d37eb7ea1231d0",
"version": "0.2.0"
}
}
]
},
"version": 1
}
28 changes: 28 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// swift-tools-version:5.2
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "screenrecorder",
platforms: [
.macOS(.v10_14)
],
products: [
.executable(
name: "screenrecorder",
targets: ["screenrecorder"]),
],
dependencies: [
.package(url:"https://github.com/apple/swift-argument-parser", .exact("0.2.0")),
],
targets: [
.target(
name: "screenrecorder",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
],
path: "ScreenRecorder/"
)
]
)

0 comments on commit 0c686fb

Please sign in to comment.